From d926f7d27c52fd1bcdd8fd0a033683ee38564d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8F=B5=E4=B9=8B?= Date: Mon, 6 Jan 2025 14:32:46 +0800 Subject: [PATCH] chore(Tools): fix some tools error --- package-lock.json | 4 ++-- tools/build/dist.ts | 6 +++--- tsconfig.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 198edad293..3261f6ee72 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@alifd/next", - "version": "1.27.29", + "version": "1.27.30", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@alifd/next", - "version": "1.27.29", + "version": "1.27.30", "license": "MIT", "dependencies": { "@alifd/field": "~2.0.3", diff --git a/tools/build/dist.ts b/tools/build/dist.ts index 7a15c234ed..b531198baf 100644 --- a/tools/build/dist.ts +++ b/tools/build/dist.ts @@ -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); }); } diff --git a/tsconfig.json b/tsconfig.json index d7b7fc16f7..1158683352 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] }