@blastlauncher/cli 1.0.4 → 1.0.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @blastlauncher/cli
2
2
 
3
+ ## 1.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Update README and fixing `prepublishOnly` script
8
+
3
9
  ## 1.0.4
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -1,4 +1,10 @@
1
- # `blast-cli`
1
+ # `@blastlauncher/cli`
2
+
3
+ `@blastlauncher/cli` is a command line tool that used to build and publish Blast Launcher extensions.
4
+
5
+ I somehow discover that Raycast's extension build output are similar to esbuild's output, so I also use esbuild to bundle the extension and pkg to package the cli executable. Ray's CLI is way smaller, I guess their CLI is written in Go. 🤣
6
+
7
+ The publish command will upload the extension to npm registry(which is released under `@blast-extensions` for now).
2
8
 
3
9
  ## Development
4
10
 
@@ -14,6 +20,29 @@ pnpm package
14
20
 
15
21
  # Run the cli executable
16
22
  ./dist/cli-macos --help
23
+ ```
24
+
25
+ ## Installation
26
+
27
+ ### npm
28
+
29
+ ```bash
30
+ npm install -g @blastlauncher/cli
31
+ ```
17
32
 
33
+ ## Help
34
+
35
+ ```bash
36
+ Usage: blast [options] [command]
18
37
 
38
+ CLI for Blast Launcher
39
+
40
+ Options:
41
+ -h, --help display help for command
42
+
43
+ Commands:
44
+ publish [options] <path> <organization> Publish extensions
45
+ build [options] <path> Build extensions
46
+ help [command] display help for command
19
47
  ```
48
+
package/dist/index.cjs CHANGED
@@ -354,7 +354,7 @@ function updatePackageInfo(targetDir, version, npmOrganization) {
354
354
  import_fs_extra.default.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2), "utf8");
355
355
  }
356
356
  var program = new import_commander.Command();
357
- program.name("blast-cli").description(`CLI for Blast Launcher
357
+ program.name("blast").description(`CLI for Blast Launcher
358
358
 
359
359
  Example Usage:
360
360
  blast build ./extensions/todo-list -o ./extensions/todo-list/dist
package/index.js CHANGED
@@ -236,7 +236,7 @@ function updatePackageInfo(targetDir, version, npmOrganization) {
236
236
 
237
237
  const program = new Command();
238
238
 
239
- program.name("blast-cli").description(`CLI for Blast Launcher
239
+ program.name("blast").description(`CLI for Blast Launcher
240
240
 
241
241
  Example Usage:
242
242
  blast build ./extensions/todo-list -o ./extensions/todo-list/dist
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blastlauncher/cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Blast CLI Tools",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {