Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Sep 30, 2024
1 parent fb7a4cb commit df857f3
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"build": "pnpm build:tsc && pnpm build:copy && pnpm build:style",
"build:bundle": "pnpm --parallel --stream bundle",
"build:bundle": "pnpm -r --stream bundle",
"build:copy": "pnpm --parallel --stream copy",
"build:style": "pnpm --parallel --stream style",
"build:tsc": "tsc -b tsconfig.build.json",
Expand Down
1 change: 1 addition & 0 deletions plugins/pwa/plugin-remove-pwa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
],
"scripts": {
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo"
},
"peerDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions plugins/pwa/plugin-remove-pwa/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { rollupBundle } from '../../../scripts/rollup.js'

export default rollupBundle('node/index')
1 change: 1 addition & 0 deletions plugins/search/plugin-docsearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
],
"scripts": {
"build": "tsc -b tsconfig.build.json",
"bundle": "rollup -c rollup.config.ts --configPlugin esbuild",
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
"copy": "cpx \"src/**/*.css\" lib"
},
Expand Down
3 changes: 3 additions & 0 deletions plugins/search/plugin-docsearch/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { rollupBundle } from '../../../scripts/rollup.js'

export default [...rollupBundle('node/index'), ...rollupBundle('client/index')]
1 change: 1 addition & 0 deletions plugins/search/plugin-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
],
"scripts": {
"build": "tsc -b tsconfig.build.json",
"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"
Expand Down
11 changes: 11 additions & 0 deletions plugins/search/plugin-search/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { rollupBundle } from '../../../scripts/rollup.js'

export default [
...rollupBundle('node/index', {
external: ['chokidar'],
}),
...rollupBundle({
base: 'client',
files: ['config', 'index'],
}),
]
2 changes: 2 additions & 0 deletions scripts/rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const rollupBundle = (
/^@vuepress\/plugin-/,
'vuepress/cli',
'vuepress/core',
'vuepress/markdown',
'vuepress/shared',
'vuepress/utils',
]
Expand Down Expand Up @@ -177,6 +178,7 @@ export const rollupBundle = (
/^node:/,
'vuepress/cli',
'vuepress/core',
'vuepress/markdown',
'vuepress/shared',
'vuepress/utils',
]
Expand Down

0 comments on commit df857f3

Please sign in to comment.