From 3bd6c4d3683612cc1d11d917a4cec7b17207ff7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?w=C5=AB=20y=C4=81ng?= Date: Tue, 1 Aug 2023 11:31:21 +0800 Subject: [PATCH] chore: fix build script process in Windows env (#2644) --- package.json | 4 ++-- script/rollup.config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 21c9774a8..7274229ec 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "site:preview": "cd site && npm run build:preview", "site:intranet": "cd site && npm run build:intranet", "postsite:preview": "cp _site/index.html _site/404.html", - "prebuild": "rimraf es/* esm/* lib/* cjs/* dist/*", + "prebuild": "rimraf es/* esm/* lib/* cjs/* dist/* --glob", "build": "cross-env NODE_ENV=production rollup -c script/rollup.config.js && npm run build:tsc", "build:tsc": "run-p build:tsc-*", "build:tsc-es": "tsc --emitDeclarationOnly -d --outDir es/", @@ -165,7 +165,7 @@ "postcss": "^8.3.11", "prettier": "^2.6.2", "prismjs": "^1.25.0", - "rimraf": "^4.4.1", + "rimraf": "^5.0.1", "rollup": "^2.53.2", "rollup-plugin-analyzer": "^3.3.0", "rollup-plugin-esbuild": "^4.8.2", diff --git a/script/rollup.config.js b/script/rollup.config.js index d38a041d3..c8a6b901c 100644 --- a/script/rollup.config.js +++ b/script/rollup.config.js @@ -79,7 +79,7 @@ const getPlugins = ({ }), ignoreImport({ include: ['src/*/style/*'], - body: 'import "./style/css.js";', + body: 'import "./css.js";', }), ); } else if (ignoreLess) { @@ -91,7 +91,7 @@ const getPlugins = ({ }), ignoreImport({ include: ['src/*/style/*'], - body: 'import "./style/index.js";', + body: 'import "./index.js";', }), ); }