From 7ec7757a78b61dd5ecc068f2af91532c4714733c Mon Sep 17 00:00:00 2001 From: neeboo Date: Sat, 20 Jul 2019 16:51:15 +0800 Subject: [PATCH] fix(gulpfile):remove unexpected `.tsbuildinfo` --- gulpfile.js | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 2b95155..a504d17 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -25,6 +25,13 @@ task('cleanServer', async () => { }); }); +task('cleanUnexpected', async () => { + await packages.map((p) => { + const pathToLib = `packages/${p}/tsconfig.tsbuildinfo`; + return del.sync([pathToLib]); + }); +}); + task('cleanDocs', async () => { await packages.map((p) => { const pathToLib = `packages/${p}/doc`; diff --git a/package.json b/package.json index 80d0417..239a4fe 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "bundle": "ts-node -P scripts/tsconfig.json scripts/bundle.ts umd,esm", "clean": "lerna clean --yes && lerna run clean && rimraf includes && yarn packages:clean", "dist": "yarn packages:bundler && rm -rf dist && cross-env NODE_ENV=production webpack --config webpack.config.js", - "packages:clean": "gulp cleanServer", + "packages:clean": "gulp cleanServer && gulp cleanUnexpected", "packages:bundler": "yarn packages:clean && yarn build:ts && ts-node -P scripts/tsconfig.json scripts/bundle.ts", "schema": "ts-node -P scripts/tsconfig.json scripts/typings/schema.ts core", "test": "cross-env TEST_ENV=unit jest -c scripts/jest/jest.config.js --rootDir=.",