@nocobase/cli-v1 2.1.0-beta.27 → 2.1.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/cli-v1",
3
- "version": "2.1.0-beta.27",
3
+ "version": "2.1.0-beta.30",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./src/index.js",
@@ -8,9 +8,9 @@
8
8
  "nocobase-v1": "./bin/index.js"
9
9
  },
10
10
  "dependencies": {
11
- "@nocobase/cli": "2.1.0-beta.27",
11
+ "@nocobase/cli": "2.1.0-beta.30",
12
12
  "@nocobase/license-kit": "^0.3.8",
13
- "@nocobase/utils": "2.1.0-beta.27",
13
+ "@nocobase/utils": "2.1.0-beta.30",
14
14
  "@types/fs-extra": "^11.0.1",
15
15
  "@umijs/utils": "3.5.20",
16
16
  "chalk": "^4.1.1",
@@ -28,12 +28,12 @@
28
28
  "tsx": "^4.19.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@nocobase/devtools": "2.1.0-beta.27"
31
+ "@nocobase/devtools": "2.1.0-beta.30"
32
32
  },
33
33
  "repository": {
34
34
  "type": "git",
35
35
  "url": "git+https://github.com/nocobase/nocobase.git",
36
36
  "directory": "packages/core/cli"
37
37
  },
38
- "gitHead": "6d9e2d4ac3c6bf40951c8eb252860e47aa3a3c37"
38
+ "gitHead": "1a493069cd0d8a4f403668bfe592879678c894b2"
39
39
  }
@@ -13,7 +13,7 @@ const fs = require('fs-extra');
13
13
  const zlib = require('zlib');
14
14
  const tar = require('tar');
15
15
  const path = require('path');
16
- const { createStoragePluginsSymlink, resolvePluginStoragePath } = require('@nocobase/utils/plugin-symlink');
16
+ const { syncPluginSymlinks, resolvePluginStoragePath } = require('@nocobase/utils/plugin-symlink');
17
17
  const { getAccessKeyPair, showLicenseInfo, LicenseKeyError } = require('../license');
18
18
  const { logger } = require('../logger');
19
19
 
@@ -313,7 +313,7 @@ module.exports = (cli) => {
313
313
  const file = path.resolve(__dirname, '../../package.json');
314
314
  const json = await fs.readJson(file);
315
315
  await pm.download({ version: json.version });
316
- await createStoragePluginsSymlink();
316
+ await syncPluginSymlinks();
317
317
  });
318
318
  pkg.command('export-all').action(async () => {
319
319
  logger.info('Todo...');
@@ -12,7 +12,7 @@ const { run, isDev, isPackageValid, generatePlaywrightPath, generatePlugins } =
12
12
  const { dirname, resolve } = require('path');
13
13
  const { existsSync, mkdirSync, readFileSync, appendFileSync } = require('fs');
14
14
  const { readFile, writeFile } = require('fs').promises;
15
- const { createStoragePluginsSymlink, createDevPluginsSymlink } = require('@nocobase/utils/plugin-symlink');
15
+ const { syncPluginSymlinks } = require('@nocobase/utils/plugin-symlink');
16
16
 
17
17
  function runPatchPackage() {
18
18
  // run yarn patch-package
@@ -59,11 +59,10 @@ module.exports = (cli) => {
59
59
  writeToExclude();
60
60
  generatePlugins();
61
61
  generatePlaywrightPath(true);
62
- await createStoragePluginsSymlink();
62
+ await syncPluginSymlinks();
63
63
  if (!isDev()) {
64
64
  return;
65
65
  }
66
- await createDevPluginsSymlink();
67
66
  const cwd = process.cwd();
68
67
  if (!existsSync(resolve(cwd, '.env')) && existsSync(resolve(cwd, '.env.example'))) {
69
68
  const content = await readFile(resolve(cwd, '.env.example'), 'utf-8');