parent
e709dada3a
commit
729a0cbd40
@ -14,9 +14,12 @@ const vuepressVersion = __VUEPRESS_VERSION__
|
||||
|
||||
## Dependency Environment
|
||||
|
||||
- [Node.js v20.6.0+](https://nodejs.org/)
|
||||
- [Node.js](https://nodejs.org/) : **^20.6.0 或 >= 22.0.0** [+node-versions]
|
||||
- [npm 8+](https://www.npmjs.com/) or [pnpm 8+](https://pnpm.io/zh/) or [Yarn 2+](https://yarnpkg.com/)
|
||||
|
||||
[+node-versions]: **^20.6.0:** Versions `20.6.0` and above but not higher than `21.0.0`
|
||||
[+node-versions]: **>= 22.0.0:** Versions `22.0.0` and above
|
||||
|
||||
:::: details How to install the dependency environment?
|
||||
::: steps
|
||||
|
||||
|
||||
@ -10,10 +10,9 @@ tags:
|
||||
|
||||
## 依赖环境
|
||||
|
||||
- [Node.js](https://nodejs.org/) : **^18.19.0 或 ^20.6.0 或 >= 22.0.0** [+node-versions]
|
||||
- [Node.js](https://nodejs.org/) : **^20.6.0 或 >= 22.0.0** [+node-versions]
|
||||
- [npm 8+](https://www.npmjs.com/) 或 [pnpm 8+](https://pnpm.io/zh/) 或 [Yarn 2+](https://yarnpkg.com/)
|
||||
|
||||
[+node-versions]: **^18.19.0:** `18.19.0` 及以上但不高于 `19.0.0` 的版本
|
||||
[+node-versions]: **^20.6.0:** `20.6.0` 及以上但不高于 `21.0.0` 的版本
|
||||
[+node-versions]: **>= 22.0.0:** `22.0.0` 及以上的版本
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
"vuepress-theme-plume"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.19.0 || ^20.9.0 || >=22.1.0",
|
||||
"node": "^20.9.0 || >=22.1.0",
|
||||
"pnpm": ">=9"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@ -21,7 +21,7 @@ export default defineConfig(() => {
|
||||
...DEFAULT_OPTIONS,
|
||||
entry: ['./src/node/index.ts'],
|
||||
outDir: './lib/node',
|
||||
target: 'node18',
|
||||
target: 'node20.6.0',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ export default defineConfig(() => {
|
||||
...DEFAULT_OPTIONS,
|
||||
entry: ['./src/node/index.ts'],
|
||||
outDir: './lib/node',
|
||||
target: 'node18',
|
||||
target: 'node20.6.0',
|
||||
external: ['markdown-it', /^@?vuepress/],
|
||||
})
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ export default defineConfig(() => {
|
||||
...DEFAULT_OPTIONS,
|
||||
entry: ['./src/index.ts'],
|
||||
outDir: './lib',
|
||||
target: 'node18',
|
||||
target: 'node20.6.0',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -36,7 +36,7 @@ export default defineConfig(() => {
|
||||
entry: ['./src/node/index.ts'],
|
||||
outDir: './lib/node',
|
||||
external: sharedExternal,
|
||||
target: 'node18',
|
||||
target: 'node20.6.0',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
"templates"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^18.19.0 || ^20.6.0 || >=22.0.0"
|
||||
"node": "^20.6.0 || >=22.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "pnpm '/(copy|tsup):watch/'",
|
||||
|
||||
@ -47,7 +47,7 @@ export default defineConfig((cli) => {
|
||||
entry: ['./src/node/index.ts'],
|
||||
outDir: './lib/node',
|
||||
external: sharedExternal,
|
||||
target: 'node18',
|
||||
target: 'node20.6.0',
|
||||
watch: false,
|
||||
})
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "tsconfig-vuepress/base.json",
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"target": "ES2023",
|
||||
"lib": ["DOM", "ES2024"],
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user