@basictech/cli 0.0.15 → 0.0.16

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/bin/readme.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  A command-line interface for interacting with the Basic API.
4
4
 
5
+ ## Docs
6
+
7
+ - https://docs.basic.tech/get-started/cli
8
+
9
+
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ npm i -g @basictech/cli
15
+ ```
16
+
17
+
5
18
  ## Usage
6
19
 
7
20
  ## Available Commands
@@ -41,3 +54,8 @@ A command-line interface for interacting with the Basic API.
41
54
 
42
55
  - Make sure you're logged in using the `login` command before using commands that require authentication.
43
56
  - Use the `help` command to see this list of available commands in the CLI.
57
+
58
+ Links:
59
+
60
+ - https://www.npmjs.com/package/@basictech/cli
61
+ https://docs.basic.tech/get-started/cli
package/index.js CHANGED
@@ -98,6 +98,7 @@ const installBinary = async () => {
98
98
  const main = async () => {
99
99
  try {
100
100
  await installBinary();
101
+ process.exit(0);
101
102
  } catch (err) {
102
103
  console.error('Error:', err.message);
103
104
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basictech/cli",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "basictech cli for creating & managing your projects",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -10,7 +10,7 @@
10
10
  "basic": "./bin/basic-cli"
11
11
  },
12
12
  "scripts": {
13
- "postinstall": "node ./index.js",
13
+ "preinstall": "node ./index.js",
14
14
  "test": "echo \"Error: no test specified\" && exit 1"
15
15
  },
16
16
  "author": "raz@basic.tech",