makepack 1.7.25 → 1.7.27

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makepack",
3
- "version": "1.7.25",
3
+ "version": "1.7.27",
4
4
  "type": "module",
5
5
  "description": "A CLI tool to create, build, and manage JavaScript, TypeScript, React, and React-TypeScript libraries for npm projects.",
6
6
  "categories": [
@@ -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,
@@ -190,7 +188,6 @@ async function bundler(args, spinner, child = false) {
190
188
  plugins: [dts()],
191
189
  });
192
190
  await bundlets.write({
193
- format: "esm",
194
191
  preserveModules: true,
195
192
  preserveModulesRoot: args.rootdir,
196
193
  dir: path.join(args.outdir),