We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 378fbfb commit ca62317Copy full SHA for ca62317
rollup.config.mjs
@@ -3,11 +3,11 @@ import path from "node:path";
3
import url from "node:url";
4
import typescript from "rollup-plugin-typescript2";
5
import dts from "rollup-plugin-dts";
6
-import pkg from "./package.json" assert { type: "json" };
7
8
const __filename = url.fileURLToPath(import.meta.url);
9
const __dirname = path.dirname(__filename);
10
const LICENSE = fs.readFileSync("LICENSE", { encoding: "utf-8" });
+const pkg = JSON.parse(fs.readFileSync("package.json", { encoding: "utf-8" }));
11
const banner = [
12
"/*!",
13
...LICENSE.split("\n").map(o => ` * ${o}`),
0 commit comments