@storm-software/tsdown 0.20.2 → 0.21.1
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 -1
- package/dist/build.cjs +3 -3
- package/dist/build.js +2 -2
- package/dist/{chunk-4WO7ZRQL.js → chunk-HSPF27VT.js} +1 -2
- package/dist/{chunk-3RSRST47.cjs → chunk-TVRSY6E4.cjs} +1 -2
- package/dist/{chunk-WRVVU7ZB.cjs → chunk-VEOBAPPU.cjs} +85 -85
- package/dist/{chunk-FWJ4AMBZ.js → chunk-VG7AZNCL.js} +1 -1
- package/dist/clean.cjs +2 -2
- package/dist/clean.d.cts +10 -10
- package/dist/clean.d.ts +10 -10
- package/dist/clean.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- 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 -->
|
package/dist/build.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkVEOBAPPUcjs = require('./chunk-VEOBAPPU.cjs');
|
|
4
|
+
require('./chunk-TVRSY6E4.cjs');
|
|
5
5
|
require('./chunk-5KRF6IVW.cjs');
|
|
6
6
|
require('./chunk-USNT2KNT.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.build =
|
|
9
|
+
exports.build = _chunkVEOBAPPUcjs.build;
|
package/dist/build.js
CHANGED
|
@@ -481,8 +481,7 @@ var isVerbose = /* @__PURE__ */ __name((label = LogLevelLabel.SILENT) => {
|
|
|
481
481
|
}, "isVerbose");
|
|
482
482
|
|
|
483
483
|
// ../config-tools/src/logger/console.ts
|
|
484
|
-
var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) => {
|
|
485
|
-
const _chalk = getChalk();
|
|
484
|
+
var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
486
485
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
487
486
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
488
487
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
@@ -481,8 +481,7 @@ var isVerbose = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (label = L
|
|
|
481
481
|
}, "isVerbose");
|
|
482
482
|
|
|
483
483
|
// ../config-tools/src/logger/console.ts
|
|
484
|
-
var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}) => {
|
|
485
|
-
const _chalk = getChalk();
|
|
484
|
+
var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
486
485
|
const colors = !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12.dark]) && !_optionalChain([config, 'access', _13 => _13.colors, 'optionalAccess', _14 => _14["base"]]) && !_optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16["base"], 'optionalAccess', _17 => _17.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _18 => _18.colors, 'optionalAccess', _19 => _19.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"], 'optionalAccess', _22 => _22.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _23 => _23.colors, 'optionalAccess', _24 => _24["base"]]) ? _optionalChain([config, 'access', _25 => _25.colors, 'optionalAccess', _26 => _26["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
487
486
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
488
487
|
if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkTVRSY6E4cjs = require('./chunk-TVRSY6E4.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunk5KRF6IVWcjs = require('./chunk-5KRF6IVW.cjs');
|
|
@@ -60,7 +60,7 @@ var _promises = require('fs/promises');
|
|
|
60
60
|
var _c12 = require('c12');
|
|
61
61
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
62
62
|
var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
63
|
-
const workspacePath = filePath ||
|
|
63
|
+
const workspacePath = filePath || _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
64
64
|
let config = await _c12.loadConfig.call(void 0, {
|
|
65
65
|
cwd: workspacePath,
|
|
66
66
|
packageJson: true,
|
|
@@ -68,7 +68,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
68
68
|
envName: _optionalChain([fileName, 'optionalAccess', _ => _.toUpperCase, 'call', _2 => _2()]),
|
|
69
69
|
jitiOptions: {
|
|
70
70
|
debug: false,
|
|
71
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
71
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTVRSY6E4cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
72
72
|
},
|
|
73
73
|
...options
|
|
74
74
|
});
|
|
@@ -80,7 +80,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
80
80
|
envName: _optionalChain([fileName, 'optionalAccess', _3 => _3.toUpperCase, 'call', _4 => _4()]),
|
|
81
81
|
jitiOptions: {
|
|
82
82
|
debug: false,
|
|
83
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
83
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkTVRSY6E4cjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
84
84
|
},
|
|
85
85
|
configFile: fileName,
|
|
86
86
|
...options
|
|
@@ -89,12 +89,12 @@ var getConfigFileByName = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
89
89
|
return config;
|
|
90
90
|
}, "getConfigFileByName");
|
|
91
91
|
var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
92
|
-
const workspacePath = filePath ? filePath :
|
|
92
|
+
const workspacePath = filePath ? filePath : _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
93
93
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
94
94
|
let config = result.config;
|
|
95
95
|
const configFile = result.configFile;
|
|
96
96
|
if (config && configFile && Object.keys(config).length > 0) {
|
|
97
|
-
|
|
97
|
+
_chunkTVRSY6E4cjs.writeSystem.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
98
98
|
logLevel: "all"
|
|
99
99
|
});
|
|
100
100
|
}
|
|
@@ -102,7 +102,7 @@ var getConfigFile = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
102
102
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
103
103
|
for (const result2 of results) {
|
|
104
104
|
if (_optionalChain([result2, 'optionalAccess', _5 => _5.config]) && _optionalChain([result2, 'optionalAccess', _6 => _6.configFile]) && Object.keys(result2.config).length > 0) {
|
|
105
|
-
|
|
105
|
+
_chunkTVRSY6E4cjs.writeSystem.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
106
106
|
logLevel: "all"
|
|
107
107
|
});
|
|
108
108
|
config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
@@ -139,15 +139,15 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
|
139
139
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
140
140
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
141
141
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
142
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
143
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
142
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
143
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
144
144
|
directories: {
|
|
145
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
146
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
147
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
148
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
149
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
150
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
145
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
146
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
147
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
148
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
149
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
150
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkTVRSY6E4cjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
151
151
|
},
|
|
152
152
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
153
153
|
env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -170,23 +170,23 @@ var getConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
|
|
|
170
170
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
171
171
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
172
172
|
},
|
|
173
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ?
|
|
173
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? _chunkTVRSY6E4cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
174
174
|
};
|
|
175
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
175
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkTVRSY6E4cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
176
176
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
177
177
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
178
178
|
return ret;
|
|
179
179
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
180
|
-
if (config.docs ===
|
|
181
|
-
if (config.homepage ===
|
|
182
|
-
config.docs = `${
|
|
180
|
+
if (config.docs === _chunkTVRSY6E4cjs.STORM_DEFAULT_DOCS) {
|
|
181
|
+
if (config.homepage === _chunkTVRSY6E4cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
182
|
+
config.docs = `${_chunkTVRSY6E4cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
183
183
|
} else {
|
|
184
184
|
config.docs = `${config.homepage}/docs`;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
if (config.licensing ===
|
|
188
|
-
if (config.homepage ===
|
|
189
|
-
config.licensing = `${
|
|
187
|
+
if (config.licensing === _chunkTVRSY6E4cjs.STORM_DEFAULT_LICENSING) {
|
|
188
|
+
if (config.homepage === _chunkTVRSY6E4cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
189
|
+
config.licensing = `${_chunkTVRSY6E4cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
190
190
|
} else {
|
|
191
191
|
config.licensing = `${config.homepage}/docs`;
|
|
192
192
|
}
|
|
@@ -324,31 +324,31 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
324
324
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
325
325
|
}
|
|
326
326
|
if (config.configFile) {
|
|
327
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
327
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.configFile);
|
|
328
328
|
}
|
|
329
329
|
if (config.workspaceRoot) {
|
|
330
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
331
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
332
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
330
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
331
|
+
process.env.NX_WORKSPACE_ROOT = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
332
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
333
333
|
}
|
|
334
334
|
if (config.directories) {
|
|
335
335
|
if (!config.skipCache && config.directories.cache) {
|
|
336
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
336
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.cache);
|
|
337
337
|
}
|
|
338
338
|
if (config.directories.data) {
|
|
339
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
339
|
+
process.env[`${prefix}DATA_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.data);
|
|
340
340
|
}
|
|
341
341
|
if (config.directories.config) {
|
|
342
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
342
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.config);
|
|
343
343
|
}
|
|
344
344
|
if (config.directories.temp) {
|
|
345
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
345
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.temp);
|
|
346
346
|
}
|
|
347
347
|
if (config.directories.log) {
|
|
348
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
348
|
+
process.env[`${prefix}LOG_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.log);
|
|
349
349
|
}
|
|
350
350
|
if (config.directories.build) {
|
|
351
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
351
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkTVRSY6E4cjs.correctPaths.call(void 0, config.directories.build);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
if (config.skipCache !== void 0) {
|
|
@@ -402,8 +402,8 @@ var setConfigEnv = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (config
|
|
|
402
402
|
if (config.logLevel) {
|
|
403
403
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
404
404
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
405
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
406
|
-
process.env.RUST_BACKTRACE =
|
|
405
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkTVRSY6E4cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTVRSY6E4cjs.LogLevel.DEBUG ? true : false);
|
|
406
|
+
process.env.RUST_BACKTRACE = _chunkTVRSY6E4cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkTVRSY6E4cjs.LogLevel.DEBUG ? "full" : "none";
|
|
407
407
|
}
|
|
408
408
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
409
409
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
@@ -513,23 +513,23 @@ var _static_cache = void 0;
|
|
|
513
513
|
var loadStormConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (workspaceRoot) => {
|
|
514
514
|
let config = {};
|
|
515
515
|
if (_optionalChain([_static_cache, 'optionalAccess', _29 => _29.data]) && _optionalChain([_static_cache, 'optionalAccess', _30 => _30.timestamp]) && _static_cache.timestamp >= Date.now() + 3e4) {
|
|
516
|
-
|
|
516
|
+
_chunkTVRSY6E4cjs.writeTrace.call(void 0, `Configuration cache hit - ${_static_cache.timestamp}`, _static_cache.data);
|
|
517
517
|
return _static_cache.data;
|
|
518
518
|
}
|
|
519
519
|
let _workspaceRoot = workspaceRoot;
|
|
520
520
|
if (!_workspaceRoot) {
|
|
521
|
-
_workspaceRoot =
|
|
521
|
+
_workspaceRoot = _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, );
|
|
522
522
|
}
|
|
523
523
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
524
524
|
if (!configFile) {
|
|
525
|
-
|
|
525
|
+
_chunkTVRSY6E4cjs.writeWarning.call(void 0, "No Storm config file found in the current workspace. Please ensure this is the expected behavior - you can add a `storm.json` file to the root of your workspace if it is not.\n", {
|
|
526
526
|
logLevel: "all"
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
|
-
config = _defu2.default.call(void 0, getConfigEnv(), configFile,
|
|
529
|
+
config = _defu2.default.call(void 0, getConfigEnv(), configFile, _chunkTVRSY6E4cjs.getDefaultConfig.call(void 0, _workspaceRoot));
|
|
530
530
|
setConfigEnv(config);
|
|
531
|
-
|
|
532
|
-
${
|
|
531
|
+
_chunkTVRSY6E4cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm configuration:
|
|
532
|
+
${_chunkTVRSY6E4cjs.formatLogMessage.call(void 0, config)}`, config);
|
|
533
533
|
return config;
|
|
534
534
|
}, "loadStormConfig");
|
|
535
535
|
|
|
@@ -542,7 +542,7 @@ var readNxConfig = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (
|
|
|
542
542
|
const config = await loadStormConfig();
|
|
543
543
|
rootDir = config.workspaceRoot;
|
|
544
544
|
}
|
|
545
|
-
const nxJsonPath =
|
|
545
|
+
const nxJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, rootDir, "nx.json");
|
|
546
546
|
if (!_fs.existsSync.call(void 0, nxJsonPath)) {
|
|
547
547
|
throw new Error("Cannot find project.json configuration");
|
|
548
548
|
}
|
|
@@ -589,7 +589,7 @@ var copyAssets = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (co
|
|
|
589
589
|
}
|
|
590
590
|
const buildTarget = _optionalChain([projectsConfigurations, 'access', _39 => _39.projects, 'access', _40 => _40[projectName], 'access', _41 => _41.targets, 'optionalAccess', _42 => _42.build]);
|
|
591
591
|
if (!buildTarget) {
|
|
592
|
-
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${
|
|
592
|
+
throw new Error(`The Build process failed because the project does not have a valid build target in the project.json file. Check if the file exists in the root of the project at ${_chunkTVRSY6E4cjs.joinPaths.call(void 0, projectRoot, "project.json")}`);
|
|
593
593
|
}
|
|
594
594
|
const result = await _js.copyAssets.call(void 0, {
|
|
595
595
|
assets,
|
|
@@ -604,18 +604,18 @@ var copyAssets = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (co
|
|
|
604
604
|
projectsConfigurations,
|
|
605
605
|
nxJsonConfiguration: nxJson,
|
|
606
606
|
cwd: config.workspaceRoot,
|
|
607
|
-
isVerbose:
|
|
607
|
+
isVerbose: _chunkTVRSY6E4cjs.isVerbose.call(void 0, config.logLevel)
|
|
608
608
|
});
|
|
609
609
|
if (!result.success) {
|
|
610
610
|
throw new Error("The Build process failed trying to copy assets");
|
|
611
611
|
}
|
|
612
612
|
if (includeSrc === true) {
|
|
613
|
-
|
|
613
|
+
_chunkTVRSY6E4cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkTVRSY6E4cjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
614
614
|
const files = await _glob.glob.call(void 0, [
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
615
|
+
_chunkTVRSY6E4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
616
|
+
_chunkTVRSY6E4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
617
|
+
_chunkTVRSY6E4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
618
|
+
_chunkTVRSY6E4cjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
619
619
|
]);
|
|
620
620
|
await Promise.allSettled(files.map(async (file) => _promises.writeFile.call(void 0, file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
621
621
|
|
|
@@ -637,7 +637,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
|
|
|
637
637
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
638
638
|
const projectNode = project.node;
|
|
639
639
|
if (projectNode.data.root) {
|
|
640
|
-
const projectPackageJsonPath =
|
|
640
|
+
const projectPackageJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot, projectNode.data.root, "package.json");
|
|
641
641
|
if (_fs.existsSync.call(void 0, projectPackageJsonPath)) {
|
|
642
642
|
const projectPackageJsonContent = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
643
643
|
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
@@ -648,7 +648,7 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
|
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
if (localPackages.length > 0) {
|
|
651
|
-
|
|
651
|
+
_chunkTVRSY6E4cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
652
652
|
packageJson.peerDependencies = localPackages.reduce((ret, localPackage) => {
|
|
653
653
|
if (!ret[localPackage.name]) {
|
|
654
654
|
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
@@ -670,13 +670,13 @@ var addPackageDependencies = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void
|
|
|
670
670
|
return ret;
|
|
671
671
|
}, _nullishCoalesce(packageJson.peerDependencies, () => ( {})));
|
|
672
672
|
} else {
|
|
673
|
-
|
|
673
|
+
_chunkTVRSY6E4cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
674
674
|
}
|
|
675
675
|
return packageJson;
|
|
676
676
|
}, "addPackageDependencies");
|
|
677
677
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
678
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
679
|
-
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
678
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, );
|
|
679
|
+
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
680
680
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
681
681
|
packageJson.type ??= "module";
|
|
682
682
|
packageJson.sideEffects ??= false;
|
|
@@ -685,7 +685,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
|
|
|
685
685
|
if (distSrc.startsWith("/")) {
|
|
686
686
|
distSrc = distSrc.substring(1);
|
|
687
687
|
}
|
|
688
|
-
packageJson.source ??= `${
|
|
688
|
+
packageJson.source ??= `${_chunkTVRSY6E4cjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
689
689
|
}
|
|
690
690
|
packageJson.files ??= [
|
|
691
691
|
"dist/**/*"
|
|
@@ -716,7 +716,7 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.cal
|
|
|
716
716
|
];
|
|
717
717
|
}
|
|
718
718
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
719
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
719
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkTVRSY6E4cjs.joinPaths.call(void 0, "packages", projectName);
|
|
720
720
|
return packageJson;
|
|
721
721
|
}, "addWorkspacePackageJsonFields");
|
|
722
722
|
var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|
|
@@ -743,7 +743,7 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0,
|
|
|
743
743
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
744
744
|
|
|
745
745
|
var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
746
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
746
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkTVRSY6E4cjs.findWorkspaceRoot.call(void 0, );
|
|
747
747
|
const entryPoints = [];
|
|
748
748
|
if (entry) {
|
|
749
749
|
if (Array.isArray(entry)) {
|
|
@@ -755,7 +755,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
if (emitOnAll) {
|
|
758
|
-
entryPoints.push(
|
|
758
|
+
entryPoints.push(_chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
759
759
|
}
|
|
760
760
|
const results = [];
|
|
761
761
|
for (const entryPoint in entryPoints) {
|
|
@@ -764,9 +764,9 @@ var getEntryPoints = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
764
764
|
withFileTypes: true
|
|
765
765
|
});
|
|
766
766
|
results.push(...files.reduce((ret, filePath) => {
|
|
767
|
-
const result =
|
|
767
|
+
const result = _chunkTVRSY6E4cjs.correctPaths.call(void 0, _chunkTVRSY6E4cjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkTVRSY6E4cjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkTVRSY6E4cjs.correctPaths.call(void 0, projectRoot), ""));
|
|
768
768
|
if (result) {
|
|
769
|
-
|
|
769
|
+
_chunkTVRSY6E4cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkTVRSY6E4cjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
770
770
|
if (!results.includes(result)) {
|
|
771
771
|
results.push(result);
|
|
772
772
|
}
|
|
@@ -808,12 +808,12 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
808
808
|
throw new Error("Cannot find Nx workspace root");
|
|
809
809
|
}
|
|
810
810
|
const config = await loadStormConfig(workspaceRoot.dir);
|
|
811
|
-
|
|
812
|
-
const stopwatch =
|
|
811
|
+
_chunkTVRSY6E4cjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
812
|
+
const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, "Build options resolution");
|
|
813
813
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
814
814
|
exitOnError: true
|
|
815
815
|
});
|
|
816
|
-
const projectJsonPath =
|
|
816
|
+
const projectJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
|
|
817
817
|
if (!await _node.hfs.isFile(projectJsonPath)) {
|
|
818
818
|
throw new Error("Cannot find project.json configuration");
|
|
819
819
|
}
|
|
@@ -826,7 +826,7 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
826
826
|
const options = _defu2.default.call(void 0, userOptions, _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS);
|
|
827
827
|
options.name ??= `${projectName}-${options.format}`;
|
|
828
828
|
options.target ??= DEFAULT_TARGET;
|
|
829
|
-
const packageJsonPath =
|
|
829
|
+
const packageJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
830
830
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
831
831
|
throw new Error("Cannot find package.json configuration");
|
|
832
832
|
}
|
|
@@ -835,20 +835,20 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
835
835
|
...options,
|
|
836
836
|
config,
|
|
837
837
|
...userOptions,
|
|
838
|
-
tsconfig:
|
|
838
|
+
tsconfig: _chunkTVRSY6E4cjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
839
839
|
format: options.format || "cjs",
|
|
840
840
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
841
841
|
"./src/index.ts"
|
|
842
842
|
], userOptions.emitOnAll),
|
|
843
|
-
outdir: userOptions.outputPath ||
|
|
843
|
+
outdir: userOptions.outputPath || _chunkTVRSY6E4cjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
844
844
|
plugins: [],
|
|
845
845
|
name: userOptions.name || projectName,
|
|
846
846
|
projectConfigurations,
|
|
847
847
|
projectName,
|
|
848
848
|
projectGraph,
|
|
849
|
-
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot ||
|
|
849
|
+
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkTVRSY6E4cjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
850
850
|
minify: userOptions.minify || !userOptions.debug,
|
|
851
|
-
verbose: userOptions.verbose ||
|
|
851
|
+
verbose: userOptions.verbose || _chunkTVRSY6E4cjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
852
852
|
includeSrc: userOptions.includeSrc === true,
|
|
853
853
|
metafile: userOptions.metafile !== false,
|
|
854
854
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -882,14 +882,14 @@ var resolveOptions = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, async
|
|
|
882
882
|
return result;
|
|
883
883
|
}, "resolveOptions");
|
|
884
884
|
async function generatePackageJson(options) {
|
|
885
|
-
if (options.generatePackageJson !== false && await _node.hfs.isFile(
|
|
886
|
-
|
|
887
|
-
const stopwatch =
|
|
888
|
-
const packageJsonPath =
|
|
885
|
+
if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkTVRSY6E4cjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
886
|
+
_chunkTVRSY6E4cjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
887
|
+
const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, "Write package.json file");
|
|
888
|
+
const packageJsonPath = _chunkTVRSY6E4cjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
889
889
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
890
890
|
throw new Error("Cannot find package.json configuration");
|
|
891
891
|
}
|
|
892
|
-
let packageJson = await _node.hfs.json(
|
|
892
|
+
let packageJson = await _node.hfs.json(_chunkTVRSY6E4cjs.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"));
|
|
893
893
|
if (!packageJson) {
|
|
894
894
|
throw new Error("Cannot find package.json configuration file");
|
|
895
895
|
}
|
|
@@ -927,15 +927,15 @@ async function generatePackageJson(options) {
|
|
|
927
927
|
}
|
|
928
928
|
return ret;
|
|
929
929
|
}, packageJson.exports);
|
|
930
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
930
|
+
await _devkit.writeJsonFile.call(void 0, _chunkTVRSY6E4cjs.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
|
|
931
931
|
stopwatch();
|
|
932
932
|
}
|
|
933
933
|
return options;
|
|
934
934
|
}
|
|
935
935
|
_chunkUSNT2KNTcjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
936
936
|
async function executeTSDown(options) {
|
|
937
|
-
|
|
938
|
-
const stopwatch =
|
|
937
|
+
_chunkTVRSY6E4cjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
938
|
+
const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
939
939
|
await _tsdown.build.call(void 0, {
|
|
940
940
|
...options,
|
|
941
941
|
entry: options.entryPoints,
|
|
@@ -947,27 +947,27 @@ async function executeTSDown(options) {
|
|
|
947
947
|
}
|
|
948
948
|
_chunkUSNT2KNTcjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
949
949
|
async function copyBuildAssets(options) {
|
|
950
|
-
|
|
951
|
-
const stopwatch =
|
|
950
|
+
_chunkTVRSY6E4cjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
951
|
+
const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
952
952
|
await copyAssets(options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
|
|
953
953
|
stopwatch();
|
|
954
954
|
return options;
|
|
955
955
|
}
|
|
956
956
|
_chunkUSNT2KNTcjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
957
957
|
async function reportResults(options) {
|
|
958
|
-
|
|
958
|
+
_chunkTVRSY6E4cjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
959
959
|
}
|
|
960
960
|
_chunkUSNT2KNTcjs.__name.call(void 0, reportResults, "reportResults");
|
|
961
961
|
async function cleanOutputPath(options) {
|
|
962
962
|
if (options.clean !== false && options.outdir) {
|
|
963
|
-
await
|
|
963
|
+
await _chunkTVRSY6E4cjs.clean.call(void 0, options.name, options.outdir, options.config);
|
|
964
964
|
}
|
|
965
965
|
return options;
|
|
966
966
|
}
|
|
967
967
|
_chunkUSNT2KNTcjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
968
968
|
async function build(options) {
|
|
969
|
-
|
|
970
|
-
const stopwatch =
|
|
969
|
+
_chunkTVRSY6E4cjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
970
|
+
const stopwatch = _chunkTVRSY6E4cjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
971
971
|
try {
|
|
972
972
|
const opts = Array.isArray(options) ? options : [
|
|
973
973
|
options
|
|
@@ -985,11 +985,11 @@ async function build(options) {
|
|
|
985
985
|
await reportResults(opt);
|
|
986
986
|
}));
|
|
987
987
|
} else {
|
|
988
|
-
|
|
988
|
+
_chunkTVRSY6E4cjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
989
989
|
}
|
|
990
|
-
|
|
990
|
+
_chunkTVRSY6E4cjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
991
991
|
} catch (error) {
|
|
992
|
-
|
|
992
|
+
_chunkTVRSY6E4cjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
993
993
|
throw error;
|
|
994
994
|
} finally {
|
|
995
995
|
stopwatch();
|
package/dist/clean.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTVRSY6E4cjs = require('./chunk-TVRSY6E4.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.clean =
|
|
7
|
+
exports.clean = _chunkTVRSY6E4cjs.clean;
|
package/dist/clean.d.cts
CHANGED
|
@@ -40,15 +40,15 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
40
40
|
build: z.ZodDefault<z.ZodString>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
build: string;
|
|
43
|
-
config?: string | undefined;
|
|
44
43
|
cache?: string | undefined;
|
|
45
44
|
data?: string | undefined;
|
|
45
|
+
config?: string | undefined;
|
|
46
46
|
temp?: string | undefined;
|
|
47
47
|
log?: string | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
config?: string | undefined;
|
|
50
49
|
cache?: string | undefined;
|
|
51
50
|
data?: string | undefined;
|
|
51
|
+
config?: string | undefined;
|
|
52
52
|
temp?: string | undefined;
|
|
53
53
|
log?: string | undefined;
|
|
54
54
|
build?: string | undefined;
|
|
@@ -794,7 +794,6 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
794
794
|
}>]>>]>]>;
|
|
795
795
|
extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
796
796
|
}, "strip", z.ZodTypeAny, {
|
|
797
|
-
env: "development" | "staging" | "production";
|
|
798
797
|
organization: string;
|
|
799
798
|
license: string;
|
|
800
799
|
homepage: string;
|
|
@@ -806,21 +805,22 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
806
805
|
name: string;
|
|
807
806
|
email: string;
|
|
808
807
|
};
|
|
808
|
+
env: "development" | "staging" | "production";
|
|
809
809
|
workspaceRoot: string;
|
|
810
810
|
externalPackagePatterns: string[];
|
|
811
811
|
skipCache: boolean;
|
|
812
812
|
directories: {
|
|
813
813
|
build: string;
|
|
814
|
-
config?: string | undefined;
|
|
815
814
|
cache?: string | undefined;
|
|
816
815
|
data?: string | undefined;
|
|
816
|
+
config?: string | undefined;
|
|
817
817
|
temp?: string | undefined;
|
|
818
818
|
log?: string | undefined;
|
|
819
819
|
};
|
|
820
820
|
packageManager: "npm" | "yarn" | "pnpm" | "bun";
|
|
821
821
|
timezone: string;
|
|
822
822
|
locale: string;
|
|
823
|
-
logLevel: "silent" | "
|
|
823
|
+
logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
|
|
824
824
|
registry: {
|
|
825
825
|
npm?: string | undefined;
|
|
826
826
|
github?: string | undefined;
|
|
@@ -977,9 +977,9 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
977
977
|
};
|
|
978
978
|
}>;
|
|
979
979
|
extensions: Record<string, any>;
|
|
980
|
-
name?: string | undefined;
|
|
981
980
|
$schema?: string | null | undefined;
|
|
982
981
|
extends?: string | undefined;
|
|
982
|
+
name?: string | undefined;
|
|
983
983
|
namespace?: string | undefined;
|
|
984
984
|
repository?: string | undefined;
|
|
985
985
|
preid?: string | undefined;
|
|
@@ -989,9 +989,9 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
989
989
|
email?: string | undefined;
|
|
990
990
|
};
|
|
991
991
|
directories: {
|
|
992
|
-
config?: string | undefined;
|
|
993
992
|
cache?: string | undefined;
|
|
994
993
|
data?: string | undefined;
|
|
994
|
+
config?: string | undefined;
|
|
995
995
|
temp?: string | undefined;
|
|
996
996
|
log?: string | undefined;
|
|
997
997
|
build?: string | undefined;
|
|
@@ -1143,10 +1143,9 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1143
1143
|
background?: string | undefined;
|
|
1144
1144
|
};
|
|
1145
1145
|
}>;
|
|
1146
|
-
name?: string | undefined;
|
|
1147
|
-
env?: "development" | "staging" | "production" | undefined;
|
|
1148
1146
|
$schema?: string | null | undefined;
|
|
1149
1147
|
extends?: string | undefined;
|
|
1148
|
+
name?: string | undefined;
|
|
1150
1149
|
namespace?: string | undefined;
|
|
1151
1150
|
organization?: string | undefined;
|
|
1152
1151
|
repository?: string | undefined;
|
|
@@ -1157,13 +1156,14 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1157
1156
|
branch?: string | undefined;
|
|
1158
1157
|
preid?: string | undefined;
|
|
1159
1158
|
owner?: string | undefined;
|
|
1159
|
+
env?: "development" | "staging" | "production" | undefined;
|
|
1160
1160
|
workspaceRoot?: string | undefined;
|
|
1161
1161
|
externalPackagePatterns?: string[] | undefined;
|
|
1162
1162
|
skipCache?: boolean | undefined;
|
|
1163
1163
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
1164
1164
|
timezone?: string | undefined;
|
|
1165
1165
|
locale?: string | undefined;
|
|
1166
|
-
logLevel?: "silent" | "
|
|
1166
|
+
logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
|
|
1167
1167
|
registry?: {
|
|
1168
1168
|
npm?: string | undefined;
|
|
1169
1169
|
github?: string | undefined;
|
package/dist/clean.d.ts
CHANGED
|
@@ -40,15 +40,15 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
40
40
|
build: z.ZodDefault<z.ZodString>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
build: string;
|
|
43
|
-
config?: string | undefined;
|
|
44
43
|
cache?: string | undefined;
|
|
45
44
|
data?: string | undefined;
|
|
45
|
+
config?: string | undefined;
|
|
46
46
|
temp?: string | undefined;
|
|
47
47
|
log?: string | undefined;
|
|
48
48
|
}, {
|
|
49
|
-
config?: string | undefined;
|
|
50
49
|
cache?: string | undefined;
|
|
51
50
|
data?: string | undefined;
|
|
51
|
+
config?: string | undefined;
|
|
52
52
|
temp?: string | undefined;
|
|
53
53
|
log?: string | undefined;
|
|
54
54
|
build?: string | undefined;
|
|
@@ -794,7 +794,6 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
794
794
|
}>]>>]>]>;
|
|
795
795
|
extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
796
796
|
}, "strip", z.ZodTypeAny, {
|
|
797
|
-
env: "development" | "staging" | "production";
|
|
798
797
|
organization: string;
|
|
799
798
|
license: string;
|
|
800
799
|
homepage: string;
|
|
@@ -806,21 +805,22 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
806
805
|
name: string;
|
|
807
806
|
email: string;
|
|
808
807
|
};
|
|
808
|
+
env: "development" | "staging" | "production";
|
|
809
809
|
workspaceRoot: string;
|
|
810
810
|
externalPackagePatterns: string[];
|
|
811
811
|
skipCache: boolean;
|
|
812
812
|
directories: {
|
|
813
813
|
build: string;
|
|
814
|
-
config?: string | undefined;
|
|
815
814
|
cache?: string | undefined;
|
|
816
815
|
data?: string | undefined;
|
|
816
|
+
config?: string | undefined;
|
|
817
817
|
temp?: string | undefined;
|
|
818
818
|
log?: string | undefined;
|
|
819
819
|
};
|
|
820
820
|
packageManager: "npm" | "yarn" | "pnpm" | "bun";
|
|
821
821
|
timezone: string;
|
|
822
822
|
locale: string;
|
|
823
|
-
logLevel: "silent" | "
|
|
823
|
+
logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
|
|
824
824
|
registry: {
|
|
825
825
|
npm?: string | undefined;
|
|
826
826
|
github?: string | undefined;
|
|
@@ -977,9 +977,9 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
977
977
|
};
|
|
978
978
|
}>;
|
|
979
979
|
extensions: Record<string, any>;
|
|
980
|
-
name?: string | undefined;
|
|
981
980
|
$schema?: string | null | undefined;
|
|
982
981
|
extends?: string | undefined;
|
|
982
|
+
name?: string | undefined;
|
|
983
983
|
namespace?: string | undefined;
|
|
984
984
|
repository?: string | undefined;
|
|
985
985
|
preid?: string | undefined;
|
|
@@ -989,9 +989,9 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
989
989
|
email?: string | undefined;
|
|
990
990
|
};
|
|
991
991
|
directories: {
|
|
992
|
-
config?: string | undefined;
|
|
993
992
|
cache?: string | undefined;
|
|
994
993
|
data?: string | undefined;
|
|
994
|
+
config?: string | undefined;
|
|
995
995
|
temp?: string | undefined;
|
|
996
996
|
log?: string | undefined;
|
|
997
997
|
build?: string | undefined;
|
|
@@ -1143,10 +1143,9 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1143
1143
|
background?: string | undefined;
|
|
1144
1144
|
};
|
|
1145
1145
|
}>;
|
|
1146
|
-
name?: string | undefined;
|
|
1147
|
-
env?: "development" | "staging" | "production" | undefined;
|
|
1148
1146
|
$schema?: string | null | undefined;
|
|
1149
1147
|
extends?: string | undefined;
|
|
1148
|
+
name?: string | undefined;
|
|
1150
1149
|
namespace?: string | undefined;
|
|
1151
1150
|
organization?: string | undefined;
|
|
1152
1151
|
repository?: string | undefined;
|
|
@@ -1157,13 +1156,14 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1157
1156
|
branch?: string | undefined;
|
|
1158
1157
|
preid?: string | undefined;
|
|
1159
1158
|
owner?: string | undefined;
|
|
1159
|
+
env?: "development" | "staging" | "production" | undefined;
|
|
1160
1160
|
workspaceRoot?: string | undefined;
|
|
1161
1161
|
externalPackagePatterns?: string[] | undefined;
|
|
1162
1162
|
skipCache?: boolean | undefined;
|
|
1163
1163
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
1164
1164
|
timezone?: string | undefined;
|
|
1165
1165
|
locale?: string | undefined;
|
|
1166
|
-
logLevel?: "silent" | "
|
|
1166
|
+
logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
|
|
1167
1167
|
registry?: {
|
|
1168
1168
|
npm?: string | undefined;
|
|
1169
1169
|
github?: string | undefined;
|
package/dist/clean.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVEOBAPPUcjs = require('./chunk-VEOBAPPU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTVRSY6E4cjs = require('./chunk-TVRSY6E4.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk5KRF6IVWcjs = require('./chunk-5KRF6IVW.cjs');
|
|
@@ -13,4 +13,4 @@ require('./chunk-SFZRYJZ2.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.DEFAULT_BUILD_OPTIONS = _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS; exports.build =
|
|
16
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunk5KRF6IVWcjs.DEFAULT_BUILD_OPTIONS; exports.build = _chunkVEOBAPPUcjs.build; exports.clean = _chunkTVRSY6E4cjs.clean;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/tsdown",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `tsdown` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -173,9 +173,9 @@
|
|
|
173
173
|
"@microsoft/api-extractor": "^7.48.1",
|
|
174
174
|
"@nx/devkit": "^20.3.1",
|
|
175
175
|
"@nx/js": "^20.3.1",
|
|
176
|
-
"@storm-software/build-tools": "0.
|
|
177
|
-
"@storm-software/config": "1.
|
|
178
|
-
"@storm-software/config-tools": "1.
|
|
176
|
+
"@storm-software/build-tools": "0.130.2",
|
|
177
|
+
"@storm-software/config": "1.97.1",
|
|
178
|
+
"@storm-software/config-tools": "1.137.2",
|
|
179
179
|
"@types/node": "^22.10.2",
|
|
180
180
|
"defu": "6.1.4",
|
|
181
181
|
"rollup": "4.29.1",
|