@lumpcode/cli 0.0.1 → 0.0.2
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/DOCS/publishing.md +19 -17
- package/README.md +1 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/DOCS/publishing.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Publishing `@lumpcode/*` to npm (operators)
|
|
2
2
|
|
|
3
|
-
Operator-only notes for publishing from the monorepo. End users install via `npm i -g @lumpcode/cli
|
|
3
|
+
Operator-only notes for publishing from the monorepo. End users install via `npm i -g @lumpcode/cli` (see [README](../README.md)).
|
|
4
4
|
|
|
5
5
|
## Bump versions
|
|
6
6
|
|
|
@@ -49,40 +49,42 @@ Inspect tarballs: `dist/`, CLI `bin/`, `postinstall` scripts, `LICENSE`, README.
|
|
|
49
49
|
Or use the helper script (build + publish):
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
node scripts/publish-npm
|
|
53
|
-
node scripts/publish-npm
|
|
52
|
+
node scripts/publish-npm.mjs --dry-run # build + pack only
|
|
53
|
+
node scripts/publish-npm.mjs # build + publish (latest)
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
##
|
|
56
|
+
## Publish (`latest` tag)
|
|
57
|
+
|
|
58
|
+
`npm publish` without `--tag` sets the `latest` dist-tag. Plain `npm i @lumpcode/cli` resolves to it.
|
|
57
59
|
|
|
58
60
|
```bash
|
|
59
61
|
npm login
|
|
60
62
|
npm whoami
|
|
61
63
|
|
|
62
|
-
npm publish -w=@lumpcode/core --access public
|
|
63
|
-
npm publish -w=@lumpcode/cli-types --access public
|
|
64
|
-
npm publish -w=@lumpcode/cli --access public
|
|
64
|
+
npm publish -w=@lumpcode/core --access public
|
|
65
|
+
npm publish -w=@lumpcode/cli-types --access public
|
|
66
|
+
npm publish -w=@lumpcode/cli --access public
|
|
65
67
|
```
|
|
66
68
|
|
|
67
|
-
|
|
69
|
+
Users install:
|
|
68
70
|
|
|
69
71
|
```bash
|
|
70
|
-
npm i -g @lumpcode/cli
|
|
71
|
-
npm i -D @lumpcode/cli-types
|
|
72
|
+
npm i -g @lumpcode/cli
|
|
73
|
+
npm i -D @lumpcode/cli-types
|
|
72
74
|
```
|
|
73
75
|
|
|
74
|
-
|
|
76
|
+
`npm update -g @lumpcode/cli` picks up new `latest` releases after you bump the version and publish again.
|
|
77
|
+
|
|
78
|
+
## Remove a stale `beta` dist-tag
|
|
75
79
|
|
|
76
|
-
|
|
80
|
+
If packages were previously published with `--tag beta` and you no longer want that tag:
|
|
77
81
|
|
|
78
82
|
```bash
|
|
79
|
-
npm dist-tag
|
|
80
|
-
npm dist-tag
|
|
81
|
-
npm dist-tag
|
|
83
|
+
npm dist-tag rm @lumpcode/core beta
|
|
84
|
+
npm dist-tag rm @lumpcode/cli-types beta
|
|
85
|
+
npm dist-tag rm @lumpcode/cli beta
|
|
82
86
|
```
|
|
83
87
|
|
|
84
|
-
Replace `0.0.0` with the version you are promoting.
|
|
85
|
-
|
|
86
88
|
## Notes
|
|
87
89
|
|
|
88
90
|
- `repository` in `package.json` is omitted (not required for publish).
|
package/README.md
CHANGED
|
@@ -17,9 +17,7 @@ Pick the option that fits your setup (see [lumpcode.com](https://lumpcode.com) f
|
|
|
17
17
|
- **macOS (Homebrew):** `brew install lumpcode`
|
|
18
18
|
- **Linux / macOS (curl):** follow the one-liner on the website
|
|
19
19
|
- **Windows:** download the installer or binary from the website
|
|
20
|
-
- **npm (Node 22+):** `npm install -g @lumpcode/cli
|
|
21
|
-
|
|
22
|
-
During pre-launch, npm packages use the `beta` dist-tag. Omit `@beta` once `latest` is promoted.
|
|
20
|
+
- **npm (Node 22+):** `npm install -g @lumpcode/cli`
|
|
23
21
|
|
|
24
22
|
The npm package installs a `lumpcode` command that uses a **native binary for your OS when one is available** from the matching release; otherwise it runs the bundled CLI with Node. No extra steps are required.
|
|
25
23
|
|