Skip to content

Commit

Permalink
build: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 15, 2025
1 parent 0321a54 commit ec92568
Show file tree
Hide file tree
Showing 23 changed files with 28 additions and 27 deletions.
2 changes: 1 addition & 1 deletion plugins/blog/plugin-comment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@vuepress/helper": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion plugins/features/plugin-back-to-top/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"copy": "cpx \"src/**/*.svg\" lib",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@vuepress/helper": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion plugins/features/plugin-catalog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@vuepress/helper": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion plugins/features/plugin-copy-code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"copy": "cpx \"src/**/*.svg\" lib",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@vuepress/helper": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion plugins/features/plugin-icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@mdit/plugin-icon": "^0.16.5",
Expand Down
2 changes: 1 addition & 1 deletion plugins/features/plugin-notice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"copy": "cpx \"src/**/*.svg\" lib",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@vuepress/helper": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion plugins/features/plugin-photo-swipe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@vuepress/helper": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion plugins/markdown/plugin-markdown-ext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@mdit/plugin-container": "^0.16.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/markdown/plugin-markdown-hint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@mdit/plugin-alert": "^0.16.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/markdown/plugin-markdown-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@mdit/plugin-figure": "^0.16.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/markdown/plugin-markdown-math/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@mdit/plugin-katex-slim": "^0.16.2",
Expand Down
2 changes: 1 addition & 1 deletion plugins/markdown/plugin-markdown-tab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@mdit/plugin-tab": "^0.16.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/markdown/plugin-revealjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@mdit/plugin-uml": "^0.16.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/markdown/plugin-shiki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@shikijs/transformers": "^1.27.2",
Expand Down
2 changes: 1 addition & 1 deletion plugins/pwa/plugin-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@vuepress/helper": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion plugins/search/plugin-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"copy": "cpx \"src/**/*.{d.ts,svg}\" lib",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@vuepress/helper": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion plugins/search/plugin-slimsearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"copy": "cpx \"src/**/*.{d.ts,svg}\" lib",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@vuepress/helper": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion plugins/tools/plugin-redirect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@vuepress/helper": "workspace:*",
Expand Down
3 changes: 1 addition & 2 deletions tools/create-vuepress/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"baseUrl": "."
"outDir": "./lib"
},
"include": ["./src"]
}
8 changes: 6 additions & 2 deletions tools/helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,22 @@
"./colors.css": "./lib/client/styles/colors.css",
"./normalize.css": "./lib/client/styles/normalize.css",
"./sr-only.css": "./lib/client/styles/sr-only.css",
"./scss/*.scss": {
"sass": "./scss/*.scss"
},
"./package.json": "./package.json"
},
"main": "./lib/node/index.js",
"types": "./lib/node/index.d.ts",
"files": [
"lib"
"lib",
"sass"
],
"scripts": {
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"dependencies": {
"@vue/shared": "^3.5.13",
Expand Down
3 changes: 1 addition & 2 deletions tools/helper/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"baseUrl": "."
"outDir": "./lib"
},
"include": ["./src"]
}
2 changes: 1 addition & 1 deletion tools/highlighter-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"style": "sass src:lib --embed-sources --style=compressed"
"style": "sass src:lib --embed-sources --style=compressed --pkg-importer=node"
},
"peerDependencies": {
"@vueuse/core": "^12.2.0",
Expand Down
3 changes: 1 addition & 2 deletions tools/vp-update/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.build.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./lib",
"baseUrl": "."
"outDir": "./lib"
},
"include": ["./src"]
}

0 comments on commit ec92568

Please sign in to comment.