@blocklet/cli 1.16.46 → 1.16.47-beta-20250710-123505-c50a3bdc

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 CHANGED
@@ -28,7 +28,7 @@ Powered By
28
28
  / ___ \| | | (__| |_) | | (_) | (__| <
29
29
  /_/ \_\_| \___|____/|_|\___/ \___|_|\_\
30
30
 
31
- Blocklet CLI v1.16.45
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,
@@ -1,4 +1,4 @@
1
- const defaultExternals = ['sqlite3', 'sharp', '@abtnode/models', '@blocklet/sdk', 'ws'];
1
+ const defaultExternals = ['sqlite3', 'sharp', '@abtnode/models', 'ws'];
2
2
 
3
3
  module.exports = {
4
4
  defaultExternals,
@@ -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.46",
3
+ "version": "1.16.47-beta-20250710-123505-c50a3bdc",
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.46",
39
- "@abtnode/client": "1.16.46",
40
- "@abtnode/constant": "1.16.46",
41
- "@abtnode/core": "1.16.46",
42
- "@abtnode/db-cache": "1.16.46",
43
- "@abtnode/logger": "1.16.46",
44
- "@abtnode/models": "1.16.46",
45
- "@abtnode/router-provider": "1.16.46",
46
- "@abtnode/util": "1.16.46",
47
- "@abtnode/webapp": "1.16.46",
38
+ "@abtnode/blocklet-services": "1.16.47-beta-20250710-123505-c50a3bdc",
39
+ "@abtnode/client": "1.16.47-beta-20250710-123505-c50a3bdc",
40
+ "@abtnode/constant": "1.16.47-beta-20250710-123505-c50a3bdc",
41
+ "@abtnode/core": "1.16.47-beta-20250710-123505-c50a3bdc",
42
+ "@abtnode/db-cache": "1.16.47-beta-20250710-123505-c50a3bdc",
43
+ "@abtnode/logger": "1.16.47-beta-20250710-123505-c50a3bdc",
44
+ "@abtnode/models": "1.16.47-beta-20250710-123505-c50a3bdc",
45
+ "@abtnode/router-provider": "1.16.47-beta-20250710-123505-c50a3bdc",
46
+ "@abtnode/util": "1.16.47-beta-20250710-123505-c50a3bdc",
47
+ "@abtnode/webapp": "1.16.47-beta-20250710-123505-c50a3bdc",
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.46",
53
+ "@blocklet/constant": "1.16.47-beta-20250710-123505-c50a3bdc",
54
54
  "@blocklet/error": "^0.2.5",
55
55
  "@blocklet/form-collector": "^0.1.8",
56
- "@blocklet/images": "1.16.46",
57
- "@blocklet/meta": "1.16.46",
58
- "@blocklet/resolver": "1.16.46",
59
- "@blocklet/store": "1.16.46",
56
+ "@blocklet/images": "1.16.47-beta-20250710-123505-c50a3bdc",
57
+ "@blocklet/meta": "1.16.47-beta-20250710-123505-c50a3bdc",
58
+ "@blocklet/resolver": "1.16.47-beta-20250710-123505-c50a3bdc",
59
+ "@blocklet/store": "1.16.47-beta-20250710-123505-c50a3bdc",
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": "7539a231d36a17026dc7066b1d79e1e026337beb",
157
+ "gitHead": "91504e15ebe43ae5f2c12e6090783412d10e320d",
158
158
  "devDependencies": {
159
159
  "@types/fs-extra": "^11.0.4",
160
160
  "@types/jest": "^29.5.13"