pubm 0.0.0-alpha.21 → 0.0.0-alpha.4
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 +35 -86
- package/bin/.pubm/NjcyMGM5OTA3Yzk3MWMyZjEwYTYxOTQwMGZmOWM0ZTA= +1 -1
- package/bin/cli.js +190 -4548
- package/dist/index.cjs +186 -4531
- package/dist/index.d.cts +15 -5
- package/dist/index.d.ts +15 -5
- package/dist/index.js +170 -4540
- package/package.json +1 -3
package/README.md
CHANGED
|
@@ -10,63 +10,24 @@ pubm
|
|
|
10
10
|
publish manager for multiple registry (jsr, npm and private registries)
|
|
11
11
|
<p>
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Why
|
|
14
14
|
|
|
15
|
-
-
|
|
16
|
-
- Customize (Soon)
|
|
15
|
+
- Customize with plugin
|
|
17
16
|
- GitHub release draft format
|
|
18
|
-
- Adjust tasks (Add, Remove, Sorting
|
|
17
|
+
- Adjust tasks (Add, Remove, Sorting)
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- Node.js 18 or later
|
|
23
|
-
- npm 9 or later
|
|
24
|
-
- Git 2.11 or later
|
|
25
|
-
|
|
26
|
-
## Install
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
npm i -g pubm
|
|
30
|
-
```
|
|
19
|
+
It is designed to be easy to managing publish to multiple registry.
|
|
31
20
|
|
|
32
21
|
## Usage
|
|
33
22
|
|
|
34
23
|
```bash
|
|
35
|
-
|
|
36
|
-
$ pubm [version]
|
|
37
|
-
|
|
38
|
-
Version can be:
|
|
39
|
-
major | premajor | minor | preminor | patch | prepatch | prerelease | 1.2.3
|
|
40
|
-
|
|
41
|
-
Options:
|
|
42
|
-
--test-script <script> The npm script to run tests before publishing (default: test)
|
|
43
|
-
--build-script <script> The npm script to run build before publishing (default: build)
|
|
44
|
-
-p, --preview Show tasks without actually executing publish
|
|
45
|
-
-b, --branch <name> Name of the release branch (default: main)
|
|
46
|
-
-a, --any-branch Show tasks without actually executing publish
|
|
47
|
-
--no-pre-check Skip prerequisites check task
|
|
48
|
-
--no-condition-check Skip required conditions check task
|
|
49
|
-
--no-tests Skip running tests before publishing
|
|
50
|
-
--no-build Skip build before publishing
|
|
51
|
-
--no-publish Skip publishing task
|
|
52
|
-
--no-release-draft Skip creating a GitHub release draft
|
|
53
|
-
-t, --tag <name> Publish under a specific dist-tag (default: latest)
|
|
54
|
-
-c, --contents <path> Subdirectory to publish
|
|
55
|
-
--no-save-token Do not save jsr tokens (request the token each time)
|
|
56
|
-
--registry <...registries> Target registries for publish
|
|
57
|
-
registry can be npm | jsr | https://url.for.private-registries (default: npm,jsr)
|
|
58
|
-
-h, --help Display this message
|
|
59
|
-
-v, --version Display version number
|
|
24
|
+
pubm [version]
|
|
60
25
|
```
|
|
61
26
|
|
|
62
|
-
## Config for publish
|
|
27
|
+
## Config file for publish
|
|
63
28
|
|
|
64
29
|
You can have either package.json or jsr.json.
|
|
65
30
|
|
|
66
|
-
### Configuration file (Soon)
|
|
67
|
-
|
|
68
|
-
`pubm.js` or `pubm.mjs`
|
|
69
|
-
|
|
70
31
|
|
|
71
32
|
## Tasks
|
|
72
33
|
|
|
@@ -75,35 +36,35 @@ You can have either package.json or jsr.json.
|
|
|
75
36
|
pubm tasks
|
|
76
37
|
</summary>
|
|
77
38
|
|
|
78
|
-
- Notify new version
|
|
79
|
-
- Checking required information
|
|
80
|
-
- Select SemVer increment or specify new version
|
|
81
|
-
- Select the tag for this pre-release version in npm: (if version is prerelease)
|
|
82
|
-
- checking for the existence of either package.json or jsr.json
|
|
83
|
-
- Prerequisite checks = skip-pre (for deployment reliability)
|
|
84
|
-
- Checking if remote history is clean...
|
|
85
|
-
- Checking if the local working tree is clean...
|
|
86
|
-
- Checking if commits exist since the last release...
|
|
87
|
-
- Verifying current branch is a release branch...
|
|
88
|
-
- Checking git tag existence...
|
|
89
|
-
- Required conditions checks (concurrently) = skip-required (for pubm tasks)
|
|
90
|
-
- Verifying if npm CLI and jsr CLI are installed...
|
|
91
|
-
- Ping registries...
|
|
92
|
-
- Checking if test and build scripts exist...
|
|
93
|
-
- Checking git version...
|
|
94
|
-
- Checking available registries for publishing...
|
|
95
|
-
- in jsr permission check token exist and ask token
|
|
96
|
-
- if first time -> Checking package name availability...
|
|
97
|
-
- if scoped package and scope reserved contact message
|
|
98
|
-
- Running tests...
|
|
99
|
-
- Building the project...
|
|
100
|
-
- Bumping version...
|
|
101
|
-
- Publishing... (concurrently)
|
|
102
|
-
- npm
|
|
103
|
-
- Running npm publish...
|
|
104
|
-
- Verifying two-factor authentication...
|
|
105
|
-
- jsr
|
|
106
|
-
- Running jsr publish...
|
|
39
|
+
- Notify new version ✅
|
|
40
|
+
- Checking required information ✅
|
|
41
|
+
- Select SemVer increment or specify new version ✅
|
|
42
|
+
- Select the tag for this pre-release version in npm: (if version is prerelease) ✅
|
|
43
|
+
- checking for the existence of either package.json or jsr.json ✅
|
|
44
|
+
- Prerequisite checks = skip-pre (for deployment reliability) ✅
|
|
45
|
+
- Checking if remote history is clean... ✅
|
|
46
|
+
- Checking if the local working tree is clean... ✅
|
|
47
|
+
- Checking if commits exist since the last release... ✅
|
|
48
|
+
- Verifying current branch is a release branch... ✅
|
|
49
|
+
- Checking git tag existence... ✅
|
|
50
|
+
- Required conditions checks (concurrently) = skip-required (for pubm tasks) ✅
|
|
51
|
+
- Verifying if npm CLI and jsr CLI are installed... ✅
|
|
52
|
+
- Ping registries... ✅
|
|
53
|
+
- Checking if test and build scripts exist... ✅
|
|
54
|
+
- Checking git version... ✅
|
|
55
|
+
- Checking available registries for publishing... ✅
|
|
56
|
+
- in jsr permission check token exist and ask token ✅
|
|
57
|
+
- if first time -> Checking package name availability... ✅
|
|
58
|
+
- if scoped package and scope reserved contact message ✅
|
|
59
|
+
- Running tests... ✅
|
|
60
|
+
- Building the project... ✅
|
|
61
|
+
- Bumping version... ✅
|
|
62
|
+
- Publishing... (concurrently) ✅
|
|
63
|
+
- npm ✅
|
|
64
|
+
- Running npm publish... ✅
|
|
65
|
+
- Verifying two-factor authentication... ✅
|
|
66
|
+
- jsr ✅
|
|
67
|
+
- Running jsr publish... ✅
|
|
107
68
|
- Pushing tags to GitHub...
|
|
108
69
|
- Creating release draft on GitHub...
|
|
109
70
|
</details>
|
|
@@ -142,15 +103,3 @@ np tasks
|
|
|
142
103
|
- Push tags
|
|
143
104
|
- Release draft
|
|
144
105
|
</details>
|
|
145
|
-
|
|
146
|
-
## FAQ
|
|
147
|
-
|
|
148
|
-
### Why does jsr only ask for tokens?
|
|
149
|
-
|
|
150
|
-
The only way to access jsr’s certified environment is through a direct API request with a token.
|
|
151
|
-
|
|
152
|
-
### How is the jsr token stored? Is it secure?
|
|
153
|
-
|
|
154
|
-
The jsr token is encrypted and stored using various layers of information. As long as you have control over the local machine where pubm was run, it is highly unlikely the token can be compromised.
|
|
155
|
-
|
|
156
|
-
If you prefer not to save tokens, you can use the `--no-save-token` option, which will request the token each time.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1c6ab800220010cccc00a20fefb9b039f33ed35e5c4c7289b4824faaefdc3d7668ac308ef610826bc7b5a148c30e1c1d
|