Skip to content

Commit

Permalink
chore(Tools): fix some tools error
Browse files Browse the repository at this point in the history
  • Loading branch information
YSMJ1994 committed Jan 6, 2025
1 parent 6ed80bf commit d926f7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tools/build/dist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const distPath = resolve(CWD, 'dist');

export function registryDist(file = __filename) {
return registryTask(file, 'dist', async function () {
registryTask(file, 'dist:clean', () => {
await registryTask(file, 'dist:clean', () => {
removeSync(distPath);
});
registryTask(file, 'dist:next', pack);
registryTask(file, 'dist:next:minify', pack.bind(undefined, true));
await registryTask(file, 'dist:next', pack);
await registryTask(file, 'dist:next:minify', pack.bind(undefined, true));
await registryTask(file, 'dist:adaptor', packAdaptor.run, packAdaptor.rollback);
});
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"@alifd/next/types/*": ["./components/*"]
}
},
"include": ["global.d.ts", "cypress/**/*.ts", "./components/**/*.ts", "./components/**/*.tsx", "tools"]
"include": ["*.ts", "cypress/**/*.ts", "./components/**/*.ts", "./components/**/*.tsx", "tools"]
}

0 comments on commit d926f7d

Please sign in to comment.