Skip to content

Commit

Permalink
Remove reading package.json from tsup.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Zaunseder committed Jun 24, 2024
1 parent ffe60b6 commit e27940c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { readFile } from "node:fs/promises";
import { defineConfig } from "tsup";

const pkg = JSON.parse(await readFile("package.json", "utf8"));

export default defineConfig({
entry: {
pngmin: "./src/cjs-wrapper.cts",
Expand All @@ -11,6 +8,5 @@ export default defineConfig({
format: ["cjs"],
target: "node12",
platform: "node",
external: pkg.dependencies ? Object.keys(pkg.dependencies) : undefined,
outDir: "tasks",
});

0 comments on commit e27940c

Please sign in to comment.