tuts-test-library 1.0.3 → 1.0.9
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 +9 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# How to build a library using React 19, Vite, Tsup, and PNPM
|
|
2
2
|
This guide details how to scaffold, configure, build, and publish a React 19 component library using TypeScript, Vite, and Tsup.
|
|
3
3
|
___
|
|
4
4
|
|
|
@@ -125,7 +125,7 @@ Modify `package.json` to define entry points, scripts, and peer dependencies.
|
|
|
125
125
|
"lint": "eslint .",
|
|
126
126
|
"preview": "vite preview"
|
|
127
127
|
},
|
|
128
|
-
"files": [
|
|
128
|
+
"files": [ // add this
|
|
129
129
|
"dist"
|
|
130
130
|
],
|
|
131
131
|
"dependencies": {
|
|
@@ -257,7 +257,7 @@ If you get an error:
|
|
|
257
257
|
> 6. Copy the generated token string.
|
|
258
258
|
> // **you have to create organization if you don't have one.**
|
|
259
259
|
|
|
260
|
-
- 403 error regarding 2FA or granular access tokens—looks like this.
|
|
260
|
+
- 403 error regarding 2FA or granular access tokens—looks like this. <br>
|
|
261
261
|

|
|
262
262
|
|
|
263
263
|
### 3. Set Token
|
|
@@ -272,10 +272,14 @@ Retry to publish the library:
|
|
|
272
272
|
npm publish --access public
|
|
273
273
|
```
|
|
274
274
|
|
|
275
|
-
TA-DA! 🎉🎉🎉🎉
|
|
275
|
+
TA-DA! 🎉🎉🎉🎉 <br>
|
|
276
276
|

|
|
277
277
|

|
|
278
278
|
|
|
279
279
|
***
|
|
280
280
|
## CONGRATULATIONS 🎉🎉🎉🎉
|
|
281
|
-
You have successfully published your React 19 component library to NPMJS.
|
|
281
|
+
You have successfully published your React 19 component library to NPMJS.
|
|
282
|
+
|
|
283
|
+
***
|
|
284
|
+
## Author
|
|
285
|
+
- LinkedIn - [Hatwell Jonel](https://www.linkedin.com/in/jonel-hatwell/)
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/components/Hello.tsx","../src/components/Greetings.tsx"],"sourcesContent":["// src/index.ts\
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/components/Hello.tsx","../src/components/Greetings.tsx"],"sourcesContent":["// src/index.ts\nexport { default as Hello } from './components/Hello'\nexport { default as Greetings } from './components/Greetings'","// src/components/Hello.tsx\n\nfunction Hello(){\n return (\n <div>Test Library is Working Successfully!</div>\n )\n}\n\nexport default Hello","interface HelloTwoProps {\n name: string\n}\n\nconst Greetings = ({name}: HelloTwoProps) => {\n return (\n <div>Hello {name}!</div>\n )\n}\n\nexport default Greetings"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIQ;AAFR,SAAS,QAAO;AACZ,SACI,4CAAC,SAAI,mDAAqC;AAElD;AAEA,IAAO,gBAAQ;;;ACFX,IAAAA,sBAAA;AAFJ,IAAM,YAAY,CAAC,EAAC,KAAI,MAAqB;AAC3C,SACE,8CAAC,SAAI;AAAA;AAAA,IAAO;AAAA,IAAK;AAAA,KAAC;AAEtB;AAEA,IAAO,oBAAQ;","names":["import_jsx_runtime"]}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Hello.tsx","../src/components/Greetings.tsx"],"sourcesContent":["// src/components/Hello.tsx\
|
|
1
|
+
{"version":3,"sources":["../src/components/Hello.tsx","../src/components/Greetings.tsx"],"sourcesContent":["// src/components/Hello.tsx\n\nfunction Hello(){\n return (\n <div>Test Library is Working Successfully!</div>\n )\n}\n\nexport default Hello","interface HelloTwoProps {\n name: string\n}\n\nconst Greetings = ({name}: HelloTwoProps) => {\n return (\n <div>Hello {name}!</div>\n )\n}\n\nexport default Greetings"],"mappings":";AAIQ;AAFR,SAAS,QAAO;AACZ,SACI,oBAAC,SAAI,mDAAqC;AAElD;AAEA,IAAO,gBAAQ;;;ACFX;AAFJ,IAAM,YAAY,CAAC,EAAC,KAAI,MAAqB;AAC3C,SACE,qBAAC,SAAI;AAAA;AAAA,IAAO;AAAA,IAAK;AAAA,KAAC;AAEtB;AAEA,IAAO,oBAAQ;","names":[]}
|
package/package.json
CHANGED
|
@@ -4,17 +4,11 @@
|
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.9",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"dev": "tsup --watch --sourcemap",
|
|
14
|
-
"build": "tsup",
|
|
15
|
-
"lint": "eslint .",
|
|
16
|
-
"preview": "vite preview"
|
|
17
|
-
},
|
|
18
12
|
"dependencies": {
|
|
19
13
|
"react": "^19.2.0",
|
|
20
14
|
"react-dom": "^19.2.0"
|
|
@@ -54,5 +48,11 @@
|
|
|
54
48
|
"typescript": "~5.9.3",
|
|
55
49
|
"typescript-eslint": "^8.46.4",
|
|
56
50
|
"vite": "^7.2.4"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"dev": "tsup --watch --sourcemap",
|
|
54
|
+
"build": "tsup",
|
|
55
|
+
"lint": "eslint .",
|
|
56
|
+
"preview": "vite preview"
|
|
57
57
|
}
|
|
58
|
-
}
|
|
58
|
+
}
|