Fix build
This commit is contained in:
parent
5257dc7ed2
commit
84d72d2917
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user