@storm-software/workspace-tools 1.43.15 → 1.43.17
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 +15 -0
- package/index.js +73 -116
- 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 +73 -116
- package/src/executors/tsup/schema.d.ts +3 -2
- package/src/executors/tsup-browser/executor.js +73 -116
- package/src/executors/tsup-neutral/executor.js +73 -116
- package/src/executors/tsup-neutral/schema.d.ts +2 -5
- package/src/executors/tsup-node/executor.js +73 -116
- 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
|
@@ -16239,14 +16239,14 @@ var require_parse_target_string = __commonJS({
|
|
|
16239
16239
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16240
16240
|
exports.targetToTargetString = exports.parseTargetString = void 0;
|
|
16241
16241
|
var nx_1 = require_nx();
|
|
16242
|
-
var { readCachedProjectGraph, splitTarget, splitByColons } = (0, nx_1.requireNx)();
|
|
16242
|
+
var { readCachedProjectGraph: readCachedProjectGraph2, splitTarget, splitByColons } = (0, nx_1.requireNx)();
|
|
16243
16243
|
splitTarget = splitTarget ?? require("nx/src/utils/split-target").splitTarget;
|
|
16244
16244
|
splitByColons = splitByColons ?? ((s) => s.split(":"));
|
|
16245
16245
|
function parseTargetString(targetString, projectGraphOrCtx) {
|
|
16246
16246
|
let projectGraph = projectGraphOrCtx && "projectGraph" in projectGraphOrCtx ? projectGraphOrCtx.projectGraph : projectGraphOrCtx;
|
|
16247
16247
|
if (!projectGraph) {
|
|
16248
16248
|
try {
|
|
16249
|
-
projectGraph =
|
|
16249
|
+
projectGraph = readCachedProjectGraph2();
|
|
16250
16250
|
} catch (e) {
|
|
16251
16251
|
projectGraph = { nodes: {} };
|
|
16252
16252
|
}
|
|
@@ -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
|
|
|
@@ -137297,29 +137266,19 @@ ${externalDependencies.map((dep) => {
|
|
|
137297
137266
|
}
|
|
137298
137267
|
return ret;
|
|
137299
137268
|
}, {});
|
|
137300
|
-
console.log("Conditional before checking entry points");
|
|
137301
137269
|
if (options.generatePackageJson !== false) {
|
|
137302
|
-
|
|
137303
|
-
const projectGraph = await (0, import_devkit2.createProjectGraphAsync)({
|
|
137304
|
-
exitOnError: true
|
|
137305
|
-
});
|
|
137306
|
-
console.log("Read project graph");
|
|
137270
|
+
const projectGraph = (0, import_devkit2.readCachedProjectGraph)();
|
|
137307
137271
|
packageJson.dependencies = void 0;
|
|
137308
137272
|
for (const externalDependency of externalDependencies) {
|
|
137309
|
-
console.log(externalDependency);
|
|
137310
137273
|
const packageConfig = externalDependency.node.data;
|
|
137311
|
-
if (packageConfig?.packageName && externalDependency.node.type === "npm"
|
|
137312
|
-
console.log("In if statement");
|
|
137313
|
-
console.log(packageConfig);
|
|
137274
|
+
if (packageConfig?.packageName && !!(projectGraph.externalNodes[externalDependency.node.name]?.type === "npm")) {
|
|
137314
137275
|
const { packageName, version } = packageConfig;
|
|
137315
|
-
if (workspacePackageJson.dependencies?.[packageName]
|
|
137316
|
-
|
|
137276
|
+
if (!workspacePackageJson.dependencies?.[packageName] && !workspacePackageJson.devDependencies?.[packageName] && !packageJson?.devDependencies?.[packageName]) {
|
|
137277
|
+
packageJson.dependencies ??= {};
|
|
137278
|
+
packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
|
|
137317
137279
|
}
|
|
137318
|
-
packageJson.dependencies ??= {};
|
|
137319
|
-
packageJson.dependencies[packageName] = projectGraph.nodes[externalDependency.node.name] ? "latest" : version;
|
|
137320
137280
|
}
|
|
137321
137281
|
}
|
|
137322
|
-
console.log("Checking entry points - internalDependencies");
|
|
137323
137282
|
for (const packageName of internalDependencies) {
|
|
137324
137283
|
if (!packageJson?.devDependencies?.[packageName]) {
|
|
137325
137284
|
packageJson.dependencies ??= {};
|
|
@@ -137358,7 +137317,6 @@ ${externalDependencies.map((dep) => {
|
|
|
137358
137317
|
},
|
|
137359
137318
|
"./package.json": "./package.json"
|
|
137360
137319
|
};
|
|
137361
|
-
console.log("Checking entry points - packageJson.exports");
|
|
137362
137320
|
packageJson.exports = Object.keys(entry).reduce((ret, key) => {
|
|
137363
137321
|
let packageJsonKey = key.startsWith("./") ? key : `./${key}`;
|
|
137364
137322
|
packageJsonKey = packageJsonKey.replaceAll("/index", "");
|
|
@@ -137415,7 +137373,6 @@ ${externalDependencies.map((dep) => {
|
|
|
137415
137373
|
packageJson.keywords ??= workspacePackageJson.keywords;
|
|
137416
137374
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
137417
137375
|
packageJson.repository.directory ??= projectRoot ? projectRoot : (0, import_node_path2.join)("packages", context.projectName);
|
|
137418
|
-
console.log("Checking entry points - packageJsonPath");
|
|
137419
137376
|
const packageJsonPath = (0, import_node_path2.join)(context.root, options.outputPath, "package.json");
|
|
137420
137377
|
writeDebug(config, `\u26A1 Writing package.json file to: ${packageJsonPath}`);
|
|
137421
137378
|
(0, import_node_fs2.writeFileSync)(
|
|
@@ -137428,7 +137385,6 @@ ${externalDependencies.map((dep) => {
|
|
|
137428
137385
|
} else {
|
|
137429
137386
|
writeWarning(config, "Skipping writing to package.json file");
|
|
137430
137387
|
}
|
|
137431
|
-
console.log("Checking entry points - options.includeSrc");
|
|
137432
137388
|
if (options.includeSrc === true) {
|
|
137433
137389
|
const files = globSync([
|
|
137434
137390
|
(0, import_devkit2.joinPathFragments)(context.root, options.outputPath, "src/**/*.ts"),
|
|
@@ -137496,11 +137452,12 @@ ${(0, import_node_fs2.readFileSync)(file, "utf-8")}`,
|
|
|
137496
137452
|
js: `${options.banner}
|
|
137497
137453
|
|
|
137498
137454
|
`,
|
|
137499
|
-
css: `/*
|
|
137455
|
+
css: `/*
|
|
137500
137456
|
${options.banner}
|
|
137501
|
-
*/
|
|
137502
137457
|
|
|
137503
|
-
|
|
137458
|
+
|
|
137459
|
+
|
|
137460
|
+
*/`
|
|
137504
137461
|
} : void 0,
|
|
137505
137462
|
outputPath: options.outputPath,
|
|
137506
137463
|
entry,
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { Platform, TsupExecutorSchema } from "../tsup/schema";
|
|
1
|
+
import type { Platform, TsupExecutorSchema } from "../tsup/schema";
|
|
2
2
|
|
|
3
|
-
export type TsupNeutralExecutorSchema = Omit<
|
|
4
|
-
TsupExecutorSchema,
|
|
5
|
-
"env" | "platform"
|
|
6
|
-
> & {
|
|
3
|
+
export type TsupNeutralExecutorSchema = Omit<TsupExecutorSchema, "env" | "platform"> & {
|
|
7
4
|
platform: Platform;
|
|
8
5
|
};
|