@choksheak/react-utils 0.1.0 → 0.1.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 (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +4 -0
  3. package/package.json +31 -5
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # Chok's React Utils
1
+ # Chok's React Utilities
2
2
 
3
3
  Miscellaneous React+TypeScript utilities with support for full tree-shaking.
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ // src/index.ts
4
+ console.log(`Hello from Chok's React Utils`);
package/package.json CHANGED
@@ -1,15 +1,36 @@
1
1
  {
2
2
  "name": "@choksheak/react-utils",
3
3
  "license": "The Unlicense",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "Miscellaneous React+TypeScript utilities with support for full tree-shaking.",
6
6
  "private": false,
7
- "main": "dist/index.js",
8
- "module": "dist/index.mjs",
9
- "types": "dist/index.d.ts",
7
+ "main": "index.js",
8
+ "module": "index.mjs",
9
+ "types": "index.d.ts",
10
10
  "files": [
11
11
  "dist"
12
12
  ],
13
+ "exports": {
14
+ "./package.json": "./package.json",
15
+ "./fetcher": {
16
+ "types": "./fetcher.d.ts",
17
+ "import": "./fetcher.js"
18
+ },
19
+ "./sharedState": {
20
+ "types": "./sharedState.d.ts",
21
+ "import": "./sharedState.js"
22
+ }
23
+ },
24
+ "typesVersions": {
25
+ "*": {
26
+ "fetcher": [
27
+ "fetcher.d.ts"
28
+ ],
29
+ "sharedState": [
30
+ "sharedState.d.ts"
31
+ ]
32
+ }
33
+ },
13
34
  "scripts": {
14
35
  "lint": "eslint .",
15
36
  "fix": "eslint . --fix",
@@ -20,8 +41,12 @@
20
41
  "test:watch": "vitest",
21
42
  "ci": "npm run lint && npm run tsc && npm run build && npm run test",
22
43
  "ls": "lint-staged",
23
- "docs": "typedoc src/index.ts --out docs",
44
+ "docs": "rm -rf docs && typedoc `find src -name '*.ts' ! -name '*.test.ts'` --out docs --name 'Chok’s React Utilities'",
24
45
  "gen-types": "tsc --emitDeclarationOnly --declaration",
46
+ "bump": "tsx bump-version.ts",
47
+ "bump:patch": "tsx bump-version.ts --patch",
48
+ "bump:minor": "tsx bump-version.ts --minor",
49
+ "bump:major": "tsx bump-version.ts --major",
25
50
  "pub": "publish.sh",
26
51
  "postinstall": "simple-git-hooks"
27
52
  },
@@ -77,6 +102,7 @@
77
102
  "react-dom": "^19.2.0",
78
103
  "simple-git-hooks": "^2.13.1",
79
104
  "tsup": "^8.5.0",
105
+ "tsx": "^4.20.6",
80
106
  "typedoc": "^0.28.14",
81
107
  "typescript": "^5.9.3",
82
108
  "typescript-eslint": "^8.46.2",