@blocklet/cli 1.17.8-beta-20260104-120132-cb5b1914 → 1.17.8-beta-20260108-021819-e099f0ca
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/lib/util/blocklet/env.js +4 -1
- package/package.json +25 -25
package/lib/util/blocklet/env.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
|
+
const debug = require('debug');
|
|
2
3
|
const chalk = require('chalk');
|
|
3
4
|
const inquirer = require('inquirer');
|
|
4
5
|
const dotenv = require('dotenv-flow');
|
|
@@ -65,7 +66,7 @@ const getMetaDefinedEnv = (blocklet) => {
|
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
const ensureBlockletEnv = async (node, blocklet, dir) => {
|
|
68
|
-
const envFiles = dotenv.listFiles(dir,
|
|
69
|
+
const envFiles = dotenv.listFiles({ path: dir, node_env: 'development' });
|
|
69
70
|
let env = {};
|
|
70
71
|
envFiles.forEach((x) => {
|
|
71
72
|
if (fs.existsSync(x)) {
|
|
@@ -73,6 +74,8 @@ const ensureBlockletEnv = async (node, blocklet, dir) => {
|
|
|
73
74
|
}
|
|
74
75
|
});
|
|
75
76
|
|
|
77
|
+
debug('ensureBlockletEnv', envFiles, env);
|
|
78
|
+
|
|
76
79
|
Object.assign(env, getMetaDefinedEnv(blocklet));
|
|
77
80
|
|
|
78
81
|
// merge blocklet.yml config from dotenv files
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/cli",
|
|
3
|
-
"version": "1.17.8-beta-
|
|
3
|
+
"version": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
4
4
|
"description": "Command line tools to manage Blocklet Server",
|
|
5
5
|
"homepage": "https://www.arcblock.io/docs/blocklet-cli",
|
|
6
6
|
"bin": {
|
|
@@ -33,33 +33,33 @@
|
|
|
33
33
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/blocklet-services": "1.17.8-beta-
|
|
37
|
-
"@abtnode/constant": "1.17.8-beta-
|
|
38
|
-
"@abtnode/core": "1.17.8-beta-
|
|
39
|
-
"@abtnode/db-cache": "1.17.8-beta-
|
|
40
|
-
"@abtnode/logger": "1.17.8-beta-
|
|
41
|
-
"@abtnode/models": "1.17.8-beta-
|
|
42
|
-
"@abtnode/router-provider": "1.17.8-beta-
|
|
43
|
-
"@abtnode/util": "1.17.8-beta-
|
|
44
|
-
"@abtnode/webapp": "1.17.8-beta-
|
|
45
|
-
"@arcblock/did": "^1.
|
|
46
|
-
"@arcblock/event-hub": "^1.
|
|
36
|
+
"@abtnode/blocklet-services": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
37
|
+
"@abtnode/constant": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
38
|
+
"@abtnode/core": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
39
|
+
"@abtnode/db-cache": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
40
|
+
"@abtnode/logger": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
41
|
+
"@abtnode/models": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
42
|
+
"@abtnode/router-provider": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
43
|
+
"@abtnode/util": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
44
|
+
"@abtnode/webapp": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
45
|
+
"@arcblock/did": "^1.28.4",
|
|
46
|
+
"@arcblock/event-hub": "^1.28.4",
|
|
47
47
|
"@arcblock/ipfs-only-hash": "^0.0.2",
|
|
48
|
-
"@arcblock/jwt": "^1.
|
|
49
|
-
"@arcblock/ws": "^1.
|
|
50
|
-
"@blocklet/constant": "1.17.8-beta-
|
|
48
|
+
"@arcblock/jwt": "^1.28.4",
|
|
49
|
+
"@arcblock/ws": "^1.28.4",
|
|
50
|
+
"@blocklet/constant": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
51
51
|
"@blocklet/error": "^0.3.5",
|
|
52
52
|
"@blocklet/form-collector": "^0.1.8",
|
|
53
|
-
"@blocklet/images": "1.17.8-beta-
|
|
54
|
-
"@blocklet/meta": "1.17.8-beta-
|
|
55
|
-
"@blocklet/resolver": "1.17.8-beta-
|
|
56
|
-
"@blocklet/server-js": "1.17.8-beta-
|
|
57
|
-
"@blocklet/store": "1.17.8-beta-
|
|
53
|
+
"@blocklet/images": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
54
|
+
"@blocklet/meta": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
55
|
+
"@blocklet/resolver": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
56
|
+
"@blocklet/server-js": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
57
|
+
"@blocklet/store": "1.17.8-beta-20260108-021819-e099f0ca",
|
|
58
58
|
"@blocklet/theme-builder": "^0.4.8",
|
|
59
|
-
"@ocap/client": "^1.
|
|
60
|
-
"@ocap/mcrypto": "^1.
|
|
61
|
-
"@ocap/util": "^1.
|
|
62
|
-
"@ocap/wallet": "^1.
|
|
59
|
+
"@ocap/client": "^1.28.4",
|
|
60
|
+
"@ocap/mcrypto": "^1.28.4",
|
|
61
|
+
"@ocap/util": "^1.28.4",
|
|
62
|
+
"@ocap/wallet": "^1.28.4",
|
|
63
63
|
"@vercel/ncc": "^0.38.3",
|
|
64
64
|
"archiver": "^7.0.1",
|
|
65
65
|
"async": "^3.2.4",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"engines": {
|
|
154
154
|
"node": ">=14"
|
|
155
155
|
},
|
|
156
|
-
"gitHead": "
|
|
156
|
+
"gitHead": "88c2e45e1c1d2d636bb240bf4d9c05dbabe7b5a8",
|
|
157
157
|
"devDependencies": {
|
|
158
158
|
"@types/fs-extra": "^11.0.4"
|
|
159
159
|
}
|