@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 +1 -2
- package/dist/{chunk-A5FEXCEV.js → chunk-EXGJNNGI.js} +11 -8
- package/dist/index.cjs +20 -13
- package/dist/index.js +10 -6
- package/dist/options.cjs +11 -8
- package/dist/options.js +1 -1
- package/package.json +4 -4
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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
|
-
|
|
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
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
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
|
-
|
|
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
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
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
|
-
|
|
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-
|
|
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
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
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
|
-
|
|
2383
|
-
|
|
2384
|
+
workspaceConfig
|
|
2385
|
+
);
|
|
2386
|
+
}
|
|
2384
2387
|
}
|
|
2385
2388
|
return resolvedOptions;
|
|
2386
2389
|
}
|
package/dist/options.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/tsup",
|
|
3
|
-
"version": "0.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.
|
|
108
|
-
"@storm-software/config-tools": "^1.188.
|
|
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": "
|
|
117
|
+
"gitHead": "feabcb14d4383826b5e1761f8593966eaad96d1c"
|
|
118
118
|
}
|