@blocklet/cli 1.6.14 → 1.6.18

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
@@ -62,14 +62,14 @@ Commands:
62
62
  Server
63
63
  deploy [options] <folder> Deploy blocklet from local directory to
64
64
  Blocklet Server
65
- dev [options] [action] Develop blocklet from current directory
65
+ dev [options] Develop blocklet from current directory
66
66
  init [options] Create an empty blocklet project
67
67
  meta Print blocklet meta from a directory
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
+ create [name] Create a blocklet use create-blocklet
73
73
  config [options] Manage the Blocklet Server configuration
74
74
  files, use blocklet config help to see detail
75
75
  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.14",
3
+ "version": "1.6.18",
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.14",
34
+ "@abtnode/cli": "1.6.18",
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": "0ae215d5cf1160631bdd9b64639c8fcf80eb2d5f"
44
+ "gitHead": "2f02f166869d8ebedc0466068f6ed90ab3e07b87"
45
45
  }