Fix build

This commit is contained in:
proteriax 2021-07-22 14:35:51 -04:00
parent 5257dc7ed2
commit 84d72d2917

View File

@ -8,7 +8,10 @@ const res = babel.transformFileSync("src/index.ts", {
presets: ["@babel/preset-typescript"], presets: ["@babel/preset-typescript"],
plugins: ["@babel/plugin-transform-modules-commonjs"], plugins: ["@babel/plugin-transform-modules-commonjs"],
}) })
fs.writeFileSync("lib/index.js", format(res.code, { parser: "babel" })) fs.writeFileSync(
"lib/index.js",
format(`/* eslint-disable */\n${res.code}`, { parser: "babel" })
)
// package.json // package.json
const pkg = require("../package.json") const pkg = require("../package.json")