Skip to content

Commit

Permalink
Change bundle config
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryuni committed Dec 22, 2024
1 parent 641dfce commit f6c2a7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,17 @@
},
"dependencies": {
"@inox-tools/utils": "^0.3.0",
"astro-integration-kit": "^0.17.0",
"chalk": "^5.4.1",
"debug": "^4.4.0",
"estree-walker": "^3.0.3",
"hash-sum": "^2.0.0",
"human-format": "^1.2.1",
"magic-string": "^0.30.15",
"murmurhash-native": "^3.5.0",
"pathe": "^1.1.2"
},
"devDependencies": {
"astro-integration-kit": "^0.17.0",
"@types/debug": "^4.1.12",
"@types/hash-sum": "^1.0.2",
"@types/node": "^22.10.2",
Expand Down
8 changes: 5 additions & 3 deletions package/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
import { defineConfig } from "tsup";
import { peerDependencies } from "./package.json";
import { peerDependencies, dependencies, devDependencies } from "./package.json";

export default defineConfig((options) => {
const dev = !!options.watch;
return {
entry: ["src/**/*.(ts|js)"],
entry: ["src/index.ts"],
format: ["esm"],
target: "node18",
bundle: false,
bundle: true,
dts: true,
sourcemap: true,
clean: true,
splitting: false,
minify: !dev,
noExternal: Object.keys(devDependencies),
external: [
...Object.keys(peerDependencies),
...Object.keys(dependencies),
/node_modules/g,
],
tsconfig: "tsconfig.json",
Expand Down

0 comments on commit f6c2a7a

Please sign in to comment.