Skip to content

Commit a59c1ab

Browse files
committed
point package to types
1 parent fbff152 commit a59c1ab

File tree

2 files changed

+436
-11
lines changed

2 files changed

+436
-11
lines changed

package.json

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"name": "@testing-library/react-render-stream",
33
"version": "0.1.0",
4-
"repository": "https://github.com/phryneas/react-render-stream-testing-library.git",
4+
"repository": {
5+
"url": "git+https://github.com/phryneas/react-render-stream-testing-library.git"
6+
},
57
"author": {
68
"name": "Lenz Weber-Tronic",
79
"email": "[email protected]"
@@ -10,18 +12,38 @@
1012
"license": "MIT",
1113
"exports": {
1214
".": {
15+
"types": {
16+
"module-sync": "./dist/index.d.ts",
17+
"module": "./dist/index.d.ts",
18+
"import": "./dist/index.d.ts",
19+
"require": "./dist/index.d.cts"
20+
},
1321
"module-sync": "./dist/index.js",
1422
"module": "./dist/index.js",
1523
"import": "./dist/index.js",
1624
"require": "./dist/index.cjs"
1725
},
1826
"./jest": {
27+
"types": {
28+
"module-sync": "./dist/jest.d.ts",
29+
"module": "./dist/jest.d.ts",
30+
"import": "./dist/jest.d.ts",
31+
"require": "./dist/jest.d.cts"
32+
},
1933
"module-sync": "./dist/jest.js",
2034
"module": "./dist/jest.js",
2135
"import": "./dist/jest.js",
2236
"require": "./dist/jest.cjs"
2337
}
2438
},
39+
"types": "./dist/index.d.ts",
40+
"typesVersions": {
41+
"*": {
42+
"jest": [
43+
"./dist/jest.d.ts"
44+
]
45+
}
46+
},
2547
"files": [
2648
"dist"
2749
],
@@ -31,6 +53,7 @@
3153
"rehackt": "^0.1.0"
3254
},
3355
"devDependencies": {
56+
"@arethetypeswrong/cli": "^0.16.4",
3457
"@jest/globals": "^29.7.0",
3558
"@tsconfig/recommended": "^1.0.7",
3659
"@types/jsdom": "^21.1.7",
@@ -39,6 +62,7 @@
3962
"expect": "^29.7.0",
4063
"pkg-pr-new": "^0.0.29",
4164
"prettier": "^3.3.3",
65+
"publint": "^0.2.11",
4266
"react": "^18.3.1",
4367
"react-dom": "^18.3.1",
4468
"tsup": "^8.3.0",
@@ -52,7 +76,9 @@
5276
},
5377
"scripts": {
5478
"build": "tsup",
55-
"pkg-pr-new-publish": "yarn build && pkg-pr-new publish --no-template"
79+
"pkg-pr-new-publish": "yarn build && pkg-pr-new publish --no-template",
80+
"prepack": "yarn build",
81+
"verify": "attw --pack . && publint"
5682
},
5783
"packageManager": "[email protected]"
5884
}

0 commit comments

Comments
 (0)