@nocobase/cli 2.0.0-alpha.62 → 2.0.0-alpha.63

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",
3
- "version": "2.0.0-alpha.62",
3
+ "version": "2.0.0-alpha.63",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./src/index.js",
@@ -8,7 +8,7 @@
8
8
  "nocobase": "./bin/index.js"
9
9
  },
10
10
  "dependencies": {
11
- "@nocobase/app": "2.0.0-alpha.62",
11
+ "@nocobase/app": "2.0.0-alpha.63",
12
12
  "@nocobase/license-kit": "^0.3.5",
13
13
  "@types/fs-extra": "^11.0.1",
14
14
  "@umijs/utils": "3.5.20",
@@ -27,12 +27,12 @@
27
27
  "tsx": "^4.19.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@nocobase/devtools": "2.0.0-alpha.62"
30
+ "@nocobase/devtools": "2.0.0-alpha.63"
31
31
  },
32
32
  "repository": {
33
33
  "type": "git",
34
34
  "url": "git+https://github.com/nocobase/nocobase.git",
35
35
  "directory": "packages/core/cli"
36
36
  },
37
- "gitHead": "a6e543098afba0edc2189edc04f27c1726fff564"
37
+ "gitHead": "0d5e9eb45e4d0f3ba70d7561a0d296d12a4d8bf8"
38
38
  }
@@ -283,7 +283,12 @@ module.exports = (cli) => {
283
283
  NOCOBASE_PKG_URL = 'https://pkg.nocobase.com/',
284
284
  NOCOBASE_PKG_USERNAME,
285
285
  NOCOBASE_PKG_PASSWORD,
286
+ DISABLE_PKG_DOWNLOAD,
286
287
  } = process.env;
288
+ if (DISABLE_PKG_DOWNLOAD === 'true') {
289
+ logger.info('Package download is disabled.');
290
+ return;
291
+ }
287
292
  let accessKeyId;
288
293
  let accessKeySecret;
289
294
  try {
package/src/util.js CHANGED
@@ -297,6 +297,7 @@ function buildIndexHtml(force = false) {
297
297
  const data = fs.readFileSync(tpl, 'utf-8');
298
298
  const replacedData = data
299
299
  .replace(/\{\{env.APP_PUBLIC_PATH\}\}/g, process.env.APP_PUBLIC_PATH)
300
+ .replace(/\{\{env.API_CLIENT_SHARE_TOKEN\}\}/g, process.env.API_CLIENT_SHARE_TOKEN || 'false')
300
301
  .replace(/\{\{env.API_CLIENT_STORAGE_TYPE\}\}/g, process.env.API_CLIENT_STORAGE_TYPE)
301
302
  .replace(/\{\{env.API_CLIENT_STORAGE_PREFIX\}\}/g, process.env.API_CLIENT_STORAGE_PREFIX)
302
303
  .replace(/\{\{env.API_BASE_URL\}\}/g, process.env.API_BASE_URL || process.env.API_BASE_PATH)
@@ -360,6 +361,7 @@ exports.initEnv = function initEnv() {
360
361
  APP_PORT: 13000,
361
362
  API_BASE_PATH: '/api/',
362
363
  API_CLIENT_STORAGE_PREFIX: 'NOCOBASE_',
364
+ API_CLIENT_SHARE_TOKEN: 'false',
363
365
  API_CLIENT_STORAGE_TYPE: 'localStorage',
364
366
  // DB_DIALECT: 'sqlite',
365
367
  DB_STORAGE: 'storage/db/nocobase.sqlite',