@embeddable.com/init 0.1.16 → 0.1.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 +6 -23
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -59,31 +59,14 @@ npx <path-to-this-repo>
|
|
|
59
59
|
|
|
60
60
|
## Publishing to npm
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
Publishing happens automatically when code is merged to `main`. The GitHub Action will:
|
|
63
63
|
|
|
64
|
-
1.
|
|
65
|
-
2.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
```
|
|
64
|
+
1. Build the package
|
|
65
|
+
2. Bump the patch version
|
|
66
|
+
3. Publish to npm
|
|
67
|
+
4. Push the version bump commit back to the repo
|
|
69
68
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
1. Update the version in `package.json`:
|
|
73
|
-
```bash
|
|
74
|
-
npm version patch # or minor/major
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
2. Publish to npm:
|
|
78
|
-
```bash
|
|
79
|
-
npm publish --access public
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
The `prepublishOnly` script will automatically run the build before publishing.
|
|
83
|
-
|
|
84
|
-
### Verifying the release
|
|
85
|
-
|
|
86
|
-
After publishing, verify the package is available:
|
|
69
|
+
To verify a release:
|
|
87
70
|
|
|
88
71
|
```bash
|
|
89
72
|
npm view @embeddable.com/init
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embeddable.com/init",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "CLI tool for Embeddable",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -12,7 +12,11 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsup",
|
|
14
14
|
"dev": "tsup --watch",
|
|
15
|
-
"prepublishOnly": "npm run build"
|
|
15
|
+
"prepublishOnly": "npm run build",
|
|
16
|
+
"test": "vitest run",
|
|
17
|
+
"test:watch": "vitest",
|
|
18
|
+
"test:coverage": "vitest run --coverage",
|
|
19
|
+
"prepare": "husky"
|
|
16
20
|
},
|
|
17
21
|
"keywords": [
|
|
18
22
|
"embeddable",
|
|
@@ -32,7 +36,9 @@
|
|
|
32
36
|
"devDependencies": {
|
|
33
37
|
"@types/degit": "^2.8.6",
|
|
34
38
|
"@types/prompts": "^2.4.9",
|
|
39
|
+
"husky": "^9.1.7",
|
|
35
40
|
"tsup": "^8.0.0",
|
|
36
|
-
"typescript": "^5.0.0"
|
|
41
|
+
"typescript": "^5.0.0",
|
|
42
|
+
"vitest": "^4.0.18"
|
|
37
43
|
}
|
|
38
44
|
}
|