Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit ec50b90

Browse files
committed
chore: add clean-package
1 parent a4be605 commit ec50b90

File tree

4 files changed

+38
-3
lines changed

4 files changed

+38
-3
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -283,4 +283,5 @@ dist
283283

284284
# End of https://www.toptal.com/developers/gitignore/api/macos,node,visualstudiocode,intellij+all
285285

286-
.turbo
286+
.turbo
287+
*.backup
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"replace": {
3+
"main": "dist/index.cjs.js",
4+
"module": "dist/index.esm.js",
5+
"types": "dist/index.d.ts",
6+
"exports": {
7+
".": {
8+
"import": "./dist/index.esm.js",
9+
"require": "./dist/index.cjs.js"
10+
},
11+
"./package.json": "./package.json"
12+
}
13+
}
14+
}

packages/react/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@
2828
"test": "vitest run --reporter verbose",
2929
"test:watch": "vitest",
3030
"lint": "eslint --ext .ts,.tsx src",
31-
"typecheck": "tsc --noEmit"
31+
"typecheck": "tsc --noEmit",
32+
"prepack": "clean-package",
33+
"postpack": "clean-package restore"
3234
},
3335
"devDependencies": {
36+
"@testing-library/jest-dom": "5.16.5",
3437
"@testing-library/react": "13.4.0",
3538
"@types/react": "18.0.24",
3639
"@types/react-dom": "18.0.8",
37-
"@testing-library/jest-dom": "5.16.5",
3840
"@types/testing-library__jest-dom": "5.14.5",
3941
"@vitejs/plugin-react": "2.2.0",
42+
"clean-package": "2.1.2",
4043
"jsdom": "20.0.2",
4144
"react": "18.2.0",
4245
"react-dom": "18.2.0",

pnpm-lock.yaml

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)