@storm-software/tsup 0.2.2 → 0.2.4

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.0-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.2-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)
@@ -1638,7 +1638,9 @@ async function resolveOptions(userOptions) {
1638
1638
  const workspaceConfig = await getWorkspaceConfig(true, {
1639
1639
  workspaceRoot: workspaceRoot.dir
1640
1640
  });
1641
- writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
1641
+ if (!userOptions.silent) {
1642
+ writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
1643
+ }
1642
1644
  const stopwatch = getStopwatch("Build options resolution");
1643
1645
  const projectGraph = await createProjectGraphAsync({
1644
1646
  exitOnError: true
@@ -1681,7 +1683,6 @@ async function resolveOptions(userOptions) {
1681
1683
  tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths(workspaceRoot.dir, projectRoot, "tsconfig.json"),
1682
1684
  env,
1683
1685
  define: {
1684
- STORM_FORMAT: JSON.stringify(options.format),
1685
1686
  ...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
1686
1687
  const value = JSON.stringify(define[key]);
1687
1688
  const safeKey = key.replaceAll("(", "").replaceAll(")", "");
@@ -1693,14 +1694,16 @@ async function resolveOptions(userOptions) {
1693
1694
  }, {})
1694
1695
  }
1695
1696
  };
1696
- stopwatch();
1697
- if (options.verbose) {
1698
- writeDebug(
1699
- ` \u2699\uFE0F Build options resolved:
1697
+ if (!options.silent) {
1698
+ stopwatch();
1699
+ if (options.verbose) {
1700
+ writeDebug(
1701
+ ` \u2699\uFE0F Build options resolved:
1700
1702
 
1701
1703
  ${formatLogMessage(resolvedOptions)}`,
1702
- workspaceConfig
1703
- );
1704
+ workspaceConfig
1705
+ );
1706
+ }
1704
1707
  }
1705
1708
  return resolvedOptions;
1706
1709
  }
package/dist/index.cjs CHANGED
@@ -5092,7 +5092,9 @@ async function resolveOptions(userOptions) {
5092
5092
  const workspaceConfig = await getWorkspaceConfig(true, {
5093
5093
  workspaceRoot: workspaceRoot.dir
5094
5094
  });
5095
- writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
5095
+ if (!userOptions.silent) {
5096
+ writeDebug(" \u2699\uFE0F Resolving build options", workspaceConfig);
5097
+ }
5096
5098
  const stopwatch = getStopwatch("Build options resolution");
5097
5099
  const projectGraph = await (0, import_devkit2.createProjectGraphAsync)({
5098
5100
  exitOnError: true
@@ -5135,7 +5137,6 @@ async function resolveOptions(userOptions) {
5135
5137
  tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths2(workspaceRoot.dir, projectRoot, "tsconfig.json"),
5136
5138
  env,
5137
5139
  define: {
5138
- STORM_FORMAT: JSON.stringify(options2.format),
5139
5140
  ...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
5140
5141
  const value = JSON.stringify(define[key]);
5141
5142
  const safeKey = key.replaceAll("(", "").replaceAll(")", "");
@@ -5147,27 +5148,33 @@ async function resolveOptions(userOptions) {
5147
5148
  }, {})
5148
5149
  }
5149
5150
  };
5150
- stopwatch();
5151
- if (options2.verbose) {
5152
- writeDebug(
5153
- ` \u2699\uFE0F Build options resolved:
5151
+ if (!options2.silent) {
5152
+ stopwatch();
5153
+ if (options2.verbose) {
5154
+ writeDebug(
5155
+ ` \u2699\uFE0F Build options resolved:
5154
5156
 
5155
5157
  ${formatLogMessage(resolvedOptions)}`,
5156
- workspaceConfig
5157
- );
5158
+ workspaceConfig
5159
+ );
5160
+ }
5158
5161
  }
5159
5162
  return resolvedOptions;
5160
5163
  }
5161
5164
 
5162
5165
  // src/index.ts
5163
5166
  async function build(options2) {
5164
- writeDebug(
5165
- ` \u{1F680} Running ${options2.name || "tsup"} build`,
5166
- options2.workspaceConfig
5167
- );
5167
+ if (!options2.silent) {
5168
+ writeDebug(
5169
+ ` \u{1F680} Running ${options2.name || "tsup"} build`,
5170
+ options2.workspaceConfig
5171
+ );
5172
+ }
5168
5173
  const stopwatch = getStopwatch(`${options2.name || "tsup"} build`);
5169
5174
  await (0, import_tsup.build)(options2);
5170
- stopwatch();
5175
+ if (!options2.silent) {
5176
+ stopwatch();
5177
+ }
5171
5178
  }
5172
5179
  // Annotate the CommonJS export names for ESM import in node:
5173
5180
  0 && (module.exports = {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  getStopwatch,
3
3
  resolveOptions,
4
4
  writeDebug
5
- } from "./chunk-A5FEXCEV.js";
5
+ } from "./chunk-EXGJNNGI.js";
6
6
  import {
7
7
  DEFAULT_BUILD_OPTIONS
8
8
  } from "./chunk-MUIYLO6F.js";
@@ -2706,13 +2706,17 @@ module.exports = exports.default;
2706
2706
  init_esm_shims();
2707
2707
  var import_tsup = __toESM(require_dist(), 1);
2708
2708
  async function build(options2) {
2709
- writeDebug(
2710
- ` \u{1F680} Running ${options2.name || "tsup"} build`,
2711
- options2.workspaceConfig
2712
- );
2709
+ if (!options2.silent) {
2710
+ writeDebug(
2711
+ ` \u{1F680} Running ${options2.name || "tsup"} build`,
2712
+ options2.workspaceConfig
2713
+ );
2714
+ }
2713
2715
  const stopwatch = getStopwatch(`${options2.name || "tsup"} build`);
2714
2716
  await (0, import_tsup.build)(options2);
2715
- stopwatch();
2717
+ if (!options2.silent) {
2718
+ stopwatch();
2719
+ }
2716
2720
  }
2717
2721
  export {
2718
2722
  DEFAULT_BUILD_OPTIONS,
package/dist/options.cjs CHANGED
@@ -2318,7 +2318,9 @@ async function resolveOptions(userOptions) {
2318
2318
  const workspaceConfig = await getWorkspaceConfig(true, {
2319
2319
  workspaceRoot: workspaceRoot.dir
2320
2320
  });
2321
- writeDebug2(" \u2699\uFE0F Resolving build options", workspaceConfig);
2321
+ if (!userOptions.silent) {
2322
+ writeDebug2(" \u2699\uFE0F Resolving build options", workspaceConfig);
2323
+ }
2322
2324
  const stopwatch = getStopwatch("Build options resolution");
2323
2325
  const projectGraph = await (0, import_devkit2.createProjectGraphAsync)({
2324
2326
  exitOnError: true
@@ -2361,7 +2363,6 @@ async function resolveOptions(userOptions) {
2361
2363
  tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : joinPaths2(workspaceRoot.dir, projectRoot, "tsconfig.json"),
2362
2364
  env,
2363
2365
  define: {
2364
- STORM_FORMAT: JSON.stringify(options.format),
2365
2366
  ...Object.keys(define).filter((key) => define[key] !== void 0).reduce((res, key) => {
2366
2367
  const value = JSON.stringify(define[key]);
2367
2368
  const safeKey = key.replaceAll("(", "").replaceAll(")", "");
@@ -2373,14 +2374,16 @@ async function resolveOptions(userOptions) {
2373
2374
  }, {})
2374
2375
  }
2375
2376
  };
2376
- stopwatch();
2377
- if (options.verbose) {
2378
- writeDebug2(
2379
- ` \u2699\uFE0F Build options resolved:
2377
+ if (!options.silent) {
2378
+ stopwatch();
2379
+ if (options.verbose) {
2380
+ writeDebug2(
2381
+ ` \u2699\uFE0F Build options resolved:
2380
2382
 
2381
2383
  ${formatLogMessage2(resolvedOptions)}`,
2382
- workspaceConfig
2383
- );
2384
+ workspaceConfig
2385
+ );
2386
+ }
2384
2387
  }
2385
2388
  return resolvedOptions;
2386
2389
  }
package/dist/options.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveOptions
3
- } from "./chunk-A5FEXCEV.js";
3
+ } from "./chunk-EXGJNNGI.js";
4
4
  import "./chunk-MUIYLO6F.js";
5
5
  import "./chunk-7BI4SQSF.js";
6
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/tsup",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "description": "A package containing bundled patches for tsup.",
6
6
  "repository": {
@@ -104,8 +104,8 @@
104
104
  "files": ["assets/**/*", "dist/**/*"],
105
105
  "keywords": ["tsup", "storm", "storm-ops", "storm-software"],
106
106
  "dependencies": {
107
- "@storm-software/build-tools": "^0.158.4",
108
- "@storm-software/config-tools": "^1.188.4"
107
+ "@storm-software/build-tools": "^0.158.6",
108
+ "@storm-software/config-tools": "^1.188.6"
109
109
  },
110
110
  "devDependencies": {
111
111
  "@types/node": "^22.10.2",
@@ -114,5 +114,5 @@
114
114
  },
115
115
  "publishConfig": { "access": "public" },
116
116
  "sideEffects": false,
117
- "gitHead": "a2b228be07baf2c5466cc28c506b87b56aca667f"
117
+ "gitHead": "feabcb14d4383826b5e1761f8593966eaad96d1c"
118
118
  }