@storm-software/esbuild 0.23.13 → 0.23.15
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 +8 -8
- package/dist/build.js +7 -7
- package/dist/{chunk-WRQFX4AD.js → chunk-4GNYHB56.js} +4 -4
- package/dist/{chunk-7B5IS3JU.cjs → chunk-7GH6IQLM.cjs} +3 -3
- package/dist/{chunk-7BNTMCVO.js → chunk-A3GRRLNW.js} +1 -1
- package/dist/{chunk-NZA22OTO.js → chunk-AXDSSXRQ.js} +46 -27
- package/dist/{chunk-RAOTNBZB.js → chunk-DSL7ZVCY.js} +1 -1
- package/dist/{chunk-TVEZYOW4.cjs → chunk-EZPAK54E.cjs} +2 -2
- package/dist/{chunk-ZMQZFCEU.cjs → chunk-HWY22RLN.cjs} +39 -39
- package/dist/{chunk-EKAZKXNP.cjs → chunk-IVFUCCVG.cjs} +77 -58
- package/dist/{chunk-GUU57L7S.js → chunk-O7T743WQ.js} +26 -15
- package/dist/{chunk-2TSSKHLN.js → chunk-RZ4ZXSK6.js} +1 -1
- package/dist/{chunk-YMPJ3GHZ.cjs → chunk-SUAWGD24.cjs} +26 -15
- package/dist/{chunk-HETBF2XF.js → chunk-TR3LJQBE.js} +1 -1
- package/dist/{chunk-URNZZJ4H.cjs → chunk-U5LZSTP3.cjs} +3 -3
- package/dist/{chunk-W7IOYOPN.cjs → chunk-WLOCBN4Z.cjs} +2 -2
- package/dist/clean.cjs +3 -3
- package/dist/clean.d.cts +3 -0
- package/dist/clean.d.ts +3 -0
- package/dist/clean.js +2 -2
- package/dist/config.cjs +5 -5
- package/dist/config.js +4 -4
- package/dist/index.cjs +8 -8
- package/dist/index.js +7 -7
- package/dist/plugins/deps-check.cjs +3 -3
- package/dist/plugins/deps-check.js +2 -2
- package/dist/plugins/on-error.cjs +3 -3
- package/dist/plugins/on-error.js +2 -2
- package/dist/plugins/tsc.cjs +3 -3
- package/dist/plugins/tsc.js +2 -2
- package/package.json +4 -4
|
@@ -6,13 +6,13 @@ var _chunkS6M44SSZcjs = require('./chunk-S6M44SSZ.cjs');
|
|
|
6
6
|
var _chunkWRBUO7H6cjs = require('./chunk-WRBUO7H6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkEZPAK54Ecjs = require('./chunk-EZPAK54E.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkSSEYS7LIcjs = require('./chunk-SSEYS7LI.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkWLOCBN4Zcjs = require('./chunk-WLOCBN4Z.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@ var _chunkW7IOYOPNcjs = require('./chunk-W7IOYOPN.cjs');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkSUAWGD24cjs = require('./chunk-SUAWGD24.cjs');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -97,7 +97,7 @@ var copyAssets = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (co
|
|
|
97
97
|
output: "src/"
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, `\u{1F4DD} Copying the following assets to the output directory:
|
|
101
101
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkXITTOHOGcjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
102
102
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
103
103
|
projectDir: projectRoot,
|
|
@@ -107,7 +107,7 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
107
107
|
});
|
|
108
108
|
await assetHandler.processAllAssetsOnce();
|
|
109
109
|
if (includeSrc === true) {
|
|
110
|
-
|
|
110
|
+
_chunkSUAWGD24cjs.writeDebug.call(void 0, `\u{1F4DD} Adding banner and writing source files: ${_chunkXITTOHOGcjs.joinPaths.call(void 0, outputPath, "src")}`, config);
|
|
111
111
|
const files = await _glob.glob.call(void 0, [
|
|
112
112
|
_chunkXITTOHOGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
113
113
|
_chunkXITTOHOGcjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
@@ -129,7 +129,8 @@ var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
|
129
129
|
|
|
130
130
|
var _projectgraph = require('nx/src/project-graph/project-graph');
|
|
131
131
|
var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (workspaceRoot, projectRoot, projectName, packageJson) => {
|
|
132
|
-
const
|
|
132
|
+
const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
|
|
133
|
+
const projectDependencies = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
133
134
|
const localPackages = [];
|
|
134
135
|
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
135
136
|
const projectNode = project.node;
|
|
@@ -145,34 +146,46 @@ var addPackageDependencies = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
if (localPackages.length > 0) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, `\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
150
|
+
const projectJsonFile = await _promises.readFile.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, "project.json"), "utf8");
|
|
151
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
152
|
+
const projectName2 = projectJson.name;
|
|
153
|
+
const projectConfigurations = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
154
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName2]])) {
|
|
155
|
+
throw new Error("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.");
|
|
156
|
+
}
|
|
157
|
+
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _3 => _3.projects, 'optionalAccess', _4 => _4[projectName2], 'access', _5 => _5.implicitDependencies, 'optionalAccess', _6 => _6.reduce, 'call', _7 => _7((ret, dep) => {
|
|
158
|
+
if (_optionalChain([projectConfigurations, 'access', _8 => _8.projects, 'optionalAccess', _9 => _9[dep]])) {
|
|
159
|
+
const depPackageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
|
|
160
|
+
if (_fs.existsSync.call(void 0, depPackageJsonPath)) {
|
|
161
|
+
const depPackageJsonContent = _fs.readFileSync.call(void 0, depPackageJsonPath, "utf8");
|
|
162
|
+
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
163
|
+
if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
|
|
164
|
+
ret.push(depPackageJson.name);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
152
167
|
}
|
|
153
168
|
return ret;
|
|
154
|
-
},
|
|
155
|
-
packageJson.
|
|
156
|
-
if (!ret[localPackage.name]) {
|
|
157
|
-
ret[localPackage.name] = {
|
|
158
|
-
optional: false
|
|
159
|
-
};
|
|
169
|
+
}, [])]);
|
|
170
|
+
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
171
|
+
if (!ret[localPackage.name] && !_optionalChain([implicitDependencies, 'optionalAccess', _10 => _10.includes, 'call', _11 => _11(localPackage.name)])) {
|
|
172
|
+
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
160
173
|
}
|
|
161
174
|
return ret;
|
|
162
|
-
}, _nullishCoalesce(packageJson.
|
|
175
|
+
}, _nullishCoalesce(packageJson.dependencies, () => ( {})));
|
|
163
176
|
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
164
|
-
if (!ret[localPackage.name]) {
|
|
177
|
+
if (!ret[localPackage.name] && _optionalChain([implicitDependencies, 'optionalAccess', _12 => _12.includes, 'call', _13 => _13(localPackage.name)])) {
|
|
165
178
|
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
166
179
|
}
|
|
167
180
|
return ret;
|
|
168
|
-
}, _nullishCoalesce(packageJson.
|
|
181
|
+
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
169
182
|
} else {
|
|
170
|
-
|
|
183
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
171
184
|
}
|
|
172
185
|
return packageJson;
|
|
173
186
|
}, "addPackageDependencies");
|
|
174
187
|
var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
175
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
188
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkSUAWGD24cjs.findWorkspaceRoot.call(void 0, );
|
|
176
189
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
177
190
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
178
191
|
packageJson.type ??= "module";
|
|
@@ -241,13 +254,13 @@ var addPackageJsonExport = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
241
254
|
var _c12 = require('c12');
|
|
242
255
|
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
243
256
|
var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
244
|
-
const workspacePath = filePath ||
|
|
257
|
+
const workspacePath = filePath || _chunkSUAWGD24cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
245
258
|
const configs = await Promise.all([
|
|
246
259
|
_c12.loadConfig.call(void 0, {
|
|
247
260
|
cwd: workspacePath,
|
|
248
261
|
packageJson: true,
|
|
249
262
|
name: fileName,
|
|
250
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
263
|
+
envName: _optionalChain([fileName, 'optionalAccess', _14 => _14.toUpperCase, 'call', _15 => _15()]),
|
|
251
264
|
jitiOptions: {
|
|
252
265
|
debug: false,
|
|
253
266
|
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXITTOHOGcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
@@ -258,7 +271,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
258
271
|
cwd: workspacePath,
|
|
259
272
|
packageJson: true,
|
|
260
273
|
name: fileName,
|
|
261
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
274
|
+
envName: _optionalChain([fileName, 'optionalAccess', _16 => _16.toUpperCase, 'call', _17 => _17()]),
|
|
262
275
|
jitiOptions: {
|
|
263
276
|
debug: false,
|
|
264
277
|
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkXITTOHOGcjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
@@ -270,22 +283,24 @@ var getConfigFileByName = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0,
|
|
|
270
283
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
271
284
|
}, "getConfigFileByName");
|
|
272
285
|
var getConfigFile = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
273
|
-
const workspacePath = filePath ? filePath :
|
|
274
|
-
const result = await getConfigFileByName("storm", workspacePath);
|
|
286
|
+
const workspacePath = filePath ? filePath : _chunkSUAWGD24cjs.findWorkspaceRoot.call(void 0, filePath);
|
|
287
|
+
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
275
288
|
let config = result.config;
|
|
276
289
|
const configFile = result.configFile;
|
|
277
|
-
if (config && configFile && Object.keys(config).length > 0) {
|
|
278
|
-
|
|
290
|
+
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
291
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`, {
|
|
279
292
|
logLevel: "all"
|
|
280
293
|
});
|
|
281
294
|
}
|
|
282
295
|
if (additionalFileNames && additionalFileNames.length > 0) {
|
|
283
296
|
const results = await Promise.all(additionalFileNames.map((fileName) => getConfigFileByName(fileName, workspacePath)));
|
|
284
297
|
for (const result2 of results) {
|
|
285
|
-
if (_optionalChain([result2, 'optionalAccess',
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
298
|
+
if (_optionalChain([result2, 'optionalAccess', _18 => _18.config]) && _optionalChain([result2, 'optionalAccess', _19 => _19.configFile]) && Object.keys(result2.config).length > 0) {
|
|
299
|
+
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
300
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`, {
|
|
301
|
+
logLevel: "all"
|
|
302
|
+
});
|
|
303
|
+
}
|
|
289
304
|
config = _defu2.default.call(void 0, _nullishCoalesce(result2.config, () => ( {})), _nullishCoalesce(config, () => ( {})));
|
|
290
305
|
}
|
|
291
306
|
}
|
|
@@ -361,23 +376,24 @@ var getConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, () => {
|
|
|
361
376
|
cyclone: process.env[`${prefix}REGISTRY_CYCLONE`] || void 0,
|
|
362
377
|
container: process.env[`${prefix}REGISTRY_CONTAINER`] || void 0
|
|
363
378
|
},
|
|
364
|
-
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`])) ?
|
|
379
|
+
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`])) ? _chunkSUAWGD24cjs.getLogLevelLabel.call(void 0, Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
380
|
+
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
365
381
|
};
|
|
366
|
-
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) &&
|
|
382
|
+
const themeNames = Object.keys(process.env).filter((envKey) => envKey.startsWith(`${prefix}COLOR_`) && _chunkSUAWGD24cjs.COLOR_KEYS.every((colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)));
|
|
367
383
|
config.colors = themeNames.length > 0 ? themeNames.reduce((ret, themeName) => {
|
|
368
384
|
ret[themeName] = getThemeColorConfigEnv(prefix, themeName);
|
|
369
385
|
return ret;
|
|
370
386
|
}, {}) : getThemeColorConfigEnv(prefix);
|
|
371
|
-
if (config.docs ===
|
|
372
|
-
if (config.homepage ===
|
|
373
|
-
config.docs = `${
|
|
387
|
+
if (config.docs === _chunkSUAWGD24cjs.STORM_DEFAULT_DOCS) {
|
|
388
|
+
if (config.homepage === _chunkSUAWGD24cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
389
|
+
config.docs = `${_chunkSUAWGD24cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/docs`;
|
|
374
390
|
} else {
|
|
375
391
|
config.docs = `${config.homepage}/docs`;
|
|
376
392
|
}
|
|
377
393
|
}
|
|
378
|
-
if (config.licensing ===
|
|
379
|
-
if (config.homepage ===
|
|
380
|
-
config.licensing = `${
|
|
394
|
+
if (config.licensing === _chunkSUAWGD24cjs.STORM_DEFAULT_LICENSING) {
|
|
395
|
+
if (config.homepage === _chunkSUAWGD24cjs.STORM_DEFAULT_HOMEPAGE) {
|
|
396
|
+
config.licensing = `${_chunkSUAWGD24cjs.STORM_DEFAULT_HOMEPAGE}/projects/${config.name}/licensing`;
|
|
381
397
|
} else {
|
|
382
398
|
config.licensing = `${config.homepage}/docs`;
|
|
383
399
|
}
|
|
@@ -451,13 +467,13 @@ var getBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(v
|
|
|
451
467
|
var setExtensionEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (extensionName, extension) => {
|
|
452
468
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
453
469
|
if (extension[key]) {
|
|
454
|
-
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess',
|
|
470
|
+
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _20 => _20.replace, 'call', _21 => _21(/([A-Z])+/g, (input) => input ? _optionalChain([input, 'access', _22 => _22[0], 'optionalAccess', _23 => _23.toUpperCase, 'call', _24 => _24()]) + input.slice(1) : ""), 'access', _25 => _25.split, 'call', _26 => _26(/(?=[A-Z])|[.\-\s_]/), 'access', _27 => _27.map, 'call', _28 => _28((x) => x.toLowerCase())]), () => ( []));
|
|
455
471
|
let extensionKey;
|
|
456
472
|
if (result.length === 0) {
|
|
457
473
|
return;
|
|
458
474
|
}
|
|
459
475
|
if (result.length === 1) {
|
|
460
|
-
extensionKey = _nullishCoalesce(_optionalChain([result, 'access',
|
|
476
|
+
extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _29 => _29[0], 'optionalAccess', _30 => _30.toUpperCase, 'call', _31 => _31()]), () => ( ""));
|
|
461
477
|
} else {
|
|
462
478
|
extensionKey = result.reduce((ret, part) => {
|
|
463
479
|
return `${ret}_${part.toLowerCase()}`;
|
|
@@ -554,7 +570,7 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
|
|
|
554
570
|
process.env.NODE_ENV = config.env;
|
|
555
571
|
process.env.ENVIRONMENT = config.env;
|
|
556
572
|
}
|
|
557
|
-
if (_optionalChain([config, 'access',
|
|
573
|
+
if (_optionalChain([config, 'access', _32 => _32.colors, 'optionalAccess', _33 => _33.base, 'optionalAccess', _34 => _34.light]) || _optionalChain([config, 'access', _35 => _35.colors, 'optionalAccess', _36 => _36.base, 'optionalAccess', _37 => _37.dark])) {
|
|
558
574
|
for (const key of Object.keys(config.colors)) {
|
|
559
575
|
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
560
576
|
}
|
|
@@ -593,8 +609,11 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
|
|
|
593
609
|
if (config.logLevel) {
|
|
594
610
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
595
611
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
596
|
-
process.env.NX_VERBOSE_LOGGING = String(
|
|
597
|
-
process.env.RUST_BACKTRACE =
|
|
612
|
+
process.env.NX_VERBOSE_LOGGING = String(_chunkSUAWGD24cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkSUAWGD24cjs.LogLevel.DEBUG ? true : false);
|
|
613
|
+
process.env.RUST_BACKTRACE = _chunkSUAWGD24cjs.getLogLevel.call(void 0, config.logLevel) >= _chunkSUAWGD24cjs.LogLevel.DEBUG ? "full" : "none";
|
|
614
|
+
}
|
|
615
|
+
if (config.skipConfigLogging !== void 0) {
|
|
616
|
+
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(config.skipConfigLogging);
|
|
598
617
|
}
|
|
599
618
|
process.env[`${prefix}CONFIG`] = JSON.stringify(config);
|
|
600
619
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
@@ -602,7 +621,7 @@ var setConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (config
|
|
|
602
621
|
}
|
|
603
622
|
}, "setConfigEnv");
|
|
604
623
|
var setThemeColorConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (prefix, config) => {
|
|
605
|
-
return _optionalChain([config, 'optionalAccess',
|
|
624
|
+
return _optionalChain([config, 'optionalAccess', _38 => _38.light, 'optionalAccess', _39 => _39.brand]) || _optionalChain([config, 'optionalAccess', _40 => _40.dark, 'optionalAccess', _41 => _41.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
606
625
|
}, "setThemeColorConfigEnv");
|
|
607
626
|
var setSingleThemeColorConfigEnv = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (prefix, config) => {
|
|
608
627
|
if (config.dark) {
|
|
@@ -704,20 +723,20 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
|
704
723
|
var _static_cache = void 0;
|
|
705
724
|
var createStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
|
|
706
725
|
let result;
|
|
707
|
-
if (!_optionalChain([_static_cache, 'optionalAccess',
|
|
726
|
+
if (!_optionalChain([_static_cache, 'optionalAccess', _42 => _42.data]) || !_optionalChain([_static_cache, 'optionalAccess', _43 => _43.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
708
727
|
let _workspaceRoot = workspaceRoot;
|
|
709
728
|
if (!_workspaceRoot) {
|
|
710
|
-
_workspaceRoot =
|
|
729
|
+
_workspaceRoot = _chunkSUAWGD24cjs.findWorkspaceRoot.call(void 0, );
|
|
711
730
|
}
|
|
712
731
|
const configEnv = getConfigEnv();
|
|
713
|
-
const defaultConfig = await
|
|
732
|
+
const defaultConfig = await _chunkSUAWGD24cjs.getDefaultConfig.call(void 0, _workspaceRoot);
|
|
714
733
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
715
734
|
if (!configFile && !skipLogs) {
|
|
716
|
-
|
|
735
|
+
_chunkSUAWGD24cjs.writeWarning.call(void 0, "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n", {
|
|
717
736
|
logLevel: "all"
|
|
718
737
|
});
|
|
719
738
|
}
|
|
720
|
-
result = await
|
|
739
|
+
result = await _chunkSUAWGD24cjs.StormConfigSchema.parseAsync(_defu2.default.call(void 0, configEnv, configFile, defaultConfig));
|
|
721
740
|
result.workspaceRoot ??= _workspaceRoot;
|
|
722
741
|
} else {
|
|
723
742
|
result = _static_cache.data;
|
|
@@ -751,9 +770,9 @@ var createConfigExtension = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0
|
|
|
751
770
|
var loadStormConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
|
|
752
771
|
const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
|
|
753
772
|
setConfigEnv(config);
|
|
754
|
-
if (!skipLogs) {
|
|
755
|
-
|
|
756
|
-
${
|
|
773
|
+
if (!skipLogs && !config.skipConfigLogging) {
|
|
774
|
+
_chunkSUAWGD24cjs.writeTrace.call(void 0, `\u2699\uFE0F Using Storm Workspace configuration:
|
|
775
|
+
${_chunkSUAWGD24cjs.formatLogMessage.call(void 0, config)}`, config);
|
|
757
776
|
}
|
|
758
777
|
return config;
|
|
759
778
|
}, "loadStormConfig");
|
|
@@ -766,7 +785,7 @@ var getConfig = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (workspace
|
|
|
766
785
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
767
786
|
|
|
768
787
|
var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
769
|
-
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot :
|
|
788
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : _chunkSUAWGD24cjs.findWorkspaceRoot.call(void 0, );
|
|
770
789
|
const entryPoints = [];
|
|
771
790
|
if (entry) {
|
|
772
791
|
if (Array.isArray(entry)) {
|
|
@@ -789,7 +808,7 @@ var getEntryPoints = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
789
808
|
results.push(...files.reduce((ret, filePath) => {
|
|
790
809
|
const result = _chunkXITTOHOGcjs.correctPaths.call(void 0, _chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkXITTOHOGcjs.correctPaths.call(void 0, projectRoot), ""));
|
|
791
810
|
if (result) {
|
|
792
|
-
|
|
811
|
+
_chunkSUAWGD24cjs.writeDebug.call(void 0, `Trying to add entry point ${result} at "${_chunkXITTOHOGcjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
793
812
|
if (!results.includes(result)) {
|
|
794
813
|
results.push(result);
|
|
795
814
|
}
|
|
@@ -856,8 +875,8 @@ var getDefaultBuildPlugins = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void
|
|
|
856
875
|
_chunkEZGTDCYMcjs.fixImportsPlugin.call(void 0, options, resolvedOptions),
|
|
857
876
|
_chunkS6M44SSZcjs.nativeNodeModulesPlugin.call(void 0, options, resolvedOptions),
|
|
858
877
|
_chunkCGFDQ5AJcjs.esmSplitCodeToCjsPlugin.call(void 0, options, resolvedOptions),
|
|
859
|
-
|
|
860
|
-
|
|
878
|
+
_chunkWLOCBN4Zcjs.tscPlugin.call(void 0, options, resolvedOptions),
|
|
879
|
+
_chunkEZPAK54Ecjs.onErrorPlugin.call(void 0, options, resolvedOptions)
|
|
861
880
|
], "getDefaultBuildPlugins");
|
|
862
881
|
var DEFAULT_BUILD_OPTIONS = {
|
|
863
882
|
platform: "node",
|
|
@@ -189,7 +189,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
|
|
|
189
189
|
build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
190
190
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
191
191
|
var StormConfigSchema = z.object({
|
|
192
|
-
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
192
|
+
$schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
193
193
|
extends: ExtendsSchema.optional(),
|
|
194
194
|
name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
195
195
|
namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
@@ -231,6 +231,7 @@ var StormConfigSchema = z.object({
|
|
|
231
231
|
"trace",
|
|
232
232
|
"all"
|
|
233
233
|
]).default("info").describe("The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."),
|
|
234
|
+
skipConfigLogging: z.boolean().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),
|
|
234
235
|
registry: RegistryConfigSchema,
|
|
235
236
|
configFile: z.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
|
|
236
237
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
|
|
@@ -266,14 +267,17 @@ import { existsSync } from "node:fs";
|
|
|
266
267
|
import { join } from "node:path";
|
|
267
268
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
268
269
|
var depth = 0;
|
|
269
|
-
function findFolderUp(startPath, endFileNames) {
|
|
270
|
+
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
270
271
|
const _startPath = startPath ?? process.cwd();
|
|
272
|
+
if (endDirectoryNames.some((endDirName) => existsSync(join(_startPath, endDirName)))) {
|
|
273
|
+
return _startPath;
|
|
274
|
+
}
|
|
271
275
|
if (endFileNames.some((endFileName) => existsSync(join(_startPath, endFileName)))) {
|
|
272
276
|
return _startPath;
|
|
273
277
|
}
|
|
274
278
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
275
279
|
const parent = join(_startPath, "..");
|
|
276
|
-
return findFolderUp(parent, endFileNames);
|
|
280
|
+
return findFolderUp(parent, endFileNames, endDirectoryNames);
|
|
277
281
|
}
|
|
278
282
|
return void 0;
|
|
279
283
|
}
|
|
@@ -281,17 +285,17 @@ __name(findFolderUp, "findFolderUp");
|
|
|
281
285
|
|
|
282
286
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
283
287
|
var rootFiles = [
|
|
284
|
-
"storm.json",
|
|
285
|
-
"storm.json",
|
|
286
|
-
"storm.yaml",
|
|
287
|
-
"storm.yml",
|
|
288
|
-
"storm.js",
|
|
289
|
-
"storm.ts",
|
|
290
|
-
".storm.json",
|
|
291
|
-
".storm.yaml",
|
|
292
|
-
".storm.yml",
|
|
293
|
-
".storm.js",
|
|
294
|
-
".storm.ts",
|
|
288
|
+
"storm-workspace.json",
|
|
289
|
+
"storm-workspace.json",
|
|
290
|
+
"storm-workspace.yaml",
|
|
291
|
+
"storm-workspace.yml",
|
|
292
|
+
"storm-workspace.js",
|
|
293
|
+
"storm-workspace.ts",
|
|
294
|
+
".storm-workspace.json",
|
|
295
|
+
".storm-workspace.yaml",
|
|
296
|
+
".storm-workspace.yml",
|
|
297
|
+
".storm-workspace.js",
|
|
298
|
+
".storm-workspace.ts",
|
|
295
299
|
"lerna.json",
|
|
296
300
|
"nx.json",
|
|
297
301
|
"turbo.json",
|
|
@@ -315,11 +319,18 @@ var rootFiles = [
|
|
|
315
319
|
"pnpm-lock.yml",
|
|
316
320
|
"bun.lockb"
|
|
317
321
|
];
|
|
322
|
+
var rootDirectories = [
|
|
323
|
+
".storm-workspace",
|
|
324
|
+
".nx",
|
|
325
|
+
".github",
|
|
326
|
+
".vscode",
|
|
327
|
+
".verdaccio"
|
|
328
|
+
];
|
|
318
329
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
319
330
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
320
331
|
return correctPaths(process.env.STORM_WORKSPACE_ROOT ?? process.env.NX_WORKSPACE_ROOT_PATH);
|
|
321
332
|
}
|
|
322
|
-
return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles));
|
|
333
|
+
return correctPaths(findFolderUp(pathInsideMonorepo ?? process.cwd(), rootFiles, rootDirectories));
|
|
323
334
|
}
|
|
324
335
|
__name(findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
325
336
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
@@ -189,7 +189,7 @@ var WorkspaceDirectoryConfigSchema = _zod2.default.object({
|
|
|
189
189
|
build: _zod2.default.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
|
|
190
190
|
}).describe("Various directories used by the workspace to store data, cache, and configuration files");
|
|
191
191
|
var StormConfigSchema = _zod2.default.object({
|
|
192
|
-
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
192
|
+
$schema: _zod2.default.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
|
|
193
193
|
extends: ExtendsSchema.optional(),
|
|
194
194
|
name: _zod2.default.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
|
|
195
195
|
namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
|
|
@@ -231,6 +231,7 @@ var StormConfigSchema = _zod2.default.object({
|
|
|
231
231
|
"trace",
|
|
232
232
|
"all"
|
|
233
233
|
]).default("info").describe("The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."),
|
|
234
|
+
skipConfigLogging: _zod2.default.boolean().optional().describe("Should the logging of the current Storm Workspace configuration be skipped?"),
|
|
234
235
|
registry: RegistryConfigSchema,
|
|
235
236
|
configFile: _zod2.default.string().trim().nullable().default(null).describe("The filepath of the Storm config. When this field is null, no config file was found in the current workspace."),
|
|
236
237
|
colors: ColorConfigSchema.or(ColorConfigMapSchema).describe("Storm theme config values used for styling various package elements"),
|
|
@@ -266,14 +267,17 @@ var _path = require('path');
|
|
|
266
267
|
|
|
267
268
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
268
269
|
var depth = 0;
|
|
269
|
-
function findFolderUp(startPath, endFileNames) {
|
|
270
|
+
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
270
271
|
const _startPath = _nullishCoalesce(startPath, () => ( process.cwd()));
|
|
272
|
+
if (endDirectoryNames.some((endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName)))) {
|
|
273
|
+
return _startPath;
|
|
274
|
+
}
|
|
271
275
|
if (endFileNames.some((endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName)))) {
|
|
272
276
|
return _startPath;
|
|
273
277
|
}
|
|
274
278
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
275
279
|
const parent = _path.join.call(void 0, _startPath, "..");
|
|
276
|
-
return findFolderUp(parent, endFileNames);
|
|
280
|
+
return findFolderUp(parent, endFileNames, endDirectoryNames);
|
|
277
281
|
}
|
|
278
282
|
return void 0;
|
|
279
283
|
}
|
|
@@ -281,17 +285,17 @@ _chunkBGYQAVKQcjs.__name.call(void 0, findFolderUp, "findFolderUp");
|
|
|
281
285
|
|
|
282
286
|
// ../config-tools/src/utilities/find-workspace-root.ts
|
|
283
287
|
var rootFiles = [
|
|
284
|
-
"storm.json",
|
|
285
|
-
"storm.json",
|
|
286
|
-
"storm.yaml",
|
|
287
|
-
"storm.yml",
|
|
288
|
-
"storm.js",
|
|
289
|
-
"storm.ts",
|
|
290
|
-
".storm.json",
|
|
291
|
-
".storm.yaml",
|
|
292
|
-
".storm.yml",
|
|
293
|
-
".storm.js",
|
|
294
|
-
".storm.ts",
|
|
288
|
+
"storm-workspace.json",
|
|
289
|
+
"storm-workspace.json",
|
|
290
|
+
"storm-workspace.yaml",
|
|
291
|
+
"storm-workspace.yml",
|
|
292
|
+
"storm-workspace.js",
|
|
293
|
+
"storm-workspace.ts",
|
|
294
|
+
".storm-workspace.json",
|
|
295
|
+
".storm-workspace.yaml",
|
|
296
|
+
".storm-workspace.yml",
|
|
297
|
+
".storm-workspace.js",
|
|
298
|
+
".storm-workspace.ts",
|
|
295
299
|
"lerna.json",
|
|
296
300
|
"nx.json",
|
|
297
301
|
"turbo.json",
|
|
@@ -315,11 +319,18 @@ var rootFiles = [
|
|
|
315
319
|
"pnpm-lock.yml",
|
|
316
320
|
"bun.lockb"
|
|
317
321
|
];
|
|
322
|
+
var rootDirectories = [
|
|
323
|
+
".storm-workspace",
|
|
324
|
+
".nx",
|
|
325
|
+
".github",
|
|
326
|
+
".vscode",
|
|
327
|
+
".verdaccio"
|
|
328
|
+
];
|
|
318
329
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
319
330
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
320
331
|
return _chunkXITTOHOGcjs.correctPaths.call(void 0, _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH)));
|
|
321
332
|
}
|
|
322
|
-
return _chunkXITTOHOGcjs.correctPaths.call(void 0, findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles));
|
|
333
|
+
return _chunkXITTOHOGcjs.correctPaths.call(void 0, findFolderUp(_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())), rootFiles, rootDirectories));
|
|
323
334
|
}
|
|
324
335
|
_chunkBGYQAVKQcjs.__name.call(void 0, findWorkspaceRootSafe, "findWorkspaceRootSafe");
|
|
325
336
|
function findWorkspaceRoot(pathInsideMonorepo) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSUAWGD24cjs = require('./chunk-SUAWGD24.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -86,8 +86,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (bun
|
|
|
86
86
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
87
87
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
88
88
|
});
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
_chunkSUAWGD24cjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
90
|
+
_chunkSUAWGD24cjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
91
91
|
if (filteredMissingDeps.length > 0) {
|
|
92
92
|
throw new Error(`Missing dependencies detected - please install them:
|
|
93
93
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSUAWGD24cjs = require('./chunk-SUAWGD24.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkXITTOHOGcjs = require('./chunk-XITTOHOG.cjs');
|
|
@@ -85,7 +85,7 @@ function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
|
85
85
|
localBuild: true
|
|
86
86
|
});
|
|
87
87
|
if (extractorResult.succeeded === false) {
|
|
88
|
-
|
|
88
|
+
_chunkSUAWGD24cjs.writeError.call(void 0, `API Extractor completed with ${extractorResult.errorCount} ${extractorResult.errorCount === 1 ? "error" : "errors"}`);
|
|
89
89
|
throw new Error("API Extractor completed with errors");
|
|
90
90
|
}
|
|
91
91
|
}
|
package/dist/clean.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunk7GH6IQLMcjs = require('./chunk-7GH6IQLM.cjs');
|
|
5
|
+
require('./chunk-SUAWGD24.cjs');
|
|
6
6
|
require('./chunk-XITTOHOG.cjs');
|
|
7
7
|
require('./chunk-BGYQAVKQ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.clean =
|
|
11
|
+
exports.clean = _chunk7GH6IQLMcjs.clean; exports.cleanDirectories = _chunk7GH6IQLMcjs.cleanDirectories;
|
package/dist/clean.d.cts
CHANGED
|
@@ -57,6 +57,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
57
57
|
timezone: z.ZodDefault<z.ZodString>;
|
|
58
58
|
locale: z.ZodDefault<z.ZodString>;
|
|
59
59
|
logLevel: z.ZodDefault<z.ZodEnum<["silent", "fatal", "error", "warn", "success", "info", "debug", "trace", "all"]>>;
|
|
60
|
+
skipConfigLogging: z.ZodOptional<z.ZodBoolean>;
|
|
60
61
|
registry: z.ZodDefault<z.ZodObject<{
|
|
61
62
|
github: z.ZodOptional<z.ZodString>;
|
|
62
63
|
npm: z.ZodOptional<z.ZodString>;
|
|
@@ -983,6 +984,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
983
984
|
namespace?: string | undefined;
|
|
984
985
|
repository?: string | undefined;
|
|
985
986
|
preid?: string | undefined;
|
|
987
|
+
skipConfigLogging?: boolean | undefined;
|
|
986
988
|
}, {
|
|
987
989
|
bot: {
|
|
988
990
|
name?: string | undefined;
|
|
@@ -1164,6 +1166,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1164
1166
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
1165
1167
|
timezone?: string | undefined;
|
|
1166
1168
|
locale?: string | undefined;
|
|
1169
|
+
skipConfigLogging?: boolean | undefined;
|
|
1167
1170
|
registry?: {
|
|
1168
1171
|
npm?: string | undefined;
|
|
1169
1172
|
github?: string | undefined;
|
package/dist/clean.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
57
57
|
timezone: z.ZodDefault<z.ZodString>;
|
|
58
58
|
locale: z.ZodDefault<z.ZodString>;
|
|
59
59
|
logLevel: z.ZodDefault<z.ZodEnum<["silent", "fatal", "error", "warn", "success", "info", "debug", "trace", "all"]>>;
|
|
60
|
+
skipConfigLogging: z.ZodOptional<z.ZodBoolean>;
|
|
60
61
|
registry: z.ZodDefault<z.ZodObject<{
|
|
61
62
|
github: z.ZodOptional<z.ZodString>;
|
|
62
63
|
npm: z.ZodOptional<z.ZodString>;
|
|
@@ -983,6 +984,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
983
984
|
namespace?: string | undefined;
|
|
984
985
|
repository?: string | undefined;
|
|
985
986
|
preid?: string | undefined;
|
|
987
|
+
skipConfigLogging?: boolean | undefined;
|
|
986
988
|
}, {
|
|
987
989
|
bot: {
|
|
988
990
|
name?: string | undefined;
|
|
@@ -1164,6 +1166,7 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1164
1166
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
1165
1167
|
timezone?: string | undefined;
|
|
1166
1168
|
locale?: string | undefined;
|
|
1169
|
+
skipConfigLogging?: boolean | undefined;
|
|
1167
1170
|
registry?: {
|
|
1168
1171
|
npm?: string | undefined;
|
|
1169
1172
|
github?: string | undefined;
|
package/dist/clean.js
CHANGED