Skip to content

Commit

Permalink
Improved tsup compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjake committed Jan 12, 2024
1 parent e1c31d5 commit b4c05f8
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 48 deletions.
22 changes: 18 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
],
"scripts": {
"benchmark": "vitest bench --run",
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts",
"build": "tsup",
"clean": "gts clean",
"dev": "vitest",
"fix": "gts fix",
Expand All @@ -38,13 +38,14 @@
"@changesets/types": "^6.0.0",
"@codspeed/vitest-plugin": "^2.3.1",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@vitest/coverage-istanbul": "^1.1.3",
"@vitest/coverage-istanbul": "^1.2.0",
"gts": "^5.2.0",
"prettier": "^3.1.1",
"prettier": "^3.2.0",
"prettier-plugin-organize-imports": "^3.2.4",
"terser": "^5.26.0",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vitest": "^1.1.3"
"vitest": "^1.2.0"
},
"keywords": [
"color",
Expand All @@ -61,5 +62,18 @@
},
"publishConfig": {
"access": "public"
},
"tsup": {
"entry": [
"src/index.ts"
],
"clean": true,
"sourcemap": true,
"dts": true,
"format": [
"cjs",
"esm"
],
"minify": true
}
}
125 changes: 81 additions & 44 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b4c05f8

Please sign in to comment.