@storm-software/tsup 0.2.13 → 0.2.16

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/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.2.11-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.2.15-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
-
44
43
  ## Table of Contents
45
44
 
46
45
  - [Storm tsup build package](#storm-tsup-build-package)
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-5522FPAL.js";
3
+ } from "./chunk-LKL3O6HN.js";
4
4
 
5
5
  // src/constants.ts
6
6
  init_esm_shims();
@@ -33,12 +33,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  mod
34
34
  ));
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/assets/esm_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/assets/esm_shims.js
37
37
  import { fileURLToPath } from "url";
38
38
  import path from "path";
39
39
  var getFilename, getDirname, __dirname;
40
40
  var init_esm_shims = __esm({
41
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/assets/esm_shims.js"() {
41
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/assets/esm_shims.js"() {
42
42
  "use strict";
43
43
  getFilename = () => fileURLToPath(import.meta.url);
44
44
  getDirname = () => path.dirname(getFilename());
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-5522FPAL.js";
3
+ } from "./chunk-LKL3O6HN.js";
4
4
 
5
5
  // src/types.ts
6
6
  init_esm_shims();
@@ -1,17 +1,13 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS,
3
3
  getEnv
4
- } from "./chunk-ZEHMJYA6.js";
4
+ } from "./chunk-42KMS2SL.js";
5
5
  import {
6
6
  init_esm_shims
7
- } from "./chunk-5522FPAL.js";
7
+ } from "./chunk-LKL3O6HN.js";
8
8
 
9
9
  // src/options.ts
10
10
  init_esm_shims();
11
- import {
12
- createProjectGraphAsync,
13
- readProjectsConfigurationFromProjectGraph
14
- } from "@nx/devkit";
15
11
 
16
12
  // ../config-tools/dist/get-config.js
17
13
  init_esm_shims();
@@ -1642,9 +1638,6 @@ async function resolveOptions(userOptions) {
1642
1638
  writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
1643
1639
  }
1644
1640
  const stopwatch = getStopwatch("Build options resolution");
1645
- const projectGraph = await createProjectGraphAsync({
1646
- exitOnError: false
1647
- });
1648
1641
  const projectJsonPath = joinPaths(
1649
1642
  workspaceRoot.dir,
1650
1643
  projectRoot,
@@ -1656,12 +1649,6 @@ async function resolveOptions(userOptions) {
1656
1649
  const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
1657
1650
  const projectJson = JSON.parse(projectJsonFile);
1658
1651
  const projectName = projectJson.name || userOptions.name;
1659
- const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
1660
- if (!projectConfigurations?.projects?.[projectName]) {
1661
- throw new Error(
1662
- "The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
1663
- );
1664
- }
1665
1652
  const options = defu3(userOptions, DEFAULT_BUILD_OPTIONS);
1666
1653
  options.name ??= projectName;
1667
1654
  const packageJsonPath = joinPaths(
@@ -1673,7 +1660,6 @@ async function resolveOptions(userOptions) {
1673
1660
  throw new Error("Cannot find package.json configuration");
1674
1661
  }
1675
1662
  const env = getEnv("esbuild", options);
1676
- const define = defu3(options.define ?? {}, env ?? {});
1677
1663
  const resolvedOptions = {
1678
1664
  name: projectName,
1679
1665
  entry: [joinPaths(workspaceRoot.dir, projectRoot, "src/index.ts")],
@@ -1681,18 +1667,15 @@ async function resolveOptions(userOptions) {
1681
1667
  ...options,
1682
1668
  outDir: options.outputPath || joinPaths(workspaceConfig.workspaceRoot, "dist", options.projectRoot),
1683
1669
  tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths(workspaceRoot.dir, projectRoot, "tsconfig.json"),
1684
- env: {
1685
- ...Object.keys(env).filter((key) => env[key] !== void 0).reduce((res, key) => {
1686
- const value = JSON.stringify(env[key]);
1687
- const safeKey = key.replaceAll("(", "").replaceAll(")", "");
1688
- return {
1689
- ...res,
1690
- [`process.env.${safeKey}`]: value,
1691
- [`import.meta.env.${safeKey}`]: value
1692
- };
1693
- }, {})
1694
- },
1695
- define
1670
+ env: Object.keys(env).filter((key) => env[key] !== void 0).reduce((ret, key) => {
1671
+ const value = JSON.stringify(env[key]);
1672
+ const safeKey = key.replaceAll("(", "").replaceAll(")", "");
1673
+ return {
1674
+ ...ret,
1675
+ [`process.env.${safeKey}`]: value,
1676
+ [`import.meta.env.${safeKey}`]: value
1677
+ };
1678
+ }, {})
1696
1679
  };
1697
1680
  if (!resolvedOptions.silent) {
1698
1681
  stopwatch();
@@ -1701,7 +1684,7 @@ async function resolveOptions(userOptions) {
1701
1684
  ` \u2699\uFE0F Build options resolved:
1702
1685
 
1703
1686
  ${formatLogMessage(resolvedOptions)}`,
1704
- workspaceConfig
1687
+ { ...workspaceConfig, logLevel: "all" }
1705
1688
  );
1706
1689
  }
1707
1690
  }
package/dist/constants.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_BUILD_OPTIONS
3
- } from "./chunk-ZEHMJYA6.js";
4
- import "./chunk-5522FPAL.js";
3
+ } from "./chunk-42KMS2SL.js";
4
+ import "./chunk-LKL3O6HN.js";
5
5
  export {
6
6
  DEFAULT_BUILD_OPTIONS
7
7
  };
package/dist/index.cjs CHANGED
@@ -33,16 +33,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  ));
34
34
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/assets/cjs_shims.js
36
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/assets/cjs_shims.js
37
37
  var init_cjs_shims = __esm({
38
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/assets/cjs_shims.js"() {
38
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/assets/cjs_shims.js"() {
39
39
  "use strict";
40
40
  }
41
41
  });
42
42
 
43
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-BYH4XDRH.js
43
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-BYH4XDRH.js
44
44
  var require_chunk_BYH4XDRH = __commonJS({
45
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports2) {
45
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports2) {
46
46
  "use strict";
47
47
  init_cjs_shims();
48
48
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -51,9 +51,9 @@ var require_chunk_BYH4XDRH = __commonJS({
51
51
  }
52
52
  });
53
53
 
54
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-TWFEYLU4.js
54
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-TWFEYLU4.js
55
55
  var require_chunk_TWFEYLU4 = __commonJS({
56
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports2) {
56
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports2) {
57
57
  "use strict";
58
58
  init_cjs_shims();
59
59
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -430,9 +430,9 @@ var require_chunk_TWFEYLU4 = __commonJS({
430
430
  }
431
431
  });
432
432
 
433
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-VGC3FXLU.js
433
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-VGC3FXLU.js
434
434
  var require_chunk_VGC3FXLU = __commonJS({
435
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports2) {
435
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports2) {
436
436
  "use strict";
437
437
  init_cjs_shims();
438
438
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -659,9 +659,9 @@ var require_chunk_VGC3FXLU = __commonJS({
659
659
  }
660
660
  });
661
661
 
662
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-JZ25TPTY.js
662
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-JZ25TPTY.js
663
663
  var require_chunk_JZ25TPTY = __commonJS({
664
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports2) {
664
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports2) {
665
665
  "use strict";
666
666
  init_cjs_shims();
667
667
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -710,9 +710,9 @@ var require_chunk_JZ25TPTY = __commonJS({
710
710
  }
711
711
  });
712
712
 
713
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/commonjs-plugin.js
713
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/commonjs-plugin.js
714
714
  var require_commonjs_plugin = __commonJS({
715
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/commonjs-plugin.js"(exports2, module2) {
715
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/commonjs-plugin.js"(exports2, module2) {
716
716
  "use strict";
717
717
  init_cjs_shims();
718
718
  var __defProp2 = Object.defineProperty;
@@ -1041,9 +1041,9 @@ var require_commonjs_plugin = __commonJS({
1041
1041
  }
1042
1042
  });
1043
1043
 
1044
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/index.js
1044
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/index.js
1045
1045
  var require_dist = __commonJS({
1046
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/index.js"(exports2) {
1046
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/index.js"(exports2) {
1047
1047
  "use strict";
1048
1048
  init_cjs_shims();
1049
1049
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -3773,7 +3773,6 @@ var DEFAULT_BUILD_OPTIONS = {
3773
3773
 
3774
3774
  // src/options.ts
3775
3775
  init_cjs_shims();
3776
- var import_devkit2 = require("@nx/devkit");
3777
3776
 
3778
3777
  // ../config-tools/dist/get-config.js
3779
3778
  init_cjs_shims();
@@ -5096,9 +5095,6 @@ async function resolveOptions(userOptions) {
5096
5095
  writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
5097
5096
  }
5098
5097
  const stopwatch = getStopwatch("Build options resolution");
5099
- const projectGraph = await (0, import_devkit2.createProjectGraphAsync)({
5100
- exitOnError: false
5101
- });
5102
5098
  const projectJsonPath = joinPaths2(
5103
5099
  workspaceRoot.dir,
5104
5100
  projectRoot,
@@ -5110,12 +5106,6 @@ async function resolveOptions(userOptions) {
5110
5106
  const projectJsonFile = await import_promises6.default.readFile(projectJsonPath, "utf8");
5111
5107
  const projectJson = JSON.parse(projectJsonFile);
5112
5108
  const projectName = projectJson.name || userOptions.name;
5113
- const projectConfigurations = (0, import_devkit2.readProjectsConfigurationFromProjectGraph)(projectGraph);
5114
- if (!projectConfigurations?.projects?.[projectName]) {
5115
- throw new Error(
5116
- "The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
5117
- );
5118
- }
5119
5109
  const options2 = (0, import_defu5.default)(userOptions, DEFAULT_BUILD_OPTIONS);
5120
5110
  options2.name ??= projectName;
5121
5111
  const packageJsonPath = joinPaths2(
@@ -5127,7 +5117,6 @@ async function resolveOptions(userOptions) {
5127
5117
  throw new Error("Cannot find package.json configuration");
5128
5118
  }
5129
5119
  const env = getEnv("esbuild", options2);
5130
- const define = (0, import_defu5.default)(options2.define ?? {}, env ?? {});
5131
5120
  const resolvedOptions = {
5132
5121
  name: projectName,
5133
5122
  entry: [joinPaths2(workspaceRoot.dir, projectRoot, "src/index.ts")],
@@ -5135,18 +5124,15 @@ async function resolveOptions(userOptions) {
5135
5124
  ...options2,
5136
5125
  outDir: options2.outputPath || joinPaths2(workspaceConfig.workspaceRoot, "dist", options2.projectRoot),
5137
5126
  tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths2(workspaceRoot.dir, projectRoot, "tsconfig.json"),
5138
- env: {
5139
- ...Object.keys(env).filter((key) => env[key] !== void 0).reduce((res, key) => {
5140
- const value = JSON.stringify(env[key]);
5141
- const safeKey = key.replaceAll("(", "").replaceAll(")", "");
5142
- return {
5143
- ...res,
5144
- [`process.env.${safeKey}`]: value,
5145
- [`import.meta.env.${safeKey}`]: value
5146
- };
5147
- }, {})
5148
- },
5149
- define
5127
+ env: Object.keys(env).filter((key) => env[key] !== void 0).reduce((ret, key) => {
5128
+ const value = JSON.stringify(env[key]);
5129
+ const safeKey = key.replaceAll("(", "").replaceAll(")", "");
5130
+ return {
5131
+ ...ret,
5132
+ [`process.env.${safeKey}`]: value,
5133
+ [`import.meta.env.${safeKey}`]: value
5134
+ };
5135
+ }, {})
5150
5136
  };
5151
5137
  if (!resolvedOptions.silent) {
5152
5138
  stopwatch();
@@ -5155,7 +5141,7 @@ async function resolveOptions(userOptions) {
5155
5141
  ` \u2699\uFE0F Build options resolved:
5156
5142
 
5157
5143
  ${formatLogMessage(resolvedOptions)}`,
5158
- workspaceConfig
5144
+ { ...workspaceConfig, logLevel: "all" }
5159
5145
  );
5160
5146
  }
5161
5147
  }
package/dist/index.js CHANGED
@@ -2,22 +2,22 @@ import {
2
2
  getStopwatch,
3
3
  resolveOptions,
4
4
  writeDebug
5
- } from "./chunk-IZFXKRE2.js";
5
+ } from "./chunk-UKASTGE2.js";
6
6
  import {
7
7
  DEFAULT_BUILD_OPTIONS
8
- } from "./chunk-ZEHMJYA6.js";
9
- import "./chunk-OAEWB4WK.js";
8
+ } from "./chunk-42KMS2SL.js";
9
+ import "./chunk-R4FPU27V.js";
10
10
  import {
11
11
  __commonJS,
12
12
  __dirname,
13
13
  __require,
14
14
  __toESM,
15
15
  init_esm_shims
16
- } from "./chunk-5522FPAL.js";
16
+ } from "./chunk-LKL3O6HN.js";
17
17
 
18
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-BYH4XDRH.js
18
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-BYH4XDRH.js
19
19
  var require_chunk_BYH4XDRH = __commonJS({
20
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports) {
20
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports) {
21
21
  "use strict";
22
22
  init_esm_shims();
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26,13 +26,13 @@ var require_chunk_BYH4XDRH = __commonJS({
26
26
  }
27
27
  });
28
28
 
29
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-TWFEYLU4.js
29
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-TWFEYLU4.js
30
30
  import * as __import_fs from "fs";
31
31
  import * as __import_path from "path";
32
32
  import * as __import_resolveFrom from "resolve-from";
33
33
  import * as __import_tinyglobby from "tinyglobby";
34
34
  var require_chunk_TWFEYLU4 = __commonJS({
35
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports) {
35
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports) {
36
36
  "use strict";
37
37
  init_esm_shims();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -409,7 +409,7 @@ var require_chunk_TWFEYLU4 = __commonJS({
409
409
  }
410
410
  });
411
411
 
412
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-VGC3FXLU.js
412
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-VGC3FXLU.js
413
413
  import * as __import_fs2 from "fs";
414
414
  import * as __import_path2 from "path";
415
415
  import * as __import_joycon from "joycon";
@@ -418,7 +418,7 @@ import * as __import_util from "util";
418
418
  import * as __import_worker_threads from "worker_threads";
419
419
  import * as __import_picocolors from "picocolors";
420
420
  var require_chunk_VGC3FXLU = __commonJS({
421
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports) {
421
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports) {
422
422
  "use strict";
423
423
  init_esm_shims();
424
424
  var __import___chunkTWFEYLU4_js = __toESM(require_chunk_TWFEYLU4());
@@ -646,11 +646,11 @@ var require_chunk_VGC3FXLU = __commonJS({
646
646
  }
647
647
  });
648
648
 
649
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-JZ25TPTY.js
649
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-JZ25TPTY.js
650
650
  import * as __import_worker_threads2 from "worker_threads";
651
651
  import * as __import_picocolors2 from "picocolors";
652
652
  var require_chunk_JZ25TPTY = __commonJS({
653
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports) {
653
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports) {
654
654
  "use strict";
655
655
  init_esm_shims();
656
656
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -699,11 +699,11 @@ var require_chunk_JZ25TPTY = __commonJS({
699
699
  }
700
700
  });
701
701
 
702
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/commonjs-plugin.js
702
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/commonjs-plugin.js
703
703
  import * as __import_fs3 from "fs";
704
704
  import * as __import_esbuild from "esbuild";
705
705
  var require_commonjs_plugin = __commonJS({
706
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/commonjs-plugin.js"(exports, module) {
706
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/commonjs-plugin.js"(exports, module) {
707
707
  "use strict";
708
708
  init_esm_shims();
709
709
  var __defProp = Object.defineProperty;
@@ -1032,7 +1032,7 @@ var require_commonjs_plugin = __commonJS({
1032
1032
  }
1033
1033
  });
1034
1034
 
1035
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/index.js
1035
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/index.js
1036
1036
  import * as __import_path3 from "path";
1037
1037
  import * as __import_fs4 from "fs";
1038
1038
  import * as __import_worker_threads3 from "worker_threads";
@@ -1048,7 +1048,7 @@ import * as __import_rollup from "rollup";
1048
1048
  import * as __import_typescript from "typescript";
1049
1049
  import * as __import_chokidar from "chokidar";
1050
1050
  var require_dist = __commonJS({
1051
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__f32c8b65381a717ba532db36fe924c50/node_modules/tsup/dist/index.js"(exports) {
1051
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__db52096fd1f76fa5f5d0fee71975bab0/node_modules/tsup/dist/index.js"(exports) {
1052
1052
  "use strict";
1053
1053
  init_esm_shims();
1054
1054
  var __import___chunkBYH4XDRH_js = __toESM(require_chunk_BYH4XDRH());
package/dist/options.cjs CHANGED
@@ -33,7 +33,6 @@ __export(options_exports, {
33
33
  resolveOptions: () => resolveOptions
34
34
  });
35
35
  module.exports = __toCommonJS(options_exports);
36
- var import_devkit2 = require("@nx/devkit");
37
36
 
38
37
  // ../build-tools/dist/chunk-RPSH5IFV.mjs
39
38
  var import_node_fs = require("fs");
@@ -2322,9 +2321,6 @@ async function resolveOptions(userOptions) {
2322
2321
  writeDebug2(" \u2699\uFE0F Resolving build options", workspaceConfig);
2323
2322
  }
2324
2323
  const stopwatch = getStopwatch("Build options resolution");
2325
- const projectGraph = await (0, import_devkit2.createProjectGraphAsync)({
2326
- exitOnError: false
2327
- });
2328
2324
  const projectJsonPath = joinPaths2(
2329
2325
  workspaceRoot.dir,
2330
2326
  projectRoot,
@@ -2336,12 +2332,6 @@ async function resolveOptions(userOptions) {
2336
2332
  const projectJsonFile = await import_promises6.default.readFile(projectJsonPath, "utf8");
2337
2333
  const projectJson = JSON.parse(projectJsonFile);
2338
2334
  const projectName = projectJson.name || userOptions.name;
2339
- const projectConfigurations = (0, import_devkit2.readProjectsConfigurationFromProjectGraph)(projectGraph);
2340
- if (!projectConfigurations?.projects?.[projectName]) {
2341
- throw new Error(
2342
- "The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project."
2343
- );
2344
- }
2345
2335
  const options = (0, import_defu5.default)(userOptions, DEFAULT_BUILD_OPTIONS);
2346
2336
  options.name ??= projectName;
2347
2337
  const packageJsonPath = joinPaths2(
@@ -2353,7 +2343,6 @@ async function resolveOptions(userOptions) {
2353
2343
  throw new Error("Cannot find package.json configuration");
2354
2344
  }
2355
2345
  const env = getEnv("esbuild", options);
2356
- const define = (0, import_defu5.default)(options.define ?? {}, env ?? {});
2357
2346
  const resolvedOptions = {
2358
2347
  name: projectName,
2359
2348
  entry: [joinPaths2(workspaceRoot.dir, projectRoot, "src/index.ts")],
@@ -2361,18 +2350,15 @@ async function resolveOptions(userOptions) {
2361
2350
  ...options,
2362
2351
  outDir: options.outputPath || joinPaths2(workspaceConfig.workspaceRoot, "dist", options.projectRoot),
2363
2352
  tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths2(workspaceRoot.dir, projectRoot, "tsconfig.json"),
2364
- env: {
2365
- ...Object.keys(env).filter((key) => env[key] !== void 0).reduce((res, key) => {
2366
- const value = JSON.stringify(env[key]);
2367
- const safeKey = key.replaceAll("(", "").replaceAll(")", "");
2368
- return {
2369
- ...res,
2370
- [`process.env.${safeKey}`]: value,
2371
- [`import.meta.env.${safeKey}`]: value
2372
- };
2373
- }, {})
2374
- },
2375
- define
2353
+ env: Object.keys(env).filter((key) => env[key] !== void 0).reduce((ret, key) => {
2354
+ const value = JSON.stringify(env[key]);
2355
+ const safeKey = key.replaceAll("(", "").replaceAll(")", "");
2356
+ return {
2357
+ ...ret,
2358
+ [`process.env.${safeKey}`]: value,
2359
+ [`import.meta.env.${safeKey}`]: value
2360
+ };
2361
+ }, {})
2376
2362
  };
2377
2363
  if (!resolvedOptions.silent) {
2378
2364
  stopwatch();
@@ -2381,7 +2367,7 @@ async function resolveOptions(userOptions) {
2381
2367
  ` \u2699\uFE0F Build options resolved:
2382
2368
 
2383
2369
  ${formatLogMessage2(resolvedOptions)}`,
2384
- workspaceConfig
2370
+ { ...workspaceConfig, logLevel: "all" }
2385
2371
  );
2386
2372
  }
2387
2373
  }
package/dist/options.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  resolveOptions
3
- } from "./chunk-IZFXKRE2.js";
4
- import "./chunk-ZEHMJYA6.js";
5
- import "./chunk-5522FPAL.js";
3
+ } from "./chunk-UKASTGE2.js";
4
+ import "./chunk-42KMS2SL.js";
5
+ import "./chunk-LKL3O6HN.js";
6
6
  export {
7
7
  resolveOptions
8
8
  };
package/dist/types.js CHANGED
@@ -1,2 +1,2 @@
1
- import "./chunk-OAEWB4WK.js";
2
- import "./chunk-5522FPAL.js";
1
+ import "./chunk-R4FPU27V.js";
2
+ import "./chunk-LKL3O6HN.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/tsup",
3
- "version": "0.2.13",
3
+ "version": "0.2.16",
4
4
  "type": "module",
5
5
  "description": "A package containing bundled patches for tsup.",
6
6
  "repository": {
@@ -104,15 +104,15 @@
104
104
  "files": ["assets/**/*", "dist/**/*"],
105
105
  "keywords": ["tsup", "storm", "storm-ops", "storm-software"],
106
106
  "dependencies": {
107
- "@storm-software/build-tools": "^0.158.15",
108
- "@storm-software/config-tools": "^1.188.15"
107
+ "@storm-software/build-tools": "^0.158.18",
108
+ "@storm-software/config-tools": "^1.188.18"
109
109
  },
110
110
  "devDependencies": {
111
- "@types/node": "^22.10.2",
111
+ "@types/node": "^22.19.0",
112
112
  "tsup": "8.4.0",
113
113
  "typescript": "^5.9.3"
114
114
  },
115
115
  "publishConfig": { "access": "public" },
116
116
  "sideEffects": false,
117
- "gitHead": "99cbe99b61fdfd4950fefc959a347ab232e788da"
117
+ "gitHead": "4ff7ccead93c470ebb8b9ad5fcd7e70f3a122cbf"
118
118
  }