build: add tsc --force flag when build

This commit is contained in:
07akioni 2021-02-18 23:31:02 +08:00
parent a0060f138a
commit b5680a84c3
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1,2 @@
~*
~*
*.tsbuildinfo

View File

@ -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": {