makepack 1.7.26 → 1.7.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -147,13 +147,11 @@ async function bundler(args, spinner, child = false) {
|
|
|
147
147
|
const formats = isModern ? ["esm", "cjs"] : [args.format];
|
|
148
148
|
|
|
149
149
|
for (let f of formats) {
|
|
150
|
-
const isFirst = formats[0] === f;
|
|
151
|
-
const dir = isFirst ? outdir : path.join(outdir, f);
|
|
152
150
|
|
|
153
151
|
if (f === "esm" || f === "cjs") {
|
|
154
152
|
let ext = isModern ? f === "esm" ? "js" : "cjs" : "js"
|
|
155
153
|
outputs.push({
|
|
156
|
-
dir,
|
|
154
|
+
dir: outdir,
|
|
157
155
|
format: f,
|
|
158
156
|
sourcemap: args.sourcemap,
|
|
159
157
|
preserveModules: true,
|
|
@@ -66,7 +66,7 @@ const build = async (args) => {
|
|
|
66
66
|
if (await fs.pathExists(pkgPath)) {
|
|
67
67
|
const pkgjson = await fs.readJson(pkgPath);
|
|
68
68
|
delete pkgjson.scripts;
|
|
69
|
-
delete pkgjson.type;
|
|
69
|
+
// delete pkgjson.type;
|
|
70
70
|
delete pkgjson.devDependencies;
|
|
71
71
|
delete pkgjson.jest;
|
|
72
72
|
delete pkgjson.prettier;
|