Skip to content

Commit

Permalink
fix: use tsup to make the output file work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
molvqingtai committed Mar 12, 2024
1 parent d0d896f commit 8868a7a
Show file tree
Hide file tree
Showing 3 changed files with 334 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
"description": "Add bySelector and byAttribute to @testing-library/dom",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"dev": "tsc --watch",
"build": "npm run clean && tsc",
"dev": "tsup src/index.ts --dts --format esm --sourcemap --watch",
"build": "tsup src/index.ts --dts --format esm --sourcemap --clean",
"tsc": "tsc --noEmit",
"lint": "eslint src __tests__ --ext .js,.ts --fix",
"clean": "rm -rf dist",
Expand Down Expand Up @@ -57,6 +56,7 @@
"husky": "^9.0.11",
"prettier": "^3.2.5",
"semantic-release": "^23.0.2",
"tsup": "^8.0.2",
"typescript": "^5.3.3",
"vitest": "^1.3.1"
},
Expand Down
Loading

0 comments on commit 8868a7a

Please sign in to comment.