Skip to content

Commit d926f7d

Browse files
committed
chore(Tools): fix some tools error
1 parent 6ed80bf commit d926f7d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/build/dist.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ const distPath = resolve(CWD, 'dist');
1515

1616
export function registryDist(file = __filename) {
1717
return registryTask(file, 'dist', async function () {
18-
registryTask(file, 'dist:clean', () => {
18+
await registryTask(file, 'dist:clean', () => {
1919
removeSync(distPath);
2020
});
21-
registryTask(file, 'dist:next', pack);
22-
registryTask(file, 'dist:next:minify', pack.bind(undefined, true));
21+
await registryTask(file, 'dist:next', pack);
22+
await registryTask(file, 'dist:next:minify', pack.bind(undefined, true));
2323
await registryTask(file, 'dist:adaptor', packAdaptor.run, packAdaptor.rollback);
2424
});
2525
}

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323
"@alifd/next/types/*": ["./components/*"]
2424
}
2525
},
26-
"include": ["global.d.ts", "cypress/**/*.ts", "./components/**/*.ts", "./components/**/*.tsx", "tools"]
26+
"include": ["*.ts", "cypress/**/*.ts", "./components/**/*.ts", "./components/**/*.tsx", "tools"]
2727
}

0 commit comments

Comments
 (0)