@blocklet/cli 1.6.15 → 1.6.19

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
@@ -68,8 +68,9 @@ Commands:
68
68
  version [options] [newVersion] Bump blocklet version and persist to disk
69
69
  migrate [options] Migrate blocklet meta to latest version for
70
70
  a blocklet
71
- publish [options] [metafile] Publish the blocklet release to registry
72
- upload [options] [metafile] Upload the blocklet to registry
71
+ upload [options] [metafile] Upload the blocklet to blocklet store
72
+ exec <script> Execute script in blocklet running context
73
+ create [name] Create a blocklet use create-blocklet
73
74
  config [options] Manage the Blocklet Server configuration
74
75
  files, use blocklet config help to see detail
75
76
  server [options]
package/bin/blocklet.js CHANGED
@@ -1,7 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ const path = require('path');
4
+
3
5
  const { name } = require('../package.json');
4
6
 
7
+ const getCLIBinaryName = () => {
8
+ const [, binaryPath] = process.argv;
9
+ return path.basename(binaryPath);
10
+ };
11
+
12
+ process.env.ABT_NODE_BINARY_NAME = getCLIBinaryName();
5
13
  process.env.ABT_NODE_PACKAGE_NAME = name;
6
14
 
7
15
  require('@abtnode/cli/bin/blocklet');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/cli",
3
- "version": "1.6.15",
3
+ "version": "1.6.19",
4
4
  "description": "Command line tools to manage Blocklet and Blocklet Server",
5
5
  "homepage": "https://github.com/ArcBlock/blocklet-server#readme",
6
6
  "main": "bin/blocklet.js",
@@ -31,7 +31,7 @@
31
31
  "url": "https://github.com/ArcBlock/blocklet-server/issues"
32
32
  },
33
33
  "dependencies": {
34
- "@abtnode/cli": "1.6.15",
34
+ "@abtnode/cli": "1.6.19",
35
35
  "colors": "1.4.0",
36
36
  "shelljs": "^0.8.4"
37
37
  },
@@ -41,5 +41,5 @@
41
41
  "engines": {
42
42
  "node": ">=12"
43
43
  },
44
- "gitHead": "1b7b07da04387b1daa838b251a9388355009142d"
44
+ "gitHead": "42a1290f14fca261eccafb05561eecf8683ed66a"
45
45
  }