@storm-software/build-tools 0.158.158 → 0.158.160
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/{chunk-TXTYCRUY.js → chunk-27B64JLQ.js} +8 -8
- package/dist/{chunk-RKVSF2KP.js → chunk-2S4OIT5B.js} +3 -3
- package/dist/{chunk-VWCB56HQ.mjs → chunk-3QKWF2PP.mjs} +1 -1
- package/dist/{chunk-JAOQUOKQ.mjs → chunk-47RCC4BE.mjs} +17 -28
- package/dist/{chunk-TTKYBNC2.js → chunk-5V2H52C6.js} +17 -28
- package/dist/{chunk-TMTS553B.js → chunk-D3XTO762.js} +10 -10
- package/dist/{chunk-SU3XIIJL.js → chunk-ENGUZ5TH.js} +4 -4
- package/dist/{chunk-KI36GZ5N.js → chunk-FEAJPPER.js} +2 -2
- package/dist/{chunk-24R2RXIL.mjs → chunk-HHXTFBAS.mjs} +1 -1
- package/dist/{chunk-EB7Y7VFZ.mjs → chunk-KDULOKHB.mjs} +1 -1
- package/dist/{chunk-WH5UGVX7.js → chunk-Q7FLUSWK.js} +3 -3
- package/dist/{chunk-M5F5UCGO.mjs → chunk-SPZAYXEL.mjs} +1 -1
- package/dist/{chunk-A6SGJYI3.mjs → chunk-VDPPY6KF.mjs} +1 -1
- package/dist/{chunk-MY2WU4YR.mjs → chunk-WWMBAWAV.mjs} +1 -1
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/plugins/analyze.js +3 -3
- package/dist/plugins/analyze.mjs +2 -2
- package/dist/plugins/index.js +4 -4
- package/dist/plugins/index.mjs +3 -3
- package/dist/plugins/ts-resolve.js +3 -3
- package/dist/plugins/ts-resolve.mjs +2 -2
- package/dist/types-DqYcLix1.d.mts +243 -0
- package/dist/types-DqYcLix1.d.ts +243 -0
- package/dist/utilities/copy-assets.js +3 -3
- package/dist/utilities/copy-assets.mjs +2 -2
- package/dist/utilities/generate-package-json.js +3 -3
- package/dist/utilities/generate-package-json.mjs +2 -2
- package/dist/utilities/get-entry-points.js +3 -3
- package/dist/utilities/get-entry-points.mjs +2 -2
- package/dist/utilities/index.js +6 -6
- package/dist/utilities/index.mjs +5 -5
- package/dist/utilities/read-nx-config.js +3 -3
- package/dist/utilities/read-nx-config.mjs +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -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 _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 _chunk5V2H52C6js = require('./chunk-5V2H52C6.js');
|
|
4
4
|
|
|
5
5
|
// src/plugins/ts-resolve.ts
|
|
6
6
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
@@ -26,8 +26,8 @@ var tsResolvePlugin = ({
|
|
|
26
26
|
return {
|
|
27
27
|
name: `storm:ts-resolve`,
|
|
28
28
|
async resolveId(source, importer) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_chunk5V2H52C6js.writeDebug.call(void 0, `ts-resolve - resolveId source: ${source}`);
|
|
30
|
+
_chunk5V2H52C6js.writeDebug.call(void 0, `ts-resolve - resolveId importer: ${importer}`);
|
|
31
31
|
if (!importer) {
|
|
32
32
|
return null;
|
|
33
33
|
}
|
|
@@ -38,7 +38,7 @@ var tsResolvePlugin = ({
|
|
|
38
38
|
return false;
|
|
39
39
|
}
|
|
40
40
|
if (ignore && ignore(source, importer)) {
|
|
41
|
-
|
|
41
|
+
_chunk5V2H52C6js.writeDebug.call(void 0, `ts-resolve - ignored ${source}`);
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
if (resolveOnly) {
|
|
@@ -47,12 +47,12 @@ var tsResolvePlugin = ({
|
|
|
47
47
|
return v.test(source);
|
|
48
48
|
});
|
|
49
49
|
if (!shouldResolve) {
|
|
50
|
-
|
|
50
|
+
_chunk5V2H52C6js.writeDebug.call(void 0, `ts-resolve - skipped by matching resolveOnly ${source}`);
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
if (_path2.default.isAbsolute(source)) {
|
|
55
|
-
|
|
55
|
+
_chunk5V2H52C6js.writeDebug.call(void 0, `ts-resolve - skipped absolute path: ${source}`);
|
|
56
56
|
return null;
|
|
57
57
|
}
|
|
58
58
|
const basedir = importer ? await _fs2.default.promises.realpath(_path2.default.dirname(importer)) : process.cwd();
|
|
@@ -81,10 +81,10 @@ var tsResolvePlugin = ({
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
if (id) {
|
|
84
|
-
|
|
84
|
+
_chunk5V2H52C6js.writeDebug.call(void 0, `ts-resolve - resolved ${source} to ${id}`);
|
|
85
85
|
return id;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
_chunk5V2H52C6js.writeDebug.call(void 0, `ts-resolve - mark ${source} as external`);
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
90
|
};
|
|
@@ -7,7 +7,7 @@ var _chunkBPRPYAQSjs = require('./chunk-BPRPYAQS.js');
|
|
|
7
7
|
var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk5V2H52C6js = require('./chunk-5V2H52C6.js');
|
|
11
11
|
|
|
12
12
|
// src/utilities/get-entry-points.ts
|
|
13
13
|
var _glob = require('glob');
|
|
@@ -42,7 +42,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
42
42
|
_chunkI2YBUOU3js.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunkI2YBUOU3js.correctPaths.call(void 0, workspaceRoot), "").replaceAll(_chunkI2YBUOU3js.correctPaths.call(void 0, projectRoot), "")
|
|
43
43
|
);
|
|
44
44
|
if (result) {
|
|
45
|
-
|
|
45
|
+
_chunk5V2H52C6js.writeDebug.call(void 0,
|
|
46
46
|
`Trying to add entry point ${result} at "${_chunkI2YBUOU3js.joinPaths.call(void 0,
|
|
47
47
|
filePath.path,
|
|
48
48
|
filePath.name
|
|
@@ -57,7 +57,7 @@ var getEntryPoints = async (config, projectRoot, sourceRoot, entry, emitOnAll =
|
|
|
57
57
|
}, [])
|
|
58
58
|
);
|
|
59
59
|
} else {
|
|
60
|
-
|
|
60
|
+
_chunk5V2H52C6js.writeDebug.call(void 0, `Trying to add entry point ${entryPoint}"`, config);
|
|
61
61
|
if (!paths.includes(entryPoint)) {
|
|
62
62
|
paths.push(entryPoint);
|
|
63
63
|
}
|
|
@@ -126,8 +126,8 @@ var CONSOLE_ICONS = {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
129
|
-
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
130
|
-
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
129
|
+
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
130
|
+
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
// ../config-tools/src/logger/get-log-level.ts
|
|
@@ -187,7 +187,12 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
187
187
|
};
|
|
188
188
|
|
|
189
189
|
// ../config-tools/src/logger/console.ts
|
|
190
|
-
var getLogFn = (logLevel = LogLevel.INFO, config = {},
|
|
190
|
+
var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
|
|
191
|
+
const {
|
|
192
|
+
chalk: _chalk = getChalk(),
|
|
193
|
+
fullDateTime = false,
|
|
194
|
+
hideDateTime = false
|
|
195
|
+
} = options;
|
|
191
196
|
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;
|
|
192
197
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
193
198
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -198,9 +203,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
198
203
|
return (message) => {
|
|
199
204
|
console.error(
|
|
200
205
|
`
|
|
201
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
202
|
-
colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
|
|
203
|
-
)(
|
|
206
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(
|
|
204
207
|
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
205
208
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
206
209
|
`
|
|
@@ -211,9 +214,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
211
214
|
return (message) => {
|
|
212
215
|
console.error(
|
|
213
216
|
`
|
|
214
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
215
|
-
colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
|
|
216
|
-
)(
|
|
217
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(
|
|
217
218
|
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
218
219
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
219
220
|
`
|
|
@@ -224,9 +225,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
224
225
|
return (message) => {
|
|
225
226
|
console.warn(
|
|
226
227
|
`
|
|
227
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
228
|
-
colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
|
|
229
|
-
)(
|
|
228
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(
|
|
230
229
|
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
231
230
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
232
231
|
`
|
|
@@ -237,9 +236,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
237
236
|
return (message) => {
|
|
238
237
|
console.info(
|
|
239
238
|
`
|
|
240
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
241
|
-
colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
|
|
242
|
-
)(
|
|
239
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(
|
|
243
240
|
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
244
241
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
245
242
|
`
|
|
@@ -250,9 +247,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
250
247
|
return (message) => {
|
|
251
248
|
console.info(
|
|
252
249
|
`
|
|
253
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
254
|
-
colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
|
|
255
|
-
)(
|
|
250
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(
|
|
256
251
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
257
252
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
258
253
|
`
|
|
@@ -263,9 +258,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
263
258
|
return (message) => {
|
|
264
259
|
console.debug(
|
|
265
260
|
`
|
|
266
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
267
|
-
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
268
|
-
)(
|
|
261
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(
|
|
269
262
|
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
270
263
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
271
264
|
`
|
|
@@ -276,9 +269,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
276
269
|
return (message) => {
|
|
277
270
|
console.debug(
|
|
278
271
|
`
|
|
279
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
280
|
-
colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
|
|
281
|
-
)(
|
|
272
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(
|
|
282
273
|
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
283
274
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
284
275
|
`
|
|
@@ -289,7 +280,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
289
280
|
return (message) => {
|
|
290
281
|
console.debug(
|
|
291
282
|
`
|
|
292
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
283
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
|
|
293
284
|
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
294
285
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
295
286
|
`
|
|
@@ -299,9 +290,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
|
299
290
|
return (message) => {
|
|
300
291
|
console.log(
|
|
301
292
|
`
|
|
302
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
303
|
-
colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
|
|
304
|
-
)(
|
|
293
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(
|
|
305
294
|
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
306
295
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
307
296
|
`
|
|
@@ -126,8 +126,8 @@ var CONSOLE_ICONS = {
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
129
|
-
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
130
|
-
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
129
|
+
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
130
|
+
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
// ../config-tools/src/logger/get-log-level.ts
|
|
@@ -187,7 +187,12 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
187
187
|
};
|
|
188
188
|
|
|
189
189
|
// ../config-tools/src/logger/console.ts
|
|
190
|
-
var getLogFn = (logLevel = LogLevel.INFO, config = {},
|
|
190
|
+
var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
|
|
191
|
+
const {
|
|
192
|
+
chalk: _chalk = getChalk(),
|
|
193
|
+
fullDateTime = false,
|
|
194
|
+
hideDateTime = false
|
|
195
|
+
} = options;
|
|
191
196
|
const colors = !_optionalChain([config, 'access', _8 => _8.colors, 'optionalAccess', _9 => _9.dark]) && !_optionalChain([config, 'access', _10 => _10.colors, 'optionalAccess', _11 => _11["base"]]) && !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13["base"], 'optionalAccess', _14 => _14.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _17 => _17.colors, 'optionalAccess', _18 => _18["base"], 'optionalAccess', _19 => _19.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"]]) ? _optionalChain([config, 'access', _22 => _22.colors, 'optionalAccess', _23 => _23["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
192
197
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
193
198
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -198,9 +203,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
198
203
|
return (message) => {
|
|
199
204
|
console.error(
|
|
200
205
|
`
|
|
201
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
202
|
-
_nullishCoalesce(colors.fatal, () => ( DEFAULT_COLOR_CONFIG.dark.fatal))
|
|
203
|
-
)(
|
|
206
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( DEFAULT_COLOR_CONFIG.dark.fatal)))(
|
|
204
207
|
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
205
208
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
206
209
|
`
|
|
@@ -211,9 +214,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
211
214
|
return (message) => {
|
|
212
215
|
console.error(
|
|
213
216
|
`
|
|
214
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
215
|
-
_nullishCoalesce(colors.danger, () => ( DEFAULT_COLOR_CONFIG.dark.danger))
|
|
216
|
-
)(
|
|
217
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.danger, () => ( DEFAULT_COLOR_CONFIG.dark.danger)))(
|
|
217
218
|
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
218
219
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
219
220
|
`
|
|
@@ -224,9 +225,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
224
225
|
return (message) => {
|
|
225
226
|
console.warn(
|
|
226
227
|
`
|
|
227
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
228
|
-
_nullishCoalesce(colors.warning, () => ( DEFAULT_COLOR_CONFIG.dark.warning))
|
|
229
|
-
)(
|
|
228
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.warning, () => ( DEFAULT_COLOR_CONFIG.dark.warning)))(
|
|
230
229
|
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
231
230
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
232
231
|
`
|
|
@@ -237,9 +236,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
237
236
|
return (message) => {
|
|
238
237
|
console.info(
|
|
239
238
|
`
|
|
240
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
241
|
-
_nullishCoalesce(colors.success, () => ( DEFAULT_COLOR_CONFIG.dark.success))
|
|
242
|
-
)(
|
|
239
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.success, () => ( DEFAULT_COLOR_CONFIG.dark.success)))(
|
|
243
240
|
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
244
241
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
245
242
|
`
|
|
@@ -250,9 +247,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
250
247
|
return (message) => {
|
|
251
248
|
console.info(
|
|
252
249
|
`
|
|
253
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
254
|
-
_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info))
|
|
255
|
-
)(
|
|
250
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info)))(
|
|
256
251
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
257
252
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
258
253
|
`
|
|
@@ -263,9 +258,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
263
258
|
return (message) => {
|
|
264
259
|
console.debug(
|
|
265
260
|
`
|
|
266
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
267
|
-
_nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance))
|
|
268
|
-
)(
|
|
261
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance)))(
|
|
269
262
|
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
270
263
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
271
264
|
`
|
|
@@ -276,9 +269,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
276
269
|
return (message) => {
|
|
277
270
|
console.debug(
|
|
278
271
|
`
|
|
279
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
280
|
-
_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug))
|
|
281
|
-
)(
|
|
272
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.debug, () => ( DEFAULT_COLOR_CONFIG.dark.debug)))(
|
|
282
273
|
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
283
274
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
284
275
|
`
|
|
@@ -289,7 +280,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
289
280
|
return (message) => {
|
|
290
281
|
console.debug(
|
|
291
282
|
`
|
|
292
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
283
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
|
|
293
284
|
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
294
285
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
295
286
|
`
|
|
@@ -299,9 +290,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
|
299
290
|
return (message) => {
|
|
300
291
|
console.log(
|
|
301
292
|
`
|
|
302
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
303
|
-
_nullishCoalesce(colors.brand, () => ( DEFAULT_COLOR_CONFIG.dark.brand))
|
|
304
|
-
)(
|
|
293
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(_nullishCoalesce(colors.brand, () => ( DEFAULT_COLOR_CONFIG.dark.brand)))(
|
|
305
294
|
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
306
295
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
307
296
|
`
|
|
@@ -12,7 +12,7 @@ var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk5V2H52C6js = require('./chunk-5V2H52C6.js');
|
|
16
16
|
|
|
17
17
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
18
18
|
var _c12 = require('c12');
|
|
@@ -754,7 +754,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
754
754
|
let config = result.config;
|
|
755
755
|
const configFile = result.configFile;
|
|
756
756
|
if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
|
|
757
|
-
|
|
757
|
+
_chunk5V2H52C6js.writeTrace.call(void 0,
|
|
758
758
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
759
759
|
{
|
|
760
760
|
logLevel: "all"
|
|
@@ -770,7 +770,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
770
770
|
for (const result2 of results) {
|
|
771
771
|
if (_optionalChain([result2, 'optionalAccess', _9 => _9.config]) && _optionalChain([result2, 'optionalAccess', _10 => _10.configFile]) && Object.keys(result2.config).length > 0) {
|
|
772
772
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
773
|
-
|
|
773
|
+
_chunk5V2H52C6js.writeTrace.call(void 0,
|
|
774
774
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
775
775
|
{
|
|
776
776
|
logLevel: "all"
|
|
@@ -886,7 +886,7 @@ var getConfigEnv = () => {
|
|
|
886
886
|
},
|
|
887
887
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
888
888
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
889
|
-
) ?
|
|
889
|
+
) ? _chunk5V2H52C6js.getLogLevelLabel.call(void 0,
|
|
890
890
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
891
891
|
) : process.env[`${prefix}LOG_LEVEL`] : void 0,
|
|
892
892
|
skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
|
|
@@ -1253,9 +1253,9 @@ var setConfigEnv = (config) => {
|
|
|
1253
1253
|
process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
|
|
1254
1254
|
process.env.LOG_LEVEL = String(config.logLevel);
|
|
1255
1255
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
1256
|
-
|
|
1256
|
+
_chunk5V2H52C6js.getLogLevel.call(void 0, config.logLevel) >= _chunk5V2H52C6js.LogLevel.DEBUG ? true : false
|
|
1257
1257
|
);
|
|
1258
|
-
process.env.RUST_BACKTRACE =
|
|
1258
|
+
process.env.RUST_BACKTRACE = _chunk5V2H52C6js.getLogLevel.call(void 0, config.logLevel) >= _chunk5V2H52C6js.LogLevel.DEBUG ? "full" : "none";
|
|
1259
1259
|
}
|
|
1260
1260
|
if (config.skipConfigLogging !== void 0) {
|
|
1261
1261
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
@@ -1403,7 +1403,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1403
1403
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
1404
1404
|
if (!configFile) {
|
|
1405
1405
|
if (!skipLogs) {
|
|
1406
|
-
|
|
1406
|
+
_chunk5V2H52C6js.writeWarning.call(void 0,
|
|
1407
1407
|
"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",
|
|
1408
1408
|
{ logLevel: "all" }
|
|
1409
1409
|
);
|
|
@@ -1434,7 +1434,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1434
1434
|
throw new Error(
|
|
1435
1435
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _35 => _35.message]) ? `: ${error.message}` : ""}
|
|
1436
1436
|
|
|
1437
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1437
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunk5V2H52C6js.formatLogMessage.call(void 0,
|
|
1438
1438
|
configInput
|
|
1439
1439
|
)}`,
|
|
1440
1440
|
{
|
|
@@ -1479,9 +1479,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1479
1479
|
);
|
|
1480
1480
|
setConfigEnv(config);
|
|
1481
1481
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1482
|
-
|
|
1482
|
+
_chunk5V2H52C6js.writeTrace.call(void 0,
|
|
1483
1483
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1484
|
-
${
|
|
1484
|
+
${_chunk5V2H52C6js.formatLogMessage.call(void 0, config)}`,
|
|
1485
1485
|
config
|
|
1486
1486
|
);
|
|
1487
1487
|
}
|
|
@@ -4,7 +4,7 @@ var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5V2H52C6js = require('./chunk-5V2H52C6.js');
|
|
8
8
|
|
|
9
9
|
// src/utilities/copy-assets.ts
|
|
10
10
|
var _copyassetshandler = require('@nx/js/src/utils/assets/copy-assets-handler');
|
|
@@ -36,7 +36,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
36
36
|
output: "src/"
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
_chunk5V2H52C6js.writeTrace.call(void 0,
|
|
40
40
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
41
41
|
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkI2YBUOU3js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
42
42
|
config
|
|
@@ -48,9 +48,9 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
48
48
|
assets: pendingAssets
|
|
49
49
|
});
|
|
50
50
|
await assetHandler.processAllAssetsOnce();
|
|
51
|
-
|
|
51
|
+
_chunk5V2H52C6js.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
52
52
|
if (includeSrc === true) {
|
|
53
|
-
|
|
53
|
+
_chunk5V2H52C6js.writeDebug.call(void 0,
|
|
54
54
|
`\u{1F4DD} Adding banner and writing source files: ${_chunkI2YBUOU3js.joinPaths.call(void 0,
|
|
55
55
|
outputPath,
|
|
56
56
|
"src"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5V2H52C6js = require('./chunk-5V2H52C6.js');
|
|
4
4
|
|
|
5
5
|
// src/plugins/analyze.ts
|
|
6
6
|
var formatBytes = (bytes) => {
|
|
@@ -22,7 +22,7 @@ function analyze() {
|
|
|
22
22
|
renderChunk(source, chunk) {
|
|
23
23
|
const sourceBytes = formatBytes(source.length);
|
|
24
24
|
const fileName = chunk.fileName;
|
|
25
|
-
|
|
25
|
+
_chunk5V2H52C6js.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-VXUVNB76.mjs";
|
|
7
7
|
import {
|
|
8
8
|
writeTrace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-47RCC4BE.mjs";
|
|
10
10
|
|
|
11
11
|
// src/utilities/generate-package-json.ts
|
|
12
12
|
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
@@ -6,7 +6,7 @@ var _chunkBPRPYAQSjs = require('./chunk-BPRPYAQS.js');
|
|
|
6
6
|
var _chunkI2YBUOU3js = require('./chunk-I2YBUOU3.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk5V2H52C6js = require('./chunk-5V2H52C6.js');
|
|
10
10
|
|
|
11
11
|
// src/utilities/generate-package-json.ts
|
|
12
12
|
var _buildablelibsutils = require('@nx/js/src/utils/buildable-libs-utils');
|
|
@@ -64,7 +64,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
if (localPackages.length > 0) {
|
|
67
|
-
|
|
67
|
+
_chunk5V2H52C6js.writeTrace.call(void 0,
|
|
68
68
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
69
69
|
);
|
|
70
70
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
@@ -112,7 +112,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
112
112
|
return ret;
|
|
113
113
|
}, _nullishCoalesce(packageJson.devDependencies, () => ( {})));
|
|
114
114
|
} else {
|
|
115
|
-
|
|
115
|
+
_chunk5V2H52C6js.writeTrace.call(void 0, "\u{1F4E6} No local packages dependencies to add to package.json");
|
|
116
116
|
}
|
|
117
117
|
return packageJson;
|
|
118
118
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-65HIHTHN.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkD3XTO762js = require('./chunk-D3XTO762.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkP3MQZA3Djs = require('./chunk-P3MQZA3D.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkENGUZ5THjs = require('./chunk-ENGUZ5TH.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkQ7FLUSWKjs = require('./chunk-Q7FLUSWK.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk2S4OIT5Bjs = require('./chunk-2S4OIT5B.js');
|
|
21
21
|
require('./chunk-BPRPYAQS.js');
|
|
22
22
|
require('./chunk-I2YBUOU3.js');
|
|
23
23
|
|
|
@@ -46,14 +46,14 @@ require('./chunk-6F4PWJZI.js');
|
|
|
46
46
|
require('./chunk-WPFIBCZT.js');
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkFEAJPPERjs = require('./chunk-FEAJPPER.js');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
var _chunkHQD5ZBIUjs = require('./chunk-HQD5ZBIU.js');
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
56
|
-
require('./chunk-
|
|
55
|
+
var _chunk27B64JLQjs = require('./chunk-27B64JLQ.js');
|
|
56
|
+
require('./chunk-5V2H52C6.js');
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
var _chunkN7HP2YYEjs = require('./chunk-N7HP2YYE.js');
|
|
@@ -83,4 +83,4 @@ var _chunkN7HP2YYEjs = require('./chunk-N7HP2YYE.js');
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
exports.DEFAULT_CSS_BANNER = _chunkMEINUFJYjs.DEFAULT_CSS_BANNER; exports.DEFAULT_ENVIRONMENT = _chunkMEINUFJYjs.DEFAULT_ENVIRONMENT; exports.DEFAULT_JS_BANNER = _chunkMEINUFJYjs.DEFAULT_JS_BANNER; exports.DEFAULT_ORGANIZATION = _chunkMEINUFJYjs.DEFAULT_ORGANIZATION; exports.DEFAULT_PLATFORM = _chunkMEINUFJYjs.DEFAULT_PLATFORM; exports.DEFAULT_TARGET = _chunkMEINUFJYjs.DEFAULT_TARGET; exports.addPackageDependencies =
|
|
86
|
+
exports.DEFAULT_CSS_BANNER = _chunkMEINUFJYjs.DEFAULT_CSS_BANNER; exports.DEFAULT_ENVIRONMENT = _chunkMEINUFJYjs.DEFAULT_ENVIRONMENT; exports.DEFAULT_JS_BANNER = _chunkMEINUFJYjs.DEFAULT_JS_BANNER; exports.DEFAULT_ORGANIZATION = _chunkMEINUFJYjs.DEFAULT_ORGANIZATION; exports.DEFAULT_PLATFORM = _chunkMEINUFJYjs.DEFAULT_PLATFORM; exports.DEFAULT_TARGET = _chunkMEINUFJYjs.DEFAULT_TARGET; exports.addPackageDependencies = _chunkQ7FLUSWKjs.addPackageDependencies; exports.addPackageJsonExport = _chunkQ7FLUSWKjs.addPackageJsonExport; exports.addPackageJsonExports = _chunkQ7FLUSWKjs.addPackageJsonExports; exports.addWorkspacePackageJsonFields = _chunkQ7FLUSWKjs.addWorkspacePackageJsonFields; exports.analyze = _chunkFEAJPPERjs.analyze; exports.copyAssets = _chunkENGUZ5THjs.copyAssets; exports.createTaskId = _chunkP3MQZA3Djs.createTaskId; exports.getAllWorkspaceTaskGraphs = _chunkP3MQZA3Djs.getAllWorkspaceTaskGraphs; exports.getEntryPoints = _chunk2S4OIT5Bjs.getEntryPoints; exports.getEnv = _chunkNUMEQYRDjs.getEnv; exports.getExternalDependencies = _chunkWNMPQTPHjs.getExternalDependencies; exports.getExtraDependencies = _chunkWNMPQTPHjs.getExtraDependencies; exports.getFileBanner = _chunkUHJ5ACWHjs.getFileBanner; exports.getInternalDependencies = _chunkWNMPQTPHjs.getInternalDependencies; exports.getOutExtension = _chunkA75DEKU5js.getOutExtension; exports.readNxConfig = _chunkD3XTO762js.readNxConfig; exports.swc = _chunkHQD5ZBIUjs.swc; exports.tsResolvePlugin = _chunk27B64JLQjs.tsResolvePlugin; exports.typeDefinitions = _chunkN7HP2YYEjs.typeDefinitions;
|