@thesquad-components/sqd-module-template 0.2.0 → 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 +7 -19
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -90,25 +90,12 @@ npm run build
90
90
 
91
91
  ### 8) Publish to npm under @thesquad-components
92
92
 
93
- ```bash
94
- npm login
95
- npm publish --access public
96
- ```
97
-
98
- If the package should be private, use `--access restricted`.
99
-
100
- #### Publish using an access token
93
+ If you are not logged in, run `npm login` first.
101
94
 
102
- 1) Create a token at `https://www.npmjs.com/settings` (Access Tokens)
103
- 2) In terminal #1:
104
-
105
- ```bash
106
- export NPM_TOKEN=npm_...
107
- ```
108
-
109
- 3) In terminal #2 (same folder):
95
+ Replace the token in the command below, then run:
110
96
 
111
97
  ```bash
98
+ export NPM_TOKEN=npm_....
112
99
  npm publish --access public
113
100
  ```
114
101
 
@@ -125,11 +112,12 @@ import { YourComponent } from "@thesquad-components/your-app-name";
125
112
  ### 10) Update later
126
113
 
127
114
  - Make changes
128
- - Bump version in `package.json`
129
- - Publish again:
115
+ - Bump version in `package.json` (use semantic versioning: `MAJOR.MINOR.PATCH`)
116
+ - Publish again with the same token flow:
130
117
 
131
118
  ```bash
132
- npm publish
119
+ export NPM_TOKEN=npm_....
120
+ npm publish --access public
133
121
  ```
134
122
 
135
123
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thesquad-components/sqd-module-template",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "next dev --turbopack",