diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4edd64da..21f080eb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -86,6 +86,18 @@ importers: sass-loader: 12.6.0 vue: 3.2.33 + packages/plugin-baidu-tongji: + specifiers: + '@vuepress/client': 2.0.0-beta.43 + '@vuepress/core': 2.0.0-beta.43 + '@vuepress/shared': 2.0.0-beta.43 + '@vuepress/utils': 2.0.0-beta.43 + dependencies: + '@vuepress/client': 2.0.0-beta.43 + '@vuepress/core': 2.0.0-beta.43 + '@vuepress/shared': 2.0.0-beta.43 + '@vuepress/utils': 2.0.0-beta.43 + packages/plugin-caniuse: specifiers: '@types/markdown-it': ^12.2.3 diff --git a/scripts/create/generator.ts b/scripts/create/generator.ts index 264db743..7b317756 100644 --- a/scripts/create/generator.ts +++ b/scripts/create/generator.ts @@ -56,7 +56,11 @@ const initPackage = async (config: ConfigOptions): Promise => { const { name, client } = config const pkgName = packageName(name) const targetDir = path.join(packagesRoot, pkgName) - const dependencies: string[] = ['@vuepress/core@next'] + const dependencies: string[] = [ + '@vuepress/core@next', + '@vuepress/utils@next', + '@vuepress/shared@next' + ] client && dependencies.push('@vuepress/client@next') spinner.start(chalk.cyan('Installing...')) diff --git a/scripts/create/template/src/client/clientAppEnhance.ts.tpl b/scripts/create/template/src/client/clientAppEnhance.ts.tpl index 548c14c5..1f8efeb1 100644 --- a/scripts/create/template/src/client/clientAppEnhance.ts.tpl +++ b/scripts/create/template/src/client/clientAppEnhance.ts.tpl @@ -1,5 +1,5 @@ import { defineClientAppEnhance } from '@vuepress/client' export default defineClientAppEnhance(({ router }) => { - + // do something }) diff --git a/scripts/create/template/src/node/plugin.ts.tpl b/scripts/create/template/src/node/plugin.ts.tpl index f03078cb..49cc2a53 100644 --- a/scripts/create/template/src/node/plugin.ts.tpl +++ b/scripts/create/template/src/node/plugin.ts.tpl @@ -1,6 +1,6 @@ -import type { Plugin, App } from '@vuepress/core' +import type { App, Plugin } from '@vuepress/core' {{#if client}} -import path from 'path' +import { path } from '@vuepress/utils' {{/if}} {{#if shared}} import type { {{ upperName }}Options } from '../shared'