From b5680a84c34ab250315f0b64b934a3ccad4c1f8a Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Thu, 18 Feb 2021 23:31:02 +0800 Subject: [PATCH] build: add tsc --force flag when build --- .npmignore | 3 ++- package.json | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.npmignore b/.npmignore index aececacd8..28975eca4 100644 --- a/.npmignore +++ b/.npmignore @@ -1 +1,2 @@ -~* \ No newline at end of file +~* +*.tsbuildinfo \ No newline at end of file diff --git a/package.json b/package.json index 19cc39d58..5c061613a 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "scripts": { "start": "npm run dev", "deprecated:build:icons": "npm run clean && node scripts/pre-build/deprecated-build-icons.js", - "build:js": "npm run gen-version && npm run clean && tsc -b tsconfig.esm.json && tsc -b tsconfig.cjs.json && node scripts/post-build", - "build:package": "npm run gen-version && npm run clean && node scripts/pre-build/deprecated-build-icons.js && tsc -b tsconfig.esm.json && tsc -b tsconfig.cjs.json && node scripts/post-build", + "build:js": "npm run gen-version && npm run clean && tsc -b --force tsconfig.esm.json && tsc -b --force tsconfig.cjs.json && node scripts/post-build", + "build:package": "npm run gen-version && npm run clean && node scripts/pre-build/deprecated-build-icons.js && tsc -b --force tsconfig.esm.json && tsc -b --force tsconfig.cjs.json && node scripts/post-build", "build:site": "./scripts/pre-build-site/pre-build-site.sh && cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && ./scripts/post-build-site/post-build-site.sh", "clean": "rm -rf site lib es node_modules/naive-ui", "dev": "npm run clean && npm run gen-version && cross-env NODE_ENV=development vite", @@ -33,7 +33,6 @@ "compat", "es", "lib", - "themes", "README.md" ], "lint-staged": {