@storm-software/workspace-tools 1.43.16 → 1.43.18
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/CHANGELOG.md +14 -0
- package/index.js +67 -97
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +34 -74
- package/src/executors/design-tokens/executor.js +45 -85
- package/src/executors/tsup/executor.js +67 -97
- package/src/executors/tsup/schema.d.ts +3 -2
- package/src/executors/tsup-browser/executor.js +67 -97
- package/src/executors/tsup-neutral/executor.js +67 -97
- package/src/executors/tsup-neutral/schema.d.ts +2 -5
- package/src/executors/tsup-node/executor.js +67 -97
- package/src/generators/browser-library/generator.js +34 -74
- package/src/generators/config-schema/generator.js +31 -71
- package/src/generators/neutral-library/generator.js +34 -74
- package/src/generators/node-library/generator.js +34 -74
- package/src/generators/preset/generator.js +31 -71
|
@@ -24382,14 +24382,14 @@ var require_share = __commonJS({
|
|
|
24382
24382
|
resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
|
|
24383
24383
|
resetConnection = void 0;
|
|
24384
24384
|
};
|
|
24385
|
-
var
|
|
24385
|
+
var reset = function() {
|
|
24386
24386
|
cancelReset();
|
|
24387
24387
|
connection = subject = void 0;
|
|
24388
24388
|
hasCompleted = hasErrored = false;
|
|
24389
24389
|
};
|
|
24390
24390
|
var resetAndUnsubscribe = function() {
|
|
24391
24391
|
var conn = connection;
|
|
24392
|
-
|
|
24392
|
+
reset();
|
|
24393
24393
|
conn === null || conn === void 0 ? void 0 : conn.unsubscribe();
|
|
24394
24394
|
};
|
|
24395
24395
|
return lift_1.operate(function(source, subscriber) {
|
|
@@ -24413,13 +24413,13 @@ var require_share = __commonJS({
|
|
|
24413
24413
|
error: function(err) {
|
|
24414
24414
|
hasErrored = true;
|
|
24415
24415
|
cancelReset();
|
|
24416
|
-
resetConnection = handleReset(
|
|
24416
|
+
resetConnection = handleReset(reset, resetOnError, err);
|
|
24417
24417
|
dest.error(err);
|
|
24418
24418
|
},
|
|
24419
24419
|
complete: function() {
|
|
24420
24420
|
hasCompleted = true;
|
|
24421
24421
|
cancelReset();
|
|
24422
|
-
resetConnection = handleReset(
|
|
24422
|
+
resetConnection = handleReset(reset, resetOnComplete);
|
|
24423
24423
|
dest.complete();
|
|
24424
24424
|
}
|
|
24425
24425
|
});
|
|
@@ -24429,13 +24429,13 @@ var require_share = __commonJS({
|
|
|
24429
24429
|
};
|
|
24430
24430
|
}
|
|
24431
24431
|
exports.share = share;
|
|
24432
|
-
function handleReset(
|
|
24432
|
+
function handleReset(reset, on) {
|
|
24433
24433
|
var args = [];
|
|
24434
24434
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
24435
24435
|
args[_i - 2] = arguments[_i];
|
|
24436
24436
|
}
|
|
24437
24437
|
if (on === true) {
|
|
24438
|
-
|
|
24438
|
+
reset();
|
|
24439
24439
|
return;
|
|
24440
24440
|
}
|
|
24441
24441
|
if (on === false) {
|
|
@@ -24444,7 +24444,7 @@ var require_share = __commonJS({
|
|
|
24444
24444
|
var onSubscriber = new Subscriber_1.SafeSubscriber({
|
|
24445
24445
|
next: function() {
|
|
24446
24446
|
onSubscriber.unsubscribe();
|
|
24447
|
-
|
|
24447
|
+
reset();
|
|
24448
24448
|
}
|
|
24449
24449
|
});
|
|
24450
24450
|
return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray2([], __read2(args)))).subscribe(onSubscriber);
|
|
@@ -38620,7 +38620,7 @@ var require_array2 = __commonJS({
|
|
|
38620
38620
|
parent.enabled = choices.every((ch) => ch.enabled === true);
|
|
38621
38621
|
parent = parent.parent;
|
|
38622
38622
|
}
|
|
38623
|
-
|
|
38623
|
+
reset(this, this.choices);
|
|
38624
38624
|
this.emit("toggle", choice, this);
|
|
38625
38625
|
return choice;
|
|
38626
38626
|
}
|
|
@@ -38918,7 +38918,7 @@ var require_array2 = __commonJS({
|
|
|
38918
38918
|
}
|
|
38919
38919
|
}
|
|
38920
38920
|
get choices() {
|
|
38921
|
-
return
|
|
38921
|
+
return reset(this, this.state.choices || []);
|
|
38922
38922
|
}
|
|
38923
38923
|
set visible(visible) {
|
|
38924
38924
|
this.state.visible = visible;
|
|
@@ -38966,7 +38966,7 @@ var require_array2 = __commonJS({
|
|
|
38966
38966
|
return this.multiple ? this.enabled : this.focused;
|
|
38967
38967
|
}
|
|
38968
38968
|
};
|
|
38969
|
-
function
|
|
38969
|
+
function reset(prompt, choices) {
|
|
38970
38970
|
if (choices instanceof Promise)
|
|
38971
38971
|
return choices;
|
|
38972
38972
|
if (typeof choices === "function") {
|
|
@@ -44822,9 +44822,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
44822
44822
|
}
|
|
44823
44823
|
});
|
|
44824
44824
|
|
|
44825
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
44825
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=q3adzeotawbaqlm7xnns7alayq_@microsoft+api-extractor@7.38.3_@swc+core@1._kmr4yps6ayaxcckp3s3lqs2juq/node_modules/tsup/dist/chunk-EPAEWGCP.js
|
|
44826
44826
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
44827
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
44827
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=q3adzeotawbaqlm7xnns7alayq_@microsoft+api-extractor@7.38.3_@swc+core@1._kmr4yps6ayaxcckp3s3lqs2juq/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
|
|
44828
44828
|
"use strict";
|
|
44829
44829
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44830
44830
|
var version = "8.0.0";
|
|
@@ -46471,9 +46471,9 @@ var require_resolve_from2 = __commonJS({
|
|
|
46471
46471
|
}
|
|
46472
46472
|
});
|
|
46473
46473
|
|
|
46474
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
46474
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=q3adzeotawbaqlm7xnns7alayq_@microsoft+api-extractor@7.38.3_@swc+core@1._kmr4yps6ayaxcckp3s3lqs2juq/node_modules/tsup/dist/chunk-GQ77QZBO.js
|
|
46475
46475
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
46476
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
46476
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=q3adzeotawbaqlm7xnns7alayq_@microsoft+api-extractor@7.38.3_@swc+core@1._kmr4yps6ayaxcckp3s3lqs2juq/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
|
|
46477
46477
|
"use strict";
|
|
46478
46478
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46479
46479
|
function _interopRequireDefault(obj) {
|
|
@@ -46751,9 +46751,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
46751
46751
|
}
|
|
46752
46752
|
});
|
|
46753
46753
|
|
|
46754
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
46754
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=q3adzeotawbaqlm7xnns7alayq_@microsoft+api-extractor@7.38.3_@swc+core@1._kmr4yps6ayaxcckp3s3lqs2juq/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
46755
46755
|
var require_chunk_UIX4URMV = __commonJS({
|
|
46756
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
46756
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=q3adzeotawbaqlm7xnns7alayq_@microsoft+api-extractor@7.38.3_@swc+core@1._kmr4yps6ayaxcckp3s3lqs2juq/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
|
|
46757
46757
|
"use strict";
|
|
46758
46758
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46759
46759
|
function _interopRequireWildcard(obj) {
|
|
@@ -46812,7 +46812,7 @@ var require_chunk_UIX4URMV = __commonJS({
|
|
|
46812
46812
|
magentaBright: () => magentaBright,
|
|
46813
46813
|
red: () => red,
|
|
46814
46814
|
redBright: () => redBright,
|
|
46815
|
-
reset: () =>
|
|
46815
|
+
reset: () => reset,
|
|
46816
46816
|
strikethrough: () => strikethrough,
|
|
46817
46817
|
underline: () => underline,
|
|
46818
46818
|
white: () => white,
|
|
@@ -46889,7 +46889,7 @@ var require_chunk_UIX4URMV = __commonJS({
|
|
|
46889
46889
|
{}
|
|
46890
46890
|
);
|
|
46891
46891
|
var {
|
|
46892
|
-
reset
|
|
46892
|
+
reset,
|
|
46893
46893
|
bold: bold2,
|
|
46894
46894
|
dim: dim2,
|
|
46895
46895
|
italic,
|
|
@@ -47687,9 +47687,9 @@ var require_dist3 = __commonJS({
|
|
|
47687
47687
|
}
|
|
47688
47688
|
});
|
|
47689
47689
|
|
|
47690
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
47690
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=q3adzeotawbaqlm7xnns7alayq_@microsoft+api-extractor@7.38.3_@swc+core@1._kmr4yps6ayaxcckp3s3lqs2juq/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
47691
47691
|
var require_chunk_7G76EW2R = __commonJS({
|
|
47692
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
47692
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=q3adzeotawbaqlm7xnns7alayq_@microsoft+api-extractor@7.38.3_@swc+core@1._kmr4yps6ayaxcckp3s3lqs2juq/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
|
|
47693
47693
|
"use strict";
|
|
47694
47694
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47695
47695
|
function _interopRequireDefault(obj) {
|
|
@@ -78733,7 +78733,7 @@ var require_rollup = __commonJS({
|
|
|
78733
78733
|
{}
|
|
78734
78734
|
);
|
|
78735
78735
|
var {
|
|
78736
|
-
reset
|
|
78736
|
+
reset,
|
|
78737
78737
|
bold: bold$1,
|
|
78738
78738
|
dim: dim$1,
|
|
78739
78739
|
italic,
|
|
@@ -93603,19 +93603,19 @@ ${outro}`;
|
|
|
93603
93603
|
function keep(key, value) {
|
|
93604
93604
|
if (++num > limit) {
|
|
93605
93605
|
prev = curr;
|
|
93606
|
-
|
|
93606
|
+
reset2(1);
|
|
93607
93607
|
++num;
|
|
93608
93608
|
}
|
|
93609
93609
|
curr[key] = value;
|
|
93610
93610
|
}
|
|
93611
|
-
function
|
|
93611
|
+
function reset2(isPartial) {
|
|
93612
93612
|
num = 0;
|
|
93613
93613
|
curr = /* @__PURE__ */ Object.create(null);
|
|
93614
93614
|
isPartial || (prev = /* @__PURE__ */ Object.create(null));
|
|
93615
93615
|
}
|
|
93616
|
-
|
|
93616
|
+
reset2();
|
|
93617
93617
|
return {
|
|
93618
|
-
clear:
|
|
93618
|
+
clear: reset2,
|
|
93619
93619
|
has: function(key) {
|
|
93620
93620
|
return curr[key] !== void 0 || prev[key] !== void 0;
|
|
93621
93621
|
},
|
|
@@ -101426,9 +101426,9 @@ var require_chokidar = __commonJS({
|
|
|
101426
101426
|
}
|
|
101427
101427
|
});
|
|
101428
101428
|
|
|
101429
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
101429
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=q3adzeotawbaqlm7xnns7alayq_@microsoft+api-extractor@7.38.3_@swc+core@1._kmr4yps6ayaxcckp3s3lqs2juq/node_modules/tsup/dist/index.js
|
|
101430
101430
|
var require_dist6 = __commonJS({
|
|
101431
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
101431
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=q3adzeotawbaqlm7xnns7alayq_@microsoft+api-extractor@7.38.3_@swc+core@1._kmr4yps6ayaxcckp3s3lqs2juq/node_modules/tsup/dist/index.js"(exports) {
|
|
101432
101432
|
"use strict";
|
|
101433
101433
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101434
101434
|
function _interopRequireDefault(obj) {
|
|
@@ -103721,7 +103721,13 @@ var require_dist6 = __commonJS({
|
|
|
103721
103721
|
};
|
|
103722
103722
|
logger.info("tsc", "Emitting DTS files");
|
|
103723
103723
|
let transformDiagnostics = [];
|
|
103724
|
-
let emitResult = program.emit(
|
|
103724
|
+
let emitResult = program.emit(
|
|
103725
|
+
void 0,
|
|
103726
|
+
writeFile2,
|
|
103727
|
+
void 0,
|
|
103728
|
+
true,
|
|
103729
|
+
options.getTransform ? { before: [options.getTransform(program, transformDiagnostics)] } : void 0
|
|
103730
|
+
);
|
|
103725
103731
|
let diagnostics = _typescript2.default.getPreEmitDiagnostics(program).concat(emitResult.diagnostics);
|
|
103726
103732
|
let diagnosticMessages = [];
|
|
103727
103733
|
[...transformDiagnostics, ...diagnostics].forEach((diagnostic) => {
|
|
@@ -103762,7 +103768,10 @@ var require_dist6 = __commonJS({
|
|
|
103762
103768
|
const program = _typescript2.default.createProgram({
|
|
103763
103769
|
rootNames: compilerOptions.fileNames,
|
|
103764
103770
|
options: compilerOptions.options,
|
|
103765
|
-
host
|
|
103771
|
+
host: {
|
|
103772
|
+
...host,
|
|
103773
|
+
jsDocParsingMode: _typescript2.default.JSDocParsingMode?.ParseAll !== void 0 ? _typescript2.default.JSDocParsingMode.ParseAll : 0
|
|
103774
|
+
}
|
|
103766
103775
|
});
|
|
103767
103776
|
const fileMapping = emitDtsFiles(program, host, options);
|
|
103768
103777
|
if (!fileMapping || fileMapping.size === 0) {
|
|
@@ -130183,14 +130192,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
130183
130192
|
return (message) => {
|
|
130184
130193
|
console.error(
|
|
130185
130194
|
`
|
|
130186
|
-
|
|
130187
|
-
|
|
130188
|
-
${chalk.bold.hex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6")(
|
|
130189
|
-
">"
|
|
130190
|
-
)} ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").white(" \u{1F480} Fatal ")} ${chalk.reset.hex(
|
|
130195
|
+
${chalk.bold.hex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").white(" \u{1F480} Fatal ")} ${chalk.hex(
|
|
130191
130196
|
config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
|
|
130192
|
-
)(message)}
|
|
130193
|
-
|
|
130197
|
+
)(message)}
|
|
130194
130198
|
|
|
130195
130199
|
`
|
|
130196
130200
|
);
|
|
@@ -130200,15 +130204,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
130200
130204
|
return (message) => {
|
|
130201
130205
|
console.error(
|
|
130202
130206
|
`
|
|
130203
|
-
|
|
130204
|
-
|
|
130205
|
-
${chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(
|
|
130206
|
-
">"
|
|
130207
|
-
)} ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white(" \u{1F6D1} Error ")} ${chalk.reset.hex(
|
|
130207
|
+
${chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")} ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white(" \u{1F6D1} Error ")} ${chalk.hex(
|
|
130208
130208
|
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
130209
|
-
)(message)}
|
|
130210
|
-
|
|
130211
|
-
|
|
130209
|
+
)(message)}
|
|
130212
130210
|
`
|
|
130213
130211
|
);
|
|
130214
130212
|
};
|
|
@@ -130217,15 +130215,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
130217
130215
|
return (message) => {
|
|
130218
130216
|
console.warn(
|
|
130219
130217
|
`
|
|
130220
|
-
|
|
130221
|
-
|
|
130222
|
-
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(
|
|
130223
|
-
">"
|
|
130224
|
-
)} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" \u26A0\uFE0F Warn ")} ${chalk.reset.hex(
|
|
130218
|
+
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" \u26A0\uFE0F Warn ")} ${chalk.hex(
|
|
130225
130219
|
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
130226
|
-
)(message)}
|
|
130227
|
-
|
|
130228
|
-
|
|
130220
|
+
)(message)}
|
|
130229
130221
|
`
|
|
130230
130222
|
);
|
|
130231
130223
|
};
|
|
@@ -130234,15 +130226,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
130234
130226
|
return (message) => {
|
|
130235
130227
|
console.info(
|
|
130236
130228
|
`
|
|
130237
|
-
|
|
130238
|
-
|
|
130239
|
-
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(
|
|
130240
|
-
">"
|
|
130241
|
-
)} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \u{1F4EC} Info ")} ${chalk.reset.hex(
|
|
130229
|
+
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \u{1F4EC} Info ")} ${chalk.hex(
|
|
130242
130230
|
config?.colors?.info ? config.colors.info : "#0ea5e9"
|
|
130243
|
-
)(message)}
|
|
130244
|
-
|
|
130245
|
-
|
|
130231
|
+
)(message)}
|
|
130246
130232
|
`
|
|
130247
130233
|
);
|
|
130248
130234
|
};
|
|
@@ -130251,15 +130237,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
130251
130237
|
return (message) => {
|
|
130252
130238
|
console.info(
|
|
130253
130239
|
`
|
|
130254
|
-
|
|
130255
|
-
|
|
130256
|
-
${chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(
|
|
130257
|
-
">"
|
|
130258
|
-
)} ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white(" \u{1F389} Success ")} ${chalk.reset.hex(
|
|
130240
|
+
${chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(">")} ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white(" \u{1F389} Success ")} ${chalk.hex(
|
|
130259
130241
|
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
130260
|
-
)(message)}
|
|
130261
|
-
|
|
130262
|
-
|
|
130242
|
+
)(message)}
|
|
130263
130243
|
`
|
|
130264
130244
|
);
|
|
130265
130245
|
};
|
|
@@ -130268,15 +130248,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
130268
130248
|
return (message) => {
|
|
130269
130249
|
console.debug(
|
|
130270
130250
|
`
|
|
130271
|
-
|
|
130272
|
-
|
|
130273
|
-
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(
|
|
130274
|
-
">"
|
|
130275
|
-
)} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F9EA} Debug ")} ${chalk.reset.hex(
|
|
130251
|
+
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F9EA} Debug ")} ${chalk.hex(
|
|
130276
130252
|
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
130277
|
-
)(message)}
|
|
130278
|
-
|
|
130279
|
-
|
|
130253
|
+
)(message)}
|
|
130280
130254
|
`
|
|
130281
130255
|
);
|
|
130282
130256
|
};
|
|
@@ -130284,15 +130258,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
130284
130258
|
return (message) => {
|
|
130285
130259
|
console.log(
|
|
130286
130260
|
`
|
|
130287
|
-
|
|
130288
|
-
|
|
130289
|
-
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(
|
|
130290
|
-
">"
|
|
130291
|
-
)} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F4E2} System ")} ${chalk.bold.hex(
|
|
130261
|
+
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F4E2} System ")} ${chalk.hex(
|
|
130292
130262
|
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
130293
|
-
)(message)}
|
|
130294
|
-
|
|
130295
|
-
|
|
130263
|
+
)(message)}
|
|
130296
130264
|
`
|
|
130297
130265
|
);
|
|
130298
130266
|
};
|
|
@@ -130516,12 +130484,12 @@ var loadStormConfig = async (workspaceRoot) => {
|
|
|
130516
130484
|
if (key === "colors") {
|
|
130517
130485
|
configFile.colors = {
|
|
130518
130486
|
primary: process.env.STORM_COLOR_PRIMARY ?? configFile.colors?.primary,
|
|
130519
|
-
background: process.env.STORM_COLOR_BACKGROUND ?? configFile.colors?.
|
|
130520
|
-
success: process.env.STORM_COLOR_SUCCESS ?? configFile.colors?.
|
|
130521
|
-
info: process.env.STORM_COLOR_INFO ?? configFile.colors?.
|
|
130522
|
-
warning: process.env.STORM_COLOR_WARNING ?? configFile.colors?.
|
|
130523
|
-
error: process.env.STORM_COLOR_ERROR ?? configFile.colors?.
|
|
130524
|
-
fatal: process.env.STORM_COLOR_FATAL ?? configFile.colors?.
|
|
130487
|
+
background: process.env.STORM_COLOR_BACKGROUND ?? configFile.colors?.background,
|
|
130488
|
+
success: process.env.STORM_COLOR_SUCCESS ?? configFile.colors?.success,
|
|
130489
|
+
info: process.env.STORM_COLOR_INFO ?? configFile.colors?.info,
|
|
130490
|
+
warning: process.env.STORM_COLOR_WARNING ?? configFile.colors?.warning,
|
|
130491
|
+
error: process.env.STORM_COLOR_ERROR ?? configFile.colors?.error,
|
|
130492
|
+
fatal: process.env.STORM_COLOR_FATAL ?? configFile.colors?.fatal
|
|
130525
130493
|
};
|
|
130526
130494
|
} else {
|
|
130527
130495
|
configFile[key] = configEnv[key];
|
|
@@ -130530,13 +130498,14 @@ var loadStormConfig = async (workspaceRoot) => {
|
|
|
130530
130498
|
}
|
|
130531
130499
|
const config = StormConfigSchema.parse(configFile);
|
|
130532
130500
|
setConfigEnv(config);
|
|
130533
|
-
console.debug("\n\n");
|
|
130501
|
+
console.debug("\r\n\r\n");
|
|
130534
130502
|
console.debug(`Loaded Storm config from ${config.configFile}`);
|
|
130535
130503
|
for (const key of Object.keys(configFile)) {
|
|
130536
|
-
console.debug(`
|
|
130504
|
+
console.debug(`
|
|
130505
|
+
----- ${key} ----- `);
|
|
130537
130506
|
console.debug(configFile[key]);
|
|
130538
130507
|
}
|
|
130539
|
-
console.debug("\n\n");
|
|
130508
|
+
console.debug("\r\n\r\n");
|
|
130540
130509
|
return config;
|
|
130541
130510
|
};
|
|
130542
130511
|
|
|
@@ -137470,7 +137439,7 @@ ${(0, import_node_fs2.readFileSync)(file, "utf-8")}`,
|
|
|
137470
137439
|
...options,
|
|
137471
137440
|
watch: false,
|
|
137472
137441
|
main: options.entry,
|
|
137473
|
-
transformers:
|
|
137442
|
+
transformers: []
|
|
137474
137443
|
},
|
|
137475
137444
|
context.root,
|
|
137476
137445
|
sourceRoot,
|
|
@@ -137483,11 +137452,12 @@ ${(0, import_node_fs2.readFileSync)(file, "utf-8")}`,
|
|
|
137483
137452
|
js: `${options.banner}
|
|
137484
137453
|
|
|
137485
137454
|
`,
|
|
137486
|
-
css: `/*
|
|
137455
|
+
css: `/*
|
|
137487
137456
|
${options.banner}
|
|
137488
|
-
*/
|
|
137489
137457
|
|
|
137490
|
-
|
|
137458
|
+
|
|
137459
|
+
|
|
137460
|
+
*/`
|
|
137491
137461
|
} : void 0,
|
|
137492
137462
|
outputPath: options.outputPath,
|
|
137493
137463
|
entry,
|
|
@@ -16158,14 +16158,14 @@ var require_share = __commonJS({
|
|
|
16158
16158
|
resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
|
|
16159
16159
|
resetConnection = void 0;
|
|
16160
16160
|
};
|
|
16161
|
-
var
|
|
16161
|
+
var reset = function() {
|
|
16162
16162
|
cancelReset();
|
|
16163
16163
|
connection = subject = void 0;
|
|
16164
16164
|
hasCompleted = hasErrored = false;
|
|
16165
16165
|
};
|
|
16166
16166
|
var resetAndUnsubscribe = function() {
|
|
16167
16167
|
var conn = connection;
|
|
16168
|
-
|
|
16168
|
+
reset();
|
|
16169
16169
|
conn === null || conn === void 0 ? void 0 : conn.unsubscribe();
|
|
16170
16170
|
};
|
|
16171
16171
|
return lift_1.operate(function(source, subscriber) {
|
|
@@ -16189,13 +16189,13 @@ var require_share = __commonJS({
|
|
|
16189
16189
|
error: function(err) {
|
|
16190
16190
|
hasErrored = true;
|
|
16191
16191
|
cancelReset();
|
|
16192
|
-
resetConnection = handleReset(
|
|
16192
|
+
resetConnection = handleReset(reset, resetOnError, err);
|
|
16193
16193
|
dest.error(err);
|
|
16194
16194
|
},
|
|
16195
16195
|
complete: function() {
|
|
16196
16196
|
hasCompleted = true;
|
|
16197
16197
|
cancelReset();
|
|
16198
|
-
resetConnection = handleReset(
|
|
16198
|
+
resetConnection = handleReset(reset, resetOnComplete);
|
|
16199
16199
|
dest.complete();
|
|
16200
16200
|
}
|
|
16201
16201
|
});
|
|
@@ -16205,13 +16205,13 @@ var require_share = __commonJS({
|
|
|
16205
16205
|
};
|
|
16206
16206
|
}
|
|
16207
16207
|
exports.share = share;
|
|
16208
|
-
function handleReset(
|
|
16208
|
+
function handleReset(reset, on) {
|
|
16209
16209
|
var args = [];
|
|
16210
16210
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
16211
16211
|
args[_i - 2] = arguments[_i];
|
|
16212
16212
|
}
|
|
16213
16213
|
if (on === true) {
|
|
16214
|
-
|
|
16214
|
+
reset();
|
|
16215
16215
|
return;
|
|
16216
16216
|
}
|
|
16217
16217
|
if (on === false) {
|
|
@@ -16220,7 +16220,7 @@ var require_share = __commonJS({
|
|
|
16220
16220
|
var onSubscriber = new Subscriber_1.SafeSubscriber({
|
|
16221
16221
|
next: function() {
|
|
16222
16222
|
onSubscriber.unsubscribe();
|
|
16223
|
-
|
|
16223
|
+
reset();
|
|
16224
16224
|
}
|
|
16225
16225
|
});
|
|
16226
16226
|
return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray2([], __read2(args)))).subscribe(onSubscriber);
|
|
@@ -28102,7 +28102,7 @@ var require_array = __commonJS({
|
|
|
28102
28102
|
parent.enabled = choices.every((ch) => ch.enabled === true);
|
|
28103
28103
|
parent = parent.parent;
|
|
28104
28104
|
}
|
|
28105
|
-
|
|
28105
|
+
reset(this, this.choices);
|
|
28106
28106
|
this.emit("toggle", choice, this);
|
|
28107
28107
|
return choice;
|
|
28108
28108
|
}
|
|
@@ -28400,7 +28400,7 @@ var require_array = __commonJS({
|
|
|
28400
28400
|
}
|
|
28401
28401
|
}
|
|
28402
28402
|
get choices() {
|
|
28403
|
-
return
|
|
28403
|
+
return reset(this, this.state.choices || []);
|
|
28404
28404
|
}
|
|
28405
28405
|
set visible(visible) {
|
|
28406
28406
|
this.state.visible = visible;
|
|
@@ -28448,7 +28448,7 @@ var require_array = __commonJS({
|
|
|
28448
28448
|
return this.multiple ? this.enabled : this.focused;
|
|
28449
28449
|
}
|
|
28450
28450
|
};
|
|
28451
|
-
function
|
|
28451
|
+
function reset(prompt, choices) {
|
|
28452
28452
|
if (choices instanceof Promise)
|
|
28453
28453
|
return choices;
|
|
28454
28454
|
if (typeof choices === "function") {
|
|
@@ -47329,14 +47329,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
47329
47329
|
return (message) => {
|
|
47330
47330
|
console.error(
|
|
47331
47331
|
`
|
|
47332
|
-
|
|
47333
|
-
|
|
47334
|
-
${chalk.bold.hex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6")(
|
|
47335
|
-
">"
|
|
47336
|
-
)} ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").white(" \u{1F480} Fatal ")} ${chalk.reset.hex(
|
|
47332
|
+
${chalk.bold.hex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").white(" \u{1F480} Fatal ")} ${chalk.hex(
|
|
47337
47333
|
config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
|
|
47338
|
-
)(message)}
|
|
47339
|
-
|
|
47334
|
+
)(message)}
|
|
47340
47335
|
|
|
47341
47336
|
`
|
|
47342
47337
|
);
|
|
@@ -47346,15 +47341,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
47346
47341
|
return (message) => {
|
|
47347
47342
|
console.error(
|
|
47348
47343
|
`
|
|
47349
|
-
|
|
47350
|
-
|
|
47351
|
-
${chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(
|
|
47352
|
-
">"
|
|
47353
|
-
)} ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white(" \u{1F6D1} Error ")} ${chalk.reset.hex(
|
|
47344
|
+
${chalk.bold.hex(config?.colors?.error ? config.colors.error : "#7d1a1a")(">")} ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").white(" \u{1F6D1} Error ")} ${chalk.hex(
|
|
47354
47345
|
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
47355
|
-
)(message)}
|
|
47356
|
-
|
|
47357
|
-
|
|
47346
|
+
)(message)}
|
|
47358
47347
|
`
|
|
47359
47348
|
);
|
|
47360
47349
|
};
|
|
@@ -47363,15 +47352,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
47363
47352
|
return (message) => {
|
|
47364
47353
|
console.warn(
|
|
47365
47354
|
`
|
|
47366
|
-
|
|
47367
|
-
|
|
47368
|
-
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(
|
|
47369
|
-
">"
|
|
47370
|
-
)} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" \u26A0\uFE0F Warn ")} ${chalk.reset.hex(
|
|
47355
|
+
${chalk.bold.hex(config?.colors?.warning ? config.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").white(" \u26A0\uFE0F Warn ")} ${chalk.hex(
|
|
47371
47356
|
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
47372
|
-
)(message)}
|
|
47373
|
-
|
|
47374
|
-
|
|
47357
|
+
)(message)}
|
|
47375
47358
|
`
|
|
47376
47359
|
);
|
|
47377
47360
|
};
|
|
@@ -47380,15 +47363,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
47380
47363
|
return (message) => {
|
|
47381
47364
|
console.info(
|
|
47382
47365
|
`
|
|
47383
|
-
|
|
47384
|
-
|
|
47385
|
-
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(
|
|
47386
|
-
">"
|
|
47387
|
-
)} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \u{1F4EC} Info ")} ${chalk.reset.hex(
|
|
47366
|
+
${chalk.bold.hex(config?.colors?.info ? config.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").white(" \u{1F4EC} Info ")} ${chalk.hex(
|
|
47388
47367
|
config?.colors?.info ? config.colors.info : "#0ea5e9"
|
|
47389
|
-
)(message)}
|
|
47390
|
-
|
|
47391
|
-
|
|
47368
|
+
)(message)}
|
|
47392
47369
|
`
|
|
47393
47370
|
);
|
|
47394
47371
|
};
|
|
@@ -47397,15 +47374,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
47397
47374
|
return (message) => {
|
|
47398
47375
|
console.info(
|
|
47399
47376
|
`
|
|
47400
|
-
|
|
47401
|
-
|
|
47402
|
-
${chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(
|
|
47403
|
-
">"
|
|
47404
|
-
)} ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white(" \u{1F389} Success ")} ${chalk.reset.hex(
|
|
47377
|
+
${chalk.bold.hex(config?.colors?.success ? config.colors.success : "#087f5b")(">")} ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").white(" \u{1F389} Success ")} ${chalk.hex(
|
|
47405
47378
|
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
47406
|
-
)(message)}
|
|
47407
|
-
|
|
47408
|
-
|
|
47379
|
+
)(message)}
|
|
47409
47380
|
`
|
|
47410
47381
|
);
|
|
47411
47382
|
};
|
|
@@ -47414,15 +47385,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
47414
47385
|
return (message) => {
|
|
47415
47386
|
console.debug(
|
|
47416
47387
|
`
|
|
47417
|
-
|
|
47418
|
-
|
|
47419
|
-
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(
|
|
47420
|
-
">"
|
|
47421
|
-
)} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F9EA} Debug ")} ${chalk.reset.hex(
|
|
47388
|
+
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F9EA} Debug ")} ${chalk.hex(
|
|
47422
47389
|
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
47423
|
-
)(message)}
|
|
47424
|
-
|
|
47425
|
-
|
|
47390
|
+
)(message)}
|
|
47426
47391
|
`
|
|
47427
47392
|
);
|
|
47428
47393
|
};
|
|
@@ -47430,15 +47395,9 @@ var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
|
47430
47395
|
return (message) => {
|
|
47431
47396
|
console.log(
|
|
47432
47397
|
`
|
|
47433
|
-
|
|
47434
|
-
|
|
47435
|
-
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(
|
|
47436
|
-
">"
|
|
47437
|
-
)} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F4E2} System ")} ${chalk.bold.hex(
|
|
47398
|
+
${chalk.bold.hex(config?.colors?.primary ? config.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").white(" \u{1F4E2} System ")} ${chalk.hex(
|
|
47438
47399
|
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
47439
|
-
)(message)}
|
|
47440
|
-
|
|
47441
|
-
|
|
47400
|
+
)(message)}
|
|
47442
47401
|
`
|
|
47443
47402
|
);
|
|
47444
47403
|
};
|
|
@@ -47661,12 +47620,12 @@ var loadStormConfig = async (workspaceRoot) => {
|
|
|
47661
47620
|
if (key === "colors") {
|
|
47662
47621
|
configFile.colors = {
|
|
47663
47622
|
primary: process.env.STORM_COLOR_PRIMARY ?? configFile.colors?.primary,
|
|
47664
|
-
background: process.env.STORM_COLOR_BACKGROUND ?? configFile.colors?.
|
|
47665
|
-
success: process.env.STORM_COLOR_SUCCESS ?? configFile.colors?.
|
|
47666
|
-
info: process.env.STORM_COLOR_INFO ?? configFile.colors?.
|
|
47667
|
-
warning: process.env.STORM_COLOR_WARNING ?? configFile.colors?.
|
|
47668
|
-
error: process.env.STORM_COLOR_ERROR ?? configFile.colors?.
|
|
47669
|
-
fatal: process.env.STORM_COLOR_FATAL ?? configFile.colors?.
|
|
47623
|
+
background: process.env.STORM_COLOR_BACKGROUND ?? configFile.colors?.background,
|
|
47624
|
+
success: process.env.STORM_COLOR_SUCCESS ?? configFile.colors?.success,
|
|
47625
|
+
info: process.env.STORM_COLOR_INFO ?? configFile.colors?.info,
|
|
47626
|
+
warning: process.env.STORM_COLOR_WARNING ?? configFile.colors?.warning,
|
|
47627
|
+
error: process.env.STORM_COLOR_ERROR ?? configFile.colors?.error,
|
|
47628
|
+
fatal: process.env.STORM_COLOR_FATAL ?? configFile.colors?.fatal
|
|
47670
47629
|
};
|
|
47671
47630
|
} else {
|
|
47672
47631
|
configFile[key] = configEnv[key];
|
|
@@ -47675,13 +47634,14 @@ var loadStormConfig = async (workspaceRoot) => {
|
|
|
47675
47634
|
}
|
|
47676
47635
|
const config = StormConfigSchema.parse(configFile);
|
|
47677
47636
|
setConfigEnv(config);
|
|
47678
|
-
console.debug("\n\n");
|
|
47637
|
+
console.debug("\r\n\r\n");
|
|
47679
47638
|
console.debug(`Loaded Storm config from ${config.configFile}`);
|
|
47680
47639
|
for (const key of Object.keys(configFile)) {
|
|
47681
|
-
console.debug(`
|
|
47640
|
+
console.debug(`
|
|
47641
|
+
----- ${key} ----- `);
|
|
47682
47642
|
console.debug(configFile[key]);
|
|
47683
47643
|
}
|
|
47684
|
-
console.debug("\n\n");
|
|
47644
|
+
console.debug("\r\n\r\n");
|
|
47685
47645
|
return config;
|
|
47686
47646
|
};
|
|
47687
47647
|
|