From cd8078ca42ea4d77247899b2793d1f20573c3081 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Mon, 29 Jan 2024 14:54:48 +0800 Subject: [PATCH 1/2] build: fix clean command fail on windows --- plugins/plugin-active-header-links/package.json | 2 +- plugins/plugin-container/package.json | 2 +- plugins/plugin-git/package.json | 2 +- plugins/plugin-google-analytics/package.json | 2 +- plugins/plugin-palette/package.json | 2 +- plugins/plugin-prismjs/package.json | 2 +- plugins/plugin-pwa/package.json | 2 +- plugins/plugin-shiki/package.json | 2 +- plugins/plugin-toc/package.json | 2 +- tools/create-vuepress/package.json | 2 +- tools/helper/package.json | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/plugins/plugin-active-header-links/package.json b/plugins/plugin-active-header-links/package.json index 9567a917a0..6120d8bd77 100644 --- a/plugins/plugin-active-header-links/package.json +++ b/plugins/plugin-active-header-links/package.json @@ -33,7 +33,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", - "clean": "rimraf lib *.tsbuildinfo" + "clean": "rimraf --glob ./lib ./*.tsbuildinfo" }, "dependencies": { "ts-debounce": "^4.0.0", diff --git a/plugins/plugin-container/package.json b/plugins/plugin-container/package.json index 6acc84c1a3..b8a31a639b 100644 --- a/plugins/plugin-container/package.json +++ b/plugins/plugin-container/package.json @@ -32,7 +32,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", - "clean": "rimraf lib *.tsbuildinfo" + "clean": "rimraf --glob ./lib ./*.tsbuildinfo" }, "dependencies": { "@types/markdown-it": "^13.0.7", diff --git a/plugins/plugin-git/package.json b/plugins/plugin-git/package.json index 34249be961..70bd1a4f09 100644 --- a/plugins/plugin-git/package.json +++ b/plugins/plugin-git/package.json @@ -31,7 +31,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", - "clean": "rimraf lib *.tsbuildinfo" + "clean": "rimraf --glob ./lib ./*.tsbuildinfo" }, "dependencies": { "execa": "^8.0.1" diff --git a/plugins/plugin-google-analytics/package.json b/plugins/plugin-google-analytics/package.json index a6008e606e..5900ebb06a 100644 --- a/plugins/plugin-google-analytics/package.json +++ b/plugins/plugin-google-analytics/package.json @@ -33,7 +33,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", - "clean": "rimraf lib *.tsbuildinfo" + "clean": "rimraf --glob ./lib ./*.tsbuildinfo" }, "peerDependencies": { "vuepress": "2.0.0-rc.2" diff --git a/plugins/plugin-palette/package.json b/plugins/plugin-palette/package.json index b6322d0ffc..36a3c4536c 100644 --- a/plugins/plugin-palette/package.json +++ b/plugins/plugin-palette/package.json @@ -36,7 +36,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", - "clean": "rimraf lib *.tsbuildinfo" + "clean": "rimraf --glob ./lib ./*.tsbuildinfo" }, "dependencies": { "chokidar": "^3.5.3" diff --git a/plugins/plugin-prismjs/package.json b/plugins/plugin-prismjs/package.json index 92edc96f02..a76618dc5a 100644 --- a/plugins/plugin-prismjs/package.json +++ b/plugins/plugin-prismjs/package.json @@ -32,7 +32,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", - "clean": "rimraf lib *.tsbuildinfo" + "clean": "rimraf --glob ./lib ./*.tsbuildinfo" }, "dependencies": { "prismjs": "^1.29.0" diff --git a/plugins/plugin-pwa/package.json b/plugins/plugin-pwa/package.json index 7ae325081c..f123e2c5f8 100644 --- a/plugins/plugin-pwa/package.json +++ b/plugins/plugin-pwa/package.json @@ -32,7 +32,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", - "clean": "rimraf lib *.tsbuildinfo" + "clean": "rimraf --glob ./lib ./*.tsbuildinfo" }, "dependencies": { "mitt": "^3.0.1", diff --git a/plugins/plugin-shiki/package.json b/plugins/plugin-shiki/package.json index 36e4069f14..1a8ee0fc1e 100644 --- a/plugins/plugin-shiki/package.json +++ b/plugins/plugin-shiki/package.json @@ -32,7 +32,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", - "clean": "rimraf lib *.tsbuildinfo" + "clean": "rimraf --glob ./lib ./*.tsbuildinfo" }, "dependencies": { "shikiji": "^0.10.1" diff --git a/plugins/plugin-toc/package.json b/plugins/plugin-toc/package.json index f1330c745f..7b54324d80 100644 --- a/plugins/plugin-toc/package.json +++ b/plugins/plugin-toc/package.json @@ -32,7 +32,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", - "clean": "rimraf lib *.tsbuildinfo" + "clean": "rimraf --glob ./lib ./*.tsbuildinfo" }, "dependencies": { "vue": "^3.4.15", diff --git a/tools/create-vuepress/package.json b/tools/create-vuepress/package.json index 345ca1d71c..a3b4804aba 100644 --- a/tools/create-vuepress/package.json +++ b/tools/create-vuepress/package.json @@ -38,7 +38,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", - "clean": "rimraf lib *.tsbuildinfo" + "clean": "rimraf --glob ./lib ./*.tsbuildinfo" }, "dependencies": { "cac": "^6.7.14", diff --git a/tools/helper/package.json b/tools/helper/package.json index 32742ff51d..63eba97cb7 100644 --- a/tools/helper/package.json +++ b/tools/helper/package.json @@ -40,7 +40,7 @@ ], "scripts": { "build": "tsc -b tsconfig.build.json", - "clean": "rimraf lib *.tsbuildinfo" + "clean": "rimraf --glob ./lib ./*.tsbuildinfo" }, "dependencies": { "@vue/shared": "^3.4.15", From 2dc8ea53493b5e625ed8d8e5fbe701d0a8ccf9d5 Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Mon, 29 Jan 2024 14:55:29 +0800 Subject: [PATCH 2/2] fix(helper): add missing exports --- tools/helper/src/node/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/helper/src/node/index.ts b/tools/helper/src/node/index.ts index d865514379..f2b12009c9 100644 --- a/tools/helper/src/node/index.ts +++ b/tools/helper/src/node/index.ts @@ -2,4 +2,6 @@ export const noopComponent = '@vuepress/helper/noopComponent' export const noopModule = '@vuepress/helper/noopModule' export * from './bundler/index.js' +export * from './page/index.js' +export * from './utils/index.js' export * from '../shared/index.js'