fix: default version is 0.0.1
This commit is contained in:
parent
6d0e3eded2
commit
3570696595
@ -35,13 +35,12 @@ export class PluginGenerator extends Generator {
|
|||||||
|
|
||||||
async getContext() {
|
async getContext() {
|
||||||
const { name } = this.context;
|
const { name } = this.context;
|
||||||
const nocobaseVersion = require('@nocobase/server/package.json').version;
|
|
||||||
const packageVersion = await getProjectVersion();
|
const packageVersion = await getProjectVersion();
|
||||||
return {
|
return {
|
||||||
...this.context,
|
...this.context,
|
||||||
packageName: name,
|
packageName: name,
|
||||||
packageVersion,
|
packageVersion,
|
||||||
nocobaseVersion,
|
nocobaseVersion: "0.0.1",
|
||||||
pascalCaseName: capitalize(camelize(name.split('/').pop())),
|
pascalCaseName: capitalize(camelize(name.split('/').pop())),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user