@thesquad-components/sqd-module-template 0.1.9 → 0.2.1

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.
Files changed (2) hide show
  1. package/README.md +9 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -90,13 +90,15 @@ npm run build
90
90
 
91
91
  ### 8) Publish to npm under @thesquad-components
92
92
 
93
+ If you are not logged in, run `npm login` first.
94
+
95
+ Replace the token in the command below, then run:
96
+
93
97
  ```bash
94
- npm login
98
+ export NPM_TOKEN=npm_....
95
99
  npm publish --access public
96
100
  ```
97
101
 
98
- If the package should be private, use `--access restricted`.
99
-
100
102
  ### 9) Use it in another app
101
103
 
102
104
  ```bash
@@ -110,11 +112,12 @@ import { YourComponent } from "@thesquad-components/your-app-name";
110
112
  ### 10) Update later
111
113
 
112
114
  - Make changes
113
- - Bump version in `package.json`
114
- - Publish again:
115
+ - Bump version in `package.json` (use semantic versioning: `MAJOR.MINOR.PATCH`)
116
+ - Publish again with the same token flow:
115
117
 
116
118
  ```bash
117
- npm publish
119
+ export NPM_TOKEN=npm_....
120
+ npm publish --access public
118
121
  ```
119
122
 
120
123
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thesquad-components/sqd-module-template",
3
- "version": "0.1.9",
3
+ "version": "0.2.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "next dev --turbopack",