fix(build): copy typings (#8098)

This commit is contained in:
三咲智子 2022-06-05 12:14:08 +08:00 committed by GitHub
parent d8739fa550
commit 3d00cf7347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ export const copyFiles = () =>
]) ])
export const copyTypesDefinitions: TaskFunction = (done) => { export const copyTypesDefinitions: TaskFunction = (done) => {
const src = path.resolve(buildOutput, 'types') const src = path.resolve(buildOutput, 'types', 'packages')
const copyTypes = (module: Module) => const copyTypes = (module: Module) =>
withTaskName(`copyTypes:${module}`, () => withTaskName(`copyTypes:${module}`, () =>
copy(src, buildConfig[module].output.path, { recursive: true }) copy(src, buildConfig[module].output.path, { recursive: true })