parent
4935dff231
commit
2dd8e25616
@ -4,6 +4,9 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
"exports": {
|
||||||
|
".": "./dist/index"
|
||||||
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"tachybase": "./bin/cli.js"
|
"tachybase": "./bin/cli.js"
|
||||||
},
|
},
|
||||||
|
@ -12,6 +12,7 @@ const pkg = require('./package.json');
|
|||||||
|
|
||||||
const entries = {
|
const entries = {
|
||||||
cli: 'src/cli.ts',
|
cli: 'src/cli.ts',
|
||||||
|
index: 'src/index.ts',
|
||||||
};
|
};
|
||||||
|
|
||||||
const external = [
|
const external = [
|
||||||
|
1
packages/core/cli/src/index.ts
Normal file
1
packages/core/cli/src/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './plugin-generator';
|
@ -1,5 +1,6 @@
|
|||||||
import { CleanOptions, Collection, SyncOptions } from '@nocobase/database';
|
import { CleanOptions, Collection, SyncOptions } from '@nocobase/database';
|
||||||
import { importModule, isURL } from '@nocobase/utils';
|
import { importModule, isURL } from '@nocobase/utils';
|
||||||
|
import { PluginGenerator } from '@tachybase/cli';
|
||||||
import { fsExists } from '@nocobase/utils/plugin-symlink';
|
import { fsExists } from '@nocobase/utils/plugin-symlink';
|
||||||
import execa from 'execa';
|
import execa from 'execa';
|
||||||
import fg from 'fast-glob';
|
import fg from 'fast-glob';
|
||||||
@ -239,7 +240,6 @@ export class PluginManager {
|
|||||||
if (options?.forceRecreate) {
|
if (options?.forceRecreate) {
|
||||||
await fs.promises.rm(pluginDir, { recursive: true, force: true });
|
await fs.promises.rm(pluginDir, { recursive: true, force: true });
|
||||||
}
|
}
|
||||||
const { PluginGenerator } = require('@nocobase/cli/src/plugin-generator');
|
|
||||||
const generator = new PluginGenerator({
|
const generator = new PluginGenerator({
|
||||||
cwd: process.cwd(),
|
cwd: process.cwd(),
|
||||||
args: {},
|
args: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user