@blocklet/cli 1.16.46-beta-20250709-123154-c05c363c → 1.16.47-beta-20250710-073736-01b9c1bc
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/README.md +2 -1
- package/lib/commands/blocklet/bundle/bundle.js +0 -2
- package/lib/commands/blocklet/bundle/compact/default-external.js +1 -1
- package/lib/commands/blocklet/bundle/compact/index.js +7 -0
- package/lib/commands/blocklet/bundle/parse-external-dependencies.js +2 -2
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Powered By
|
|
|
28
28
|
/ ___ \| | | (__| |_) | | (_) | (__| <
|
|
29
29
|
/_/ \_\_| \___|____/|_|\___/ \___|_|\_\
|
|
30
30
|
|
|
31
|
-
Blocklet CLI v1.16.
|
|
31
|
+
Blocklet CLI v1.16.46
|
|
32
32
|
|
|
33
33
|
Usage: blocklet server [options] [command]
|
|
34
34
|
|
|
@@ -50,6 +50,7 @@ Commands:
|
|
|
50
50
|
info [options] Get environment information for debugging and
|
|
51
51
|
issue reporting
|
|
52
52
|
cleanup [options] Do some server level cleanup work
|
|
53
|
+
migration [options] Migrate database from sqlite to postgres
|
|
53
54
|
upgrade Self-Upgrade Blocklet Server
|
|
54
55
|
help [command] display help for command
|
|
55
56
|
|
|
@@ -58,7 +58,6 @@ const createBlockletBundle = async ({
|
|
|
58
58
|
inMonoRepo = false,
|
|
59
59
|
withChangeLog = true,
|
|
60
60
|
externals = [],
|
|
61
|
-
externalManager = 'npm',
|
|
62
61
|
compact = false,
|
|
63
62
|
dependenciesDepth = 9,
|
|
64
63
|
}) => {
|
|
@@ -128,7 +127,6 @@ const createBlockletBundle = async ({
|
|
|
128
127
|
const json = JSON.parse(fs.readFileSync(packageFile).toString());
|
|
129
128
|
const result = parseExternalDependencies({
|
|
130
129
|
externals,
|
|
131
|
-
externalManager,
|
|
132
130
|
distDir,
|
|
133
131
|
persist: false,
|
|
134
132
|
dependenciesDepth,
|
|
@@ -4,6 +4,7 @@ const path = require('path');
|
|
|
4
4
|
const chalk = require('chalk');
|
|
5
5
|
const { BLOCKLET_BUNDLE_FOLDER, BLOCKLET_ENTRY_FILE } = require('@blocklet/constant');
|
|
6
6
|
const parseBlockletMeta = require('@blocklet/meta/lib/parse');
|
|
7
|
+
const { installExternalDependencies } = require('@abtnode/core/lib/util/install-external-dependencies');
|
|
7
8
|
|
|
8
9
|
const { print, printSuccess } = require('../../../../util');
|
|
9
10
|
const { wrapSpinner } = require('../../../../ui');
|
|
@@ -123,6 +124,12 @@ exports.run = async ({
|
|
|
123
124
|
});
|
|
124
125
|
});
|
|
125
126
|
|
|
127
|
+
await installExternalDependencies({
|
|
128
|
+
appDir: buildOutputDir,
|
|
129
|
+
nodeInfo: { isDockerInstalled: false },
|
|
130
|
+
});
|
|
131
|
+
fs.removeSync(path.join(buildOutputDir, 'node_modules'));
|
|
132
|
+
|
|
126
133
|
// print total stats
|
|
127
134
|
printSuccess(`Blocklet ${chalk.cyan(`${meta.name}@${meta.version}`)} was successfully bundled!`);
|
|
128
135
|
|
|
@@ -25,7 +25,7 @@ function isValidVersion(version) {
|
|
|
25
25
|
function parseExternalDependencies({
|
|
26
26
|
externals = [],
|
|
27
27
|
distDir,
|
|
28
|
-
externalManager,
|
|
28
|
+
externalManager = 'bun',
|
|
29
29
|
persist = true,
|
|
30
30
|
dependenciesDepth = 9,
|
|
31
31
|
}) {
|
|
@@ -33,7 +33,7 @@ function parseExternalDependencies({
|
|
|
33
33
|
// eslint-disable-next-line no-param-reassign
|
|
34
34
|
dependenciesDepth = Number(dependenciesDepth);
|
|
35
35
|
}
|
|
36
|
-
if (['npm', 'pnpm', 'yarn'].includes(externalManager) === false) {
|
|
36
|
+
if (['npm', 'pnpm', 'yarn', 'bun'].includes(externalManager) === false) {
|
|
37
37
|
throw new Error(`Unsupported external manager: ${externalManager}`);
|
|
38
38
|
}
|
|
39
39
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/cli",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
4
4
|
"description": "Command line tools to manage Blocklet Server",
|
|
5
5
|
"homepage": "https://github.com/ArcBlock/blocklet-server#readme",
|
|
6
6
|
"bin": {
|
|
@@ -35,28 +35,28 @@
|
|
|
35
35
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@abtnode/blocklet-services": "1.16.
|
|
39
|
-
"@abtnode/client": "1.16.
|
|
40
|
-
"@abtnode/constant": "1.16.
|
|
41
|
-
"@abtnode/core": "1.16.
|
|
42
|
-
"@abtnode/db-cache": "1.16.
|
|
43
|
-
"@abtnode/logger": "1.16.
|
|
44
|
-
"@abtnode/models": "1.16.
|
|
45
|
-
"@abtnode/router-provider": "1.16.
|
|
46
|
-
"@abtnode/util": "1.16.
|
|
47
|
-
"@abtnode/webapp": "1.16.
|
|
38
|
+
"@abtnode/blocklet-services": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
39
|
+
"@abtnode/client": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
40
|
+
"@abtnode/constant": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
41
|
+
"@abtnode/core": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
42
|
+
"@abtnode/db-cache": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
43
|
+
"@abtnode/logger": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
44
|
+
"@abtnode/models": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
45
|
+
"@abtnode/router-provider": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
46
|
+
"@abtnode/util": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
47
|
+
"@abtnode/webapp": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
48
48
|
"@arcblock/did": "1.20.15",
|
|
49
49
|
"@arcblock/event-hub": "1.20.15",
|
|
50
50
|
"@arcblock/ipfs-only-hash": "^0.0.2",
|
|
51
51
|
"@arcblock/jwt": "1.20.15",
|
|
52
52
|
"@arcblock/ws": "1.20.15",
|
|
53
|
-
"@blocklet/constant": "1.16.
|
|
53
|
+
"@blocklet/constant": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
54
54
|
"@blocklet/error": "^0.2.5",
|
|
55
55
|
"@blocklet/form-collector": "^0.1.8",
|
|
56
|
-
"@blocklet/images": "1.16.
|
|
57
|
-
"@blocklet/meta": "1.16.
|
|
58
|
-
"@blocklet/resolver": "1.16.
|
|
59
|
-
"@blocklet/store": "1.16.
|
|
56
|
+
"@blocklet/images": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
57
|
+
"@blocklet/meta": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
58
|
+
"@blocklet/resolver": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
59
|
+
"@blocklet/store": "1.16.47-beta-20250710-073736-01b9c1bc",
|
|
60
60
|
"@blocklet/theme-builder": "^0.3.1",
|
|
61
61
|
"@ocap/client": "1.20.15",
|
|
62
62
|
"@ocap/mcrypto": "1.20.15",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"engines": {
|
|
155
155
|
"node": ">=14"
|
|
156
156
|
},
|
|
157
|
-
"gitHead": "
|
|
157
|
+
"gitHead": "c43b4f2244b11ad072f32784adf35c435d29c3ca",
|
|
158
158
|
"devDependencies": {
|
|
159
159
|
"@types/fs-extra": "^11.0.4",
|
|
160
160
|
"@types/jest": "^29.5.13"
|