From 3570696595a4e20f1b2e56a779a71e5501b988b2 Mon Sep 17 00:00:00 2001 From: sealday Date: Wed, 17 Apr 2024 16:36:09 +0800 Subject: [PATCH] fix: default version is 0.0.1 --- packages/core/cli/src/plugin-generator.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/cli/src/plugin-generator.ts b/packages/core/cli/src/plugin-generator.ts index 0b2e68c4d..00284d03c 100644 --- a/packages/core/cli/src/plugin-generator.ts +++ b/packages/core/cli/src/plugin-generator.ts @@ -35,13 +35,12 @@ export class PluginGenerator extends Generator { async getContext() { const { name } = this.context; - const nocobaseVersion = require('@nocobase/server/package.json').version; const packageVersion = await getProjectVersion(); return { ...this.context, packageName: name, packageVersion, - nocobaseVersion, + nocobaseVersion: "0.0.1", pascalCaseName: capitalize(camelize(name.split('/').pop())), }; }