Skip to content

Commit

Permalink
try tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert Bouw committed May 3, 2023
1 parent 3440f84 commit 9289205
Show file tree
Hide file tree
Showing 5 changed files with 318 additions and 37 deletions.
30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@evertbouw/pulleys",
"version": "1.2.0",
"main": "./lib/cjs/index.js",
"exports": "./lib/esm/index.js",
"types": "./lib/esm/index.d.ts",
"description": "Do the heavy lifting with these React hooks!",
"version": "2.0.0",
"main": "./lib/index.js",
"exports": "./lib/index.mjs",
"types": "./lib/index.d.ts",
"files": [
"./lib"
],
Expand All @@ -13,10 +14,7 @@
"author": "Evert Bouw <[email protected]>",
"license": "MIT",
"scripts": {
"build:esm": "tsc --project tsconfig.esm.json",
"build:cjs": "tsc --project tsconfig.cjs.json",
"build": "run-s clean build:esm build:cjs",
"clean": "rimraf ./lib",
"build": "tsup src/index.ts --format esm,cjs --dts --sourcemap --clean --out-dir lib",
"test": "vitest",
"coverage": "vitest run --coverage",
"lint": "eslint src",
Expand All @@ -26,6 +24,15 @@
"docs:deploy": "gh-pages -d docs",
"docs:publish": "run-s docs:clean docs:generate docs:deploy"
},
"engines": {
"node": ">=16.0.0"
},
"peerDependencies": {
"react": ">16.8.0"
},
"optionalPeerDependencies": {
"@types/react": ">16.8.0"
},
"devDependencies": {
"@testing-library/dom": "^9.2.0",
"@testing-library/jest-dom": "^5.16.5",
Expand All @@ -52,15 +59,10 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^5.0.0",
"tsup": "^6.7.0",
"typedoc": "^0.24.6",
"typescript": "^5.0.4",
"vite": "^4.3.1",
"vitest": "^0.30.1"
},
"peerDependencies": {
"react": ">16.8.0"
},
"optionalPeerDependencies": {
"@types/react": ">16.8.0"
}
}
Loading

0 comments on commit 9289205

Please sign in to comment.