Skip to content

Commit

Permalink
chore: update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
zxch3n committed Jan 6, 2025
1 parent 9b6af34 commit d82e03f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from "rollup";
import dts from "rollup-plugin-dts";
import esbuild from "rollup-plugin-esbuild";
import packageJson from "./package.json" assert { type: "json" };
import { readFileSync } from "fs";
const packageJson = JSON.parse(readFileSync("./package.json"));

const name = packageJson.main.replace(/\.js$/, "");

Expand Down

0 comments on commit d82e03f

Please sign in to comment.