@xylabs/ts-scripts-yarn3 6.5.10 → 6.5.11

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.
@@ -1618,6 +1618,7 @@ var packageCompileTsup = async (config2) => {
1618
1618
  }
1619
1619
  return (await Promise.all(
1620
1620
  Object.entries(compileForNode).map(async ([folder, options]) => {
1621
+ const optionsObject = typeof options === "object" ? options : {};
1621
1622
  const inEsBuildOptions = typeof compile2?.node?.esbuildOptions === "object" ? compile2?.node?.esbuildOptions : {};
1622
1623
  return typeof folder === "string" ? await compileFolder(
1623
1624
  folder,
@@ -1626,13 +1627,14 @@ var packageCompileTsup = async (config2) => {
1626
1627
  inEsBuildOptions,
1627
1628
  compile2?.tsup?.options ?? {},
1628
1629
  typeof options === "object" ? options : {},
1629
- { platform: "node", outDir: "dist/node" }
1630
+ { platform: "node", outDir: optionsObject.outDir ?? "dist/node" }
1630
1631
  ]),
1631
1632
  verbose
1632
1633
  ) : 0;
1633
1634
  })
1634
1635
  )).reduce((prev, value) => prev + value, 0) + (await Promise.all(
1635
1636
  Object.entries(compileForBrowser).map(async ([folder, options]) => {
1637
+ const optionsObject = typeof options === "object" ? options : {};
1636
1638
  const inEsBuildOptions = typeof compile2?.browser?.esbuildOptions === "object" ? compile2?.browser?.esbuildOptions : {};
1637
1639
  return typeof folder === "string" ? await compileFolder(
1638
1640
  folder,
@@ -1641,13 +1643,14 @@ var packageCompileTsup = async (config2) => {
1641
1643
  inEsBuildOptions,
1642
1644
  compile2?.tsup?.options ?? {},
1643
1645
  typeof options === "object" ? options : {},
1644
- { platform: "browser", outDir: "dist/browser" }
1646
+ { platform: "browser", outDir: optionsObject.outDir ?? "dist/browser" }
1645
1647
  ]),
1646
1648
  verbose
1647
1649
  ) : 0;
1648
1650
  })
1649
1651
  )).reduce((prev, value) => prev + value, 0) + (await Promise.all(
1650
1652
  Object.entries(compileForNeutral).map(async ([folder, options]) => {
1653
+ const optionsObject = typeof options === "object" ? options : {};
1651
1654
  const inEsBuildOptions = typeof compile2?.neutral?.esbuildOptions === "object" ? compile2?.neutral?.esbuildOptions : {};
1652
1655
  return typeof folder === "string" ? await compileFolder(
1653
1656
  folder,
@@ -1656,7 +1659,7 @@ var packageCompileTsup = async (config2) => {
1656
1659
  inEsBuildOptions,
1657
1660
  compile2?.tsup?.options ?? {},
1658
1661
  typeof options === "object" ? options : {},
1659
- { platform: "neutral", outDir: "dist/neutral" }
1662
+ { platform: "neutral", outDir: optionsObject.outDir ?? "dist/neutral" }
1660
1663
  ]),
1661
1664
  verbose
1662
1665
  ) : 0;