Skip to content

Commit

Permalink
Fix react and date-fns peer dependencies again
Browse files Browse the repository at this point in the history
Closes #19
  • Loading branch information
MatthewStanciu committed Dec 13, 2023
1 parent 5c1ff34 commit d2cd250
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
23 changes: 14 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,14 @@
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"pub": "npm run build && npm publish",
"build": "bunchee",
"build": "npm run test && rm -rf dist && bunchee",
"package": "npm run build && npm pack",
"test": "jest --no-cache --runInBand",
"test:cov": "jest --coverage --no-cache --runInBand"
},
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"react": ">=17.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"files": [
"dist",
"react"
Expand Down Expand Up @@ -77,5 +69,18 @@
"prettier": "^3.1.1",
"ts-jest": "^29.1.1",
"typescript": "^5.3.3"
},
"peerDependencies": {
"react": ">=17.0.0",
"@types/react": ">=17.0.0",
"date-fns": ">=2.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"@types/react": {
"optional": true
}
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2016",
"target": "ES2020",
"strict": true,
"moduleResolution": "Node",
"esModuleInterop": true,
Expand Down

0 comments on commit d2cd250

Please sign in to comment.