@storm-software/workspace-tools 1.42.4 → 1.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/index.js +382 -285
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +362 -265
- package/src/executors/design-tokens/executor.js +235 -131
- package/src/executors/tsup/executor.js +234 -129
- package/src/executors/tsup-browser/executor.js +233 -128
- package/src/executors/tsup-neutral/executor.js +233 -128
- package/src/executors/tsup-node/executor.js +233 -128
- package/src/generators/browser-library/generator.js +251 -149
- package/src/generators/config-schema/generator.js +221 -109
- package/src/generators/neutral-library/generator.js +251 -149
- package/src/generators/node-library/generator.js +251 -149
- package/src/generators/preset/generator.js +220 -108
package/index.js
CHANGED
|
@@ -1974,14 +1974,14 @@ var require_templates = __commonJS({
|
|
|
1974
1974
|
}
|
|
1975
1975
|
return results;
|
|
1976
1976
|
}
|
|
1977
|
-
function buildStyle(
|
|
1977
|
+
function buildStyle(chalk2, styles) {
|
|
1978
1978
|
const enabled = {};
|
|
1979
1979
|
for (const layer of styles) {
|
|
1980
1980
|
for (const style of layer.styles) {
|
|
1981
1981
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
1982
1982
|
}
|
|
1983
1983
|
}
|
|
1984
|
-
let current =
|
|
1984
|
+
let current = chalk2;
|
|
1985
1985
|
for (const styleName of Object.keys(enabled)) {
|
|
1986
1986
|
if (Array.isArray(enabled[styleName])) {
|
|
1987
1987
|
if (!(styleName in current)) {
|
|
@@ -1996,7 +1996,7 @@ var require_templates = __commonJS({
|
|
|
1996
1996
|
}
|
|
1997
1997
|
return current;
|
|
1998
1998
|
}
|
|
1999
|
-
module2.exports = (
|
|
1999
|
+
module2.exports = (chalk2, tmp) => {
|
|
2000
2000
|
const styles = [];
|
|
2001
2001
|
const chunks = [];
|
|
2002
2002
|
let chunk = [];
|
|
@@ -2006,13 +2006,13 @@ var require_templates = __commonJS({
|
|
|
2006
2006
|
} else if (style) {
|
|
2007
2007
|
const str = chunk.join("");
|
|
2008
2008
|
chunk = [];
|
|
2009
|
-
chunks.push(styles.length === 0 ? str : buildStyle(
|
|
2009
|
+
chunks.push(styles.length === 0 ? str : buildStyle(chalk2, styles)(str));
|
|
2010
2010
|
styles.push({ inverse, styles: parseStyle(style) });
|
|
2011
2011
|
} else if (close) {
|
|
2012
2012
|
if (styles.length === 0) {
|
|
2013
2013
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
2014
2014
|
}
|
|
2015
|
-
chunks.push(buildStyle(
|
|
2015
|
+
chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
|
|
2016
2016
|
chunk = [];
|
|
2017
2017
|
styles.pop();
|
|
2018
2018
|
} else {
|
|
@@ -2049,16 +2049,16 @@ var require_chalk = __commonJS({
|
|
|
2049
2049
|
}
|
|
2050
2050
|
function Chalk(options) {
|
|
2051
2051
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
2052
|
-
const
|
|
2053
|
-
applyOptions(
|
|
2054
|
-
|
|
2052
|
+
const chalk2 = {};
|
|
2053
|
+
applyOptions(chalk2, options);
|
|
2054
|
+
chalk2.template = function() {
|
|
2055
2055
|
const args = [].slice.call(arguments);
|
|
2056
|
-
return chalkTag.apply(null, [
|
|
2056
|
+
return chalkTag.apply(null, [chalk2.template].concat(args));
|
|
2057
2057
|
};
|
|
2058
|
-
Object.setPrototypeOf(
|
|
2059
|
-
Object.setPrototypeOf(
|
|
2060
|
-
|
|
2061
|
-
return
|
|
2058
|
+
Object.setPrototypeOf(chalk2, Chalk.prototype);
|
|
2059
|
+
Object.setPrototypeOf(chalk2.template, chalk2);
|
|
2060
|
+
chalk2.template.constructor = Chalk;
|
|
2061
|
+
return chalk2.template;
|
|
2062
2062
|
}
|
|
2063
2063
|
applyOptions(this, options);
|
|
2064
2064
|
}
|
|
@@ -2177,7 +2177,7 @@ var require_chalk = __commonJS({
|
|
|
2177
2177
|
ansiStyles.dim.open = originalDim;
|
|
2178
2178
|
return str;
|
|
2179
2179
|
}
|
|
2180
|
-
function chalkTag(
|
|
2180
|
+
function chalkTag(chalk2, strings) {
|
|
2181
2181
|
if (!Array.isArray(strings)) {
|
|
2182
2182
|
return [].slice.call(arguments, 1).join(" ");
|
|
2183
2183
|
}
|
|
@@ -2187,7 +2187,7 @@ var require_chalk = __commonJS({
|
|
|
2187
2187
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
2188
2188
|
parts.push(String(strings.raw[i]));
|
|
2189
2189
|
}
|
|
2190
|
-
return template(
|
|
2190
|
+
return template(chalk2, parts.join(""));
|
|
2191
2191
|
}
|
|
2192
2192
|
Object.defineProperties(Chalk.prototype, styles);
|
|
2193
2193
|
module2.exports = Chalk();
|
|
@@ -2233,17 +2233,17 @@ var require_lib2 = __commonJS({
|
|
|
2233
2233
|
return n.default = e, t && t.set(e, n), n;
|
|
2234
2234
|
}
|
|
2235
2235
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
2236
|
-
function getDefs(
|
|
2236
|
+
function getDefs(chalk2) {
|
|
2237
2237
|
return {
|
|
2238
|
-
keyword:
|
|
2239
|
-
capitalized:
|
|
2240
|
-
jsxIdentifier:
|
|
2241
|
-
punctuator:
|
|
2242
|
-
number:
|
|
2243
|
-
string:
|
|
2244
|
-
regex:
|
|
2245
|
-
comment:
|
|
2246
|
-
invalid:
|
|
2238
|
+
keyword: chalk2.cyan,
|
|
2239
|
+
capitalized: chalk2.yellow,
|
|
2240
|
+
jsxIdentifier: chalk2.yellow,
|
|
2241
|
+
punctuator: chalk2.yellow,
|
|
2242
|
+
number: chalk2.magenta,
|
|
2243
|
+
string: chalk2.green,
|
|
2244
|
+
regex: chalk2.magenta,
|
|
2245
|
+
comment: chalk2.grey,
|
|
2246
|
+
invalid: chalk2.white.bgRed.bold
|
|
2247
2247
|
};
|
|
2248
2248
|
}
|
|
2249
2249
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -2374,11 +2374,11 @@ var require_lib3 = __commonJS({
|
|
|
2374
2374
|
return _chalk.default;
|
|
2375
2375
|
}
|
|
2376
2376
|
var deprecationWarningShown = false;
|
|
2377
|
-
function getDefs(
|
|
2377
|
+
function getDefs(chalk2) {
|
|
2378
2378
|
return {
|
|
2379
|
-
gutter:
|
|
2380
|
-
marker:
|
|
2381
|
-
message:
|
|
2379
|
+
gutter: chalk2.grey,
|
|
2380
|
+
marker: chalk2.red.bold,
|
|
2381
|
+
message: chalk2.red.bold
|
|
2382
2382
|
};
|
|
2383
2383
|
}
|
|
2384
2384
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -2440,8 +2440,8 @@ var require_lib3 = __commonJS({
|
|
|
2440
2440
|
}
|
|
2441
2441
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
2442
2442
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
2443
|
-
const
|
|
2444
|
-
const defs = getDefs(
|
|
2443
|
+
const chalk2 = getChalk(opts.forceColor);
|
|
2444
|
+
const defs = getDefs(chalk2);
|
|
2445
2445
|
const maybeHighlight = (chalkFn, string) => {
|
|
2446
2446
|
return highlighted ? chalkFn(string) : string;
|
|
2447
2447
|
};
|
|
@@ -2480,7 +2480,7 @@ var require_lib3 = __commonJS({
|
|
|
2480
2480
|
${frame}`;
|
|
2481
2481
|
}
|
|
2482
2482
|
if (highlighted) {
|
|
2483
|
-
return
|
|
2483
|
+
return chalk2.reset(frame);
|
|
2484
2484
|
} else {
|
|
2485
2485
|
return frame;
|
|
2486
2486
|
}
|
|
@@ -7794,14 +7794,14 @@ var require_templates2 = __commonJS({
|
|
|
7794
7794
|
}
|
|
7795
7795
|
return results;
|
|
7796
7796
|
}
|
|
7797
|
-
function buildStyle(
|
|
7797
|
+
function buildStyle(chalk2, styles) {
|
|
7798
7798
|
const enabled = {};
|
|
7799
7799
|
for (const layer of styles) {
|
|
7800
7800
|
for (const style of layer.styles) {
|
|
7801
7801
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
7802
7802
|
}
|
|
7803
7803
|
}
|
|
7804
|
-
let current =
|
|
7804
|
+
let current = chalk2;
|
|
7805
7805
|
for (const [styleName, styles2] of Object.entries(enabled)) {
|
|
7806
7806
|
if (!Array.isArray(styles2)) {
|
|
7807
7807
|
continue;
|
|
@@ -7813,7 +7813,7 @@ var require_templates2 = __commonJS({
|
|
|
7813
7813
|
}
|
|
7814
7814
|
return current;
|
|
7815
7815
|
}
|
|
7816
|
-
module2.exports = (
|
|
7816
|
+
module2.exports = (chalk2, temporary) => {
|
|
7817
7817
|
const styles = [];
|
|
7818
7818
|
const chunks = [];
|
|
7819
7819
|
let chunk = [];
|
|
@@ -7823,13 +7823,13 @@ var require_templates2 = __commonJS({
|
|
|
7823
7823
|
} else if (style) {
|
|
7824
7824
|
const string = chunk.join("");
|
|
7825
7825
|
chunk = [];
|
|
7826
|
-
chunks.push(styles.length === 0 ? string : buildStyle(
|
|
7826
|
+
chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
|
|
7827
7827
|
styles.push({ inverse, styles: parseStyle(style) });
|
|
7828
7828
|
} else if (close) {
|
|
7829
7829
|
if (styles.length === 0) {
|
|
7830
7830
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
7831
7831
|
}
|
|
7832
|
-
chunks.push(buildStyle(
|
|
7832
|
+
chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
|
|
7833
7833
|
chunk = [];
|
|
7834
7834
|
styles.pop();
|
|
7835
7835
|
} else {
|
|
@@ -7877,16 +7877,16 @@ var require_source = __commonJS({
|
|
|
7877
7877
|
}
|
|
7878
7878
|
};
|
|
7879
7879
|
var chalkFactory = (options) => {
|
|
7880
|
-
const
|
|
7881
|
-
applyOptions(
|
|
7882
|
-
|
|
7883
|
-
Object.setPrototypeOf(
|
|
7884
|
-
Object.setPrototypeOf(
|
|
7885
|
-
|
|
7880
|
+
const chalk3 = {};
|
|
7881
|
+
applyOptions(chalk3, options);
|
|
7882
|
+
chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
|
|
7883
|
+
Object.setPrototypeOf(chalk3, Chalk.prototype);
|
|
7884
|
+
Object.setPrototypeOf(chalk3.template, chalk3);
|
|
7885
|
+
chalk3.template.constructor = () => {
|
|
7886
7886
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
7887
7887
|
};
|
|
7888
|
-
|
|
7889
|
-
return
|
|
7888
|
+
chalk3.template.Instance = ChalkClass;
|
|
7889
|
+
return chalk3.template;
|
|
7890
7890
|
};
|
|
7891
7891
|
function Chalk(options) {
|
|
7892
7892
|
return chalkFactory(options);
|
|
@@ -7997,7 +7997,7 @@ var require_source = __commonJS({
|
|
|
7997
7997
|
return openAll + string + closeAll;
|
|
7998
7998
|
};
|
|
7999
7999
|
var template;
|
|
8000
|
-
var chalkTag = (
|
|
8000
|
+
var chalkTag = (chalk3, ...strings) => {
|
|
8001
8001
|
const [firstString] = strings;
|
|
8002
8002
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
8003
8003
|
return strings.join(" ");
|
|
@@ -8013,14 +8013,14 @@ var require_source = __commonJS({
|
|
|
8013
8013
|
if (template === void 0) {
|
|
8014
8014
|
template = require_templates2();
|
|
8015
8015
|
}
|
|
8016
|
-
return template(
|
|
8016
|
+
return template(chalk3, parts.join(""));
|
|
8017
8017
|
};
|
|
8018
8018
|
Object.defineProperties(Chalk.prototype, styles);
|
|
8019
|
-
var
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
module2.exports =
|
|
8019
|
+
var chalk2 = Chalk();
|
|
8020
|
+
chalk2.supportsColor = stdoutColor;
|
|
8021
|
+
chalk2.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
8022
|
+
chalk2.stderr.supportsColor = stderrColor;
|
|
8023
|
+
module2.exports = chalk2;
|
|
8024
8024
|
}
|
|
8025
8025
|
});
|
|
8026
8026
|
|
|
@@ -24150,14 +24150,14 @@ var require_share = __commonJS({
|
|
|
24150
24150
|
resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();
|
|
24151
24151
|
resetConnection = void 0;
|
|
24152
24152
|
};
|
|
24153
|
-
var
|
|
24153
|
+
var reset2 = function() {
|
|
24154
24154
|
cancelReset();
|
|
24155
24155
|
connection = subject = void 0;
|
|
24156
24156
|
hasCompleted = hasErrored = false;
|
|
24157
24157
|
};
|
|
24158
24158
|
var resetAndUnsubscribe = function() {
|
|
24159
24159
|
var conn = connection;
|
|
24160
|
-
|
|
24160
|
+
reset2();
|
|
24161
24161
|
conn === null || conn === void 0 ? void 0 : conn.unsubscribe();
|
|
24162
24162
|
};
|
|
24163
24163
|
return lift_1.operate(function(source, subscriber) {
|
|
@@ -24181,13 +24181,13 @@ var require_share = __commonJS({
|
|
|
24181
24181
|
error: function(err) {
|
|
24182
24182
|
hasErrored = true;
|
|
24183
24183
|
cancelReset();
|
|
24184
|
-
resetConnection = handleReset(
|
|
24184
|
+
resetConnection = handleReset(reset2, resetOnError, err);
|
|
24185
24185
|
dest.error(err);
|
|
24186
24186
|
},
|
|
24187
24187
|
complete: function() {
|
|
24188
24188
|
hasCompleted = true;
|
|
24189
24189
|
cancelReset();
|
|
24190
|
-
resetConnection = handleReset(
|
|
24190
|
+
resetConnection = handleReset(reset2, resetOnComplete);
|
|
24191
24191
|
dest.complete();
|
|
24192
24192
|
}
|
|
24193
24193
|
});
|
|
@@ -24197,13 +24197,13 @@ var require_share = __commonJS({
|
|
|
24197
24197
|
};
|
|
24198
24198
|
}
|
|
24199
24199
|
exports.share = share;
|
|
24200
|
-
function handleReset(
|
|
24200
|
+
function handleReset(reset2, on) {
|
|
24201
24201
|
var args = [];
|
|
24202
24202
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
24203
24203
|
args[_i - 2] = arguments[_i];
|
|
24204
24204
|
}
|
|
24205
24205
|
if (on === true) {
|
|
24206
|
-
|
|
24206
|
+
reset2();
|
|
24207
24207
|
return;
|
|
24208
24208
|
}
|
|
24209
24209
|
if (on === false) {
|
|
@@ -24212,7 +24212,7 @@ var require_share = __commonJS({
|
|
|
24212
24212
|
var onSubscriber = new Subscriber_1.SafeSubscriber({
|
|
24213
24213
|
next: function() {
|
|
24214
24214
|
onSubscriber.unsubscribe();
|
|
24215
|
-
|
|
24215
|
+
reset2();
|
|
24216
24216
|
}
|
|
24217
24217
|
});
|
|
24218
24218
|
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
|
+
reset2(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 reset2(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 reset2(prompt, choices) {
|
|
28452
28452
|
if (choices instanceof Promise)
|
|
28453
28453
|
return choices;
|
|
28454
28454
|
if (typeof choices === "function") {
|
|
@@ -31283,20 +31283,20 @@ var require_highlight = __commonJS({
|
|
|
31283
31283
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31284
31284
|
exports.highlight = void 0;
|
|
31285
31285
|
var jsTokens = require_js_tokens();
|
|
31286
|
-
var
|
|
31286
|
+
var chalk2 = require_source();
|
|
31287
31287
|
var identifiers_1 = require_identifiers2();
|
|
31288
|
-
function getDefs(
|
|
31288
|
+
function getDefs(chalk3) {
|
|
31289
31289
|
return {
|
|
31290
|
-
keyword:
|
|
31291
|
-
capitalized:
|
|
31292
|
-
jsx_tag:
|
|
31293
|
-
punctuator:
|
|
31290
|
+
keyword: chalk3.cyan,
|
|
31291
|
+
capitalized: chalk3.yellow,
|
|
31292
|
+
jsx_tag: chalk3.yellow,
|
|
31293
|
+
punctuator: chalk3.yellow,
|
|
31294
31294
|
// bracket: intentionally omitted.
|
|
31295
|
-
number:
|
|
31296
|
-
string:
|
|
31297
|
-
regex:
|
|
31298
|
-
comment:
|
|
31299
|
-
invalid:
|
|
31295
|
+
number: chalk3.magenta,
|
|
31296
|
+
string: chalk3.green,
|
|
31297
|
+
regex: chalk3.magenta,
|
|
31298
|
+
comment: chalk3.grey,
|
|
31299
|
+
invalid: chalk3.white.bgRed.bold
|
|
31300
31300
|
};
|
|
31301
31301
|
}
|
|
31302
31302
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -31336,7 +31336,7 @@ var require_highlight = __commonJS({
|
|
|
31336
31336
|
});
|
|
31337
31337
|
}
|
|
31338
31338
|
function highlight(code) {
|
|
31339
|
-
const defs = getDefs(
|
|
31339
|
+
const defs = getDefs(chalk2);
|
|
31340
31340
|
return highlightTokens(defs, code);
|
|
31341
31341
|
}
|
|
31342
31342
|
exports.highlight = highlight;
|
|
@@ -31449,7 +31449,7 @@ var require_run_type_check = __commonJS({
|
|
|
31449
31449
|
"use strict";
|
|
31450
31450
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31451
31451
|
exports.getFormattedDiagnostic = exports.runTypeCheck = exports.runTypeCheckWatch = void 0;
|
|
31452
|
-
var
|
|
31452
|
+
var chalk2 = require_source();
|
|
31453
31453
|
var path3 = require("path");
|
|
31454
31454
|
var code_frames_1 = require("nx/src/utils/code-frames");
|
|
31455
31455
|
var highlight_1 = require_highlight();
|
|
@@ -31529,17 +31529,17 @@ var require_run_type_check = __commonJS({
|
|
|
31529
31529
|
const category = diagnostic.category;
|
|
31530
31530
|
switch (category) {
|
|
31531
31531
|
case ts2.DiagnosticCategory.Warning: {
|
|
31532
|
-
message += `${
|
|
31532
|
+
message += `${chalk2.yellow.bold("warning")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
|
|
31533
31533
|
break;
|
|
31534
31534
|
}
|
|
31535
31535
|
case ts2.DiagnosticCategory.Error: {
|
|
31536
|
-
message += `${
|
|
31536
|
+
message += `${chalk2.red.bold("error")} ${chalk2.gray(`TS${diagnostic.code}`)}: `;
|
|
31537
31537
|
break;
|
|
31538
31538
|
}
|
|
31539
31539
|
case ts2.DiagnosticCategory.Suggestion:
|
|
31540
31540
|
case ts2.DiagnosticCategory.Message:
|
|
31541
31541
|
default: {
|
|
31542
|
-
message += `${
|
|
31542
|
+
message += `${chalk2.cyan.bold(category === 2 ? "suggestion" : "info")}: `;
|
|
31543
31543
|
break;
|
|
31544
31544
|
}
|
|
31545
31545
|
}
|
|
@@ -31549,7 +31549,7 @@ var require_run_type_check = __commonJS({
|
|
|
31549
31549
|
const line = pos.line + 1;
|
|
31550
31550
|
const column = pos.character + 1;
|
|
31551
31551
|
const fileName = path3.relative(workspaceRoot, diagnostic.file.fileName);
|
|
31552
|
-
message = `${
|
|
31552
|
+
message = `${chalk2.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
|
|
31553
31553
|
const code = diagnostic.file.getFullText(diagnostic.file.getSourceFile());
|
|
31554
31554
|
message += "\n" + (0, code_frames_1.codeFrameColumns)(code, {
|
|
31555
31555
|
start: { line, column }
|
|
@@ -46796,11 +46796,11 @@ var require_chunk_UIX4URMV = __commonJS({
|
|
|
46796
46796
|
blackBright: () => blackBright,
|
|
46797
46797
|
blue: () => blue,
|
|
46798
46798
|
blueBright: () => blueBright,
|
|
46799
|
-
bold: () =>
|
|
46799
|
+
bold: () => bold2,
|
|
46800
46800
|
createColors: () => createColors,
|
|
46801
46801
|
cyan: () => cyan,
|
|
46802
46802
|
cyanBright: () => cyanBright,
|
|
46803
|
-
dim: () =>
|
|
46803
|
+
dim: () => dim2,
|
|
46804
46804
|
gray: () => gray,
|
|
46805
46805
|
green: () => green,
|
|
46806
46806
|
greenBright: () => greenBright,
|
|
@@ -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: () => reset2,
|
|
46816
46816
|
strikethrough: () => strikethrough,
|
|
46817
46817
|
underline: () => underline,
|
|
46818
46818
|
white: () => white,
|
|
@@ -46889,9 +46889,9 @@ var require_chunk_UIX4URMV = __commonJS({
|
|
|
46889
46889
|
{}
|
|
46890
46890
|
);
|
|
46891
46891
|
var {
|
|
46892
|
-
reset,
|
|
46893
|
-
bold:
|
|
46894
|
-
dim:
|
|
46892
|
+
reset: reset2,
|
|
46893
|
+
bold: bold2,
|
|
46894
|
+
dim: dim2,
|
|
46895
46895
|
italic,
|
|
46896
46896
|
underline,
|
|
46897
46897
|
inverse,
|
|
@@ -46945,7 +46945,7 @@ var require_chunk_UIX4URMV = __commonJS({
|
|
|
46945
46945
|
function handleError(error) {
|
|
46946
46946
|
if (error.loc) {
|
|
46947
46947
|
console.error(
|
|
46948
|
-
|
|
46948
|
+
bold2(
|
|
46949
46949
|
red(
|
|
46950
46950
|
`Error parsing: ${error.loc.file}:${error.loc.line}:${error.loc.column}`
|
|
46951
46951
|
)
|
|
@@ -46954,7 +46954,7 @@ var require_chunk_UIX4URMV = __commonJS({
|
|
|
46954
46954
|
}
|
|
46955
46955
|
if (error.frame) {
|
|
46956
46956
|
console.error(red(error.message));
|
|
46957
|
-
console.error(
|
|
46957
|
+
console.error(dim2(error.frame));
|
|
46958
46958
|
} else {
|
|
46959
46959
|
if (error instanceof PrettyError) {
|
|
46960
46960
|
console.error(red(error.message));
|
|
@@ -46967,8 +46967,8 @@ var require_chunk_UIX4URMV = __commonJS({
|
|
|
46967
46967
|
_worker_threads.parentPort.postMessage("error");
|
|
46968
46968
|
}
|
|
46969
46969
|
}
|
|
46970
|
-
exports.bold =
|
|
46971
|
-
exports.dim =
|
|
46970
|
+
exports.bold = bold2;
|
|
46971
|
+
exports.dim = dim2;
|
|
46972
46972
|
exports.green = green;
|
|
46973
46973
|
exports.colorette_exports = colorette_exports;
|
|
46974
46974
|
exports.PrettyError = PrettyError;
|
|
@@ -78733,7 +78733,7 @@ var require_rollup = __commonJS({
|
|
|
78733
78733
|
{}
|
|
78734
78734
|
);
|
|
78735
78735
|
var {
|
|
78736
|
-
reset,
|
|
78736
|
+
reset: reset2,
|
|
78737
78737
|
bold: bold$1,
|
|
78738
78738
|
dim: dim$1,
|
|
78739
78739
|
italic,
|
|
@@ -78775,7 +78775,7 @@ var require_rollup = __commonJS({
|
|
|
78775
78775
|
bgCyanBright,
|
|
78776
78776
|
bgWhiteBright
|
|
78777
78777
|
} = createColors();
|
|
78778
|
-
var { bold:
|
|
78778
|
+
var { bold: bold2, cyan, dim: dim2, gray, green, red, underline, yellow } = createColors({
|
|
78779
78779
|
useColor: process$1.env.FORCE_COLOR !== "0" && !process$1.env.NO_COLOR
|
|
78780
78780
|
});
|
|
78781
78781
|
var stderr = (...parameters) => process$1.stderr.write(`${parameters.join("")}
|
|
@@ -78785,7 +78785,7 @@ var require_rollup = __commonJS({
|
|
|
78785
78785
|
const nameSection = name ? `${name}: ` : "";
|
|
78786
78786
|
const pluginSection = error.plugin ? `(plugin ${error.plugin}) ` : "";
|
|
78787
78787
|
const message = `${pluginSection}${nameSection}${error.message}`;
|
|
78788
|
-
const outputLines = [
|
|
78788
|
+
const outputLines = [bold2(red(`[!] ${bold2(message.toString())}`))];
|
|
78789
78789
|
if (error.url) {
|
|
78790
78790
|
outputLines.push(cyan(error.url));
|
|
78791
78791
|
}
|
|
@@ -78795,10 +78795,10 @@ var require_rollup = __commonJS({
|
|
|
78795
78795
|
outputLines.push(parseAst_js.relativeId(error.id));
|
|
78796
78796
|
}
|
|
78797
78797
|
if (error.frame) {
|
|
78798
|
-
outputLines.push(
|
|
78798
|
+
outputLines.push(dim2(error.frame));
|
|
78799
78799
|
}
|
|
78800
78800
|
if (error.stack) {
|
|
78801
|
-
outputLines.push(
|
|
78801
|
+
outputLines.push(dim2(error.stack?.replace(`${nameSection}${error.message}
|
|
78802
78802
|
`, "")));
|
|
78803
78803
|
}
|
|
78804
78804
|
outputLines.push("", "");
|
|
@@ -93603,19 +93603,19 @@ ${outro}`;
|
|
|
93603
93603
|
function keep(key, value) {
|
|
93604
93604
|
if (++num > limit) {
|
|
93605
93605
|
prev = curr;
|
|
93606
|
-
|
|
93606
|
+
reset3(1);
|
|
93607
93607
|
++num;
|
|
93608
93608
|
}
|
|
93609
93609
|
curr[key] = value;
|
|
93610
93610
|
}
|
|
93611
|
-
function
|
|
93611
|
+
function reset3(isPartial) {
|
|
93612
93612
|
num = 0;
|
|
93613
93613
|
curr = /* @__PURE__ */ Object.create(null);
|
|
93614
93614
|
isPartial || (prev = /* @__PURE__ */ Object.create(null));
|
|
93615
93615
|
}
|
|
93616
|
-
|
|
93616
|
+
reset3();
|
|
93617
93617
|
return {
|
|
93618
|
-
clear:
|
|
93618
|
+
clear: reset3,
|
|
93619
93619
|
has: function(key) {
|
|
93620
93620
|
return curr[key] !== void 0 || prev[key] !== void 0;
|
|
93621
93621
|
},
|
|
@@ -95003,7 +95003,7 @@ ${outro}`;
|
|
|
95003
95003
|
return options;
|
|
95004
95004
|
}
|
|
95005
95005
|
exports.blue = blue;
|
|
95006
|
-
exports.bold =
|
|
95006
|
+
exports.bold = bold2;
|
|
95007
95007
|
exports.commandAliases = commandAliases;
|
|
95008
95008
|
exports.createFilter = createFilter;
|
|
95009
95009
|
exports.cyan = cyan$1;
|
|
@@ -126395,6 +126395,7 @@ var LogLevel = {
|
|
|
126395
126395
|
ERROR: 20,
|
|
126396
126396
|
WARN: 30,
|
|
126397
126397
|
INFO: 40,
|
|
126398
|
+
SUCCESS: 45,
|
|
126398
126399
|
DEBUG: 60,
|
|
126399
126400
|
TRACE: 70,
|
|
126400
126401
|
ALL: 100
|
|
@@ -130192,6 +130193,8 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
130192
130193
|
// packages/config-tools/src/utilities/get-log-level.ts
|
|
130193
130194
|
var getLogLevel = (label) => {
|
|
130194
130195
|
switch (label) {
|
|
130196
|
+
case "all":
|
|
130197
|
+
return LogLevel.ALL;
|
|
130195
130198
|
case "trace":
|
|
130196
130199
|
return LogLevel.TRACE;
|
|
130197
130200
|
case "debug":
|
|
@@ -130211,6 +130214,9 @@ var getLogLevel = (label) => {
|
|
|
130211
130214
|
}
|
|
130212
130215
|
};
|
|
130213
130216
|
var getLogLevelLabel = (logLevel) => {
|
|
130217
|
+
if (logLevel >= LogLevel.ALL) {
|
|
130218
|
+
return LogLevelLabel.ALL;
|
|
130219
|
+
}
|
|
130214
130220
|
if (logLevel >= LogLevel.TRACE) {
|
|
130215
130221
|
return LogLevelLabel.TRACE;
|
|
130216
130222
|
}
|
|
@@ -130235,71 +130241,100 @@ var getLogLevelLabel = (logLevel) => {
|
|
|
130235
130241
|
return LogLevelLabel.INFO;
|
|
130236
130242
|
};
|
|
130237
130243
|
|
|
130238
|
-
// packages/config-tools/src/
|
|
130239
|
-
var
|
|
130240
|
-
|
|
130241
|
-
|
|
130242
|
-
|
|
130243
|
-
if (name) {
|
|
130244
|
-
ret[name] = process.env[key];
|
|
130245
|
-
}
|
|
130246
|
-
return ret;
|
|
130247
|
-
}, {});
|
|
130248
|
-
};
|
|
130249
|
-
var getConfigEnv = () => {
|
|
130250
|
-
const prefix = "STORM_";
|
|
130251
|
-
let config = {
|
|
130252
|
-
name: process.env[`${prefix}NAME`],
|
|
130253
|
-
namespace: process.env[`${prefix}NAMESPACE`],
|
|
130254
|
-
owner: process.env[`${prefix}OWNER`],
|
|
130255
|
-
worker: process.env[`${prefix}WORKER`],
|
|
130256
|
-
organization: process.env[`${prefix}ORGANIZATION`],
|
|
130257
|
-
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
130258
|
-
license: process.env[`${prefix}LICENSE`],
|
|
130259
|
-
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
130260
|
-
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
130261
|
-
locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
|
|
130262
|
-
configFile: process.env[`${prefix}CONFIG_FILE`],
|
|
130263
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
|
|
130264
|
-
packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
|
|
130265
|
-
buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
|
|
130266
|
-
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
130267
|
-
runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
|
|
130268
|
-
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
130269
|
-
ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
|
|
130270
|
-
colors: {
|
|
130271
|
-
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
130272
|
-
background: process.env[`${prefix}COLOR_BACKGROUND`],
|
|
130273
|
-
success: process.env[`${prefix}COLOR_SUCCESS`],
|
|
130274
|
-
info: process.env[`${prefix}COLOR_INFO`],
|
|
130275
|
-
warning: process.env[`${prefix}COLOR_WARNING`],
|
|
130276
|
-
error: process.env[`${prefix}COLOR_ERROR`],
|
|
130277
|
-
fatal: process.env[`${prefix}COLOR_FATAL`]
|
|
130278
|
-
},
|
|
130279
|
-
repository: process.env[`${prefix}REPOSITORY`],
|
|
130280
|
-
branch: process.env[`${prefix}BRANCH`],
|
|
130281
|
-
preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
|
|
130282
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
|
|
130283
|
-
extensions: {}
|
|
130284
|
-
};
|
|
130285
|
-
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
130286
|
-
if (serializedConfig) {
|
|
130287
|
-
const parsed = JSON.parse(serializedConfig);
|
|
130288
|
-
config = {
|
|
130289
|
-
...config,
|
|
130290
|
-
...parsed,
|
|
130291
|
-
colors: { ...config.colors, ...parsed.colors },
|
|
130292
|
-
extensions: { ...config.extensions, ...parsed.extensions }
|
|
130244
|
+
// packages/config-tools/src/utilities/logger.ts
|
|
130245
|
+
var chalk = __toESM(require_source(), 1);
|
|
130246
|
+
var getLogFn = (config = {}, logLevel = LogLevel.INFO) => {
|
|
130247
|
+
if (typeof logLevel === "number" && (logLevel >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(config.logLevel ?? process.env?.STORM_LOG_LEVEL)) {
|
|
130248
|
+
return (_) => {
|
|
130293
130249
|
};
|
|
130294
130250
|
}
|
|
130295
|
-
|
|
130296
|
-
|
|
130297
|
-
|
|
130298
|
-
|
|
130299
|
-
|
|
130300
|
-
|
|
130301
|
-
|
|
130302
|
-
|
|
130251
|
+
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
130252
|
+
return (message) => {
|
|
130253
|
+
console.error(
|
|
130254
|
+
` ${chalk.bold.bgHex(config?.colors?.fatal ? config.colors.fatal : "#1fb2a6").inverse("\n\n \u{1F480} Fatal ")} ${chalk.reset.hex(
|
|
130255
|
+
config?.colors?.fatal ? config.colors.fatal : "#1fb2a6"
|
|
130256
|
+
)(message)}
|
|
130257
|
+
`
|
|
130258
|
+
);
|
|
130259
|
+
};
|
|
130260
|
+
}
|
|
130261
|
+
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
130262
|
+
return (message) => {
|
|
130263
|
+
console.error(
|
|
130264
|
+
` ${chalk.bold.bgHex(config?.colors?.error ? config.colors.error : "#7d1a1a").inverse("\n\n \u{1F6D1} Error ")} ${chalk.reset.hex(
|
|
130265
|
+
config?.colors?.error ? config.colors.error : "#7d1a1a"
|
|
130266
|
+
)(message)}
|
|
130267
|
+
`
|
|
130268
|
+
);
|
|
130269
|
+
};
|
|
130270
|
+
}
|
|
130271
|
+
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
130272
|
+
return (message) => {
|
|
130273
|
+
console.warn(
|
|
130274
|
+
` ${chalk.bold.bgHex(config?.colors?.warning ? config.colors.warning : "#fcc419").inverse("\n\n \u26A0\uFE0F Warn ")} ${chalk.reset.hex(
|
|
130275
|
+
config?.colors?.warning ? config.colors.warning : "#fcc419"
|
|
130276
|
+
)(message)}
|
|
130277
|
+
`
|
|
130278
|
+
);
|
|
130279
|
+
};
|
|
130280
|
+
}
|
|
130281
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
130282
|
+
return (message) => {
|
|
130283
|
+
console.info(
|
|
130284
|
+
` ${chalk.bold.bgHex(config?.colors?.info ? config.colors.info : "#0ea5e9").inverse("\n\n \u{1F4EC} Info ")} ${chalk.reset.hex(
|
|
130285
|
+
config?.colors?.info ? config.colors.info : "#0ea5e9"
|
|
130286
|
+
)(message)}
|
|
130287
|
+
`
|
|
130288
|
+
);
|
|
130289
|
+
};
|
|
130290
|
+
}
|
|
130291
|
+
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
130292
|
+
return (message) => {
|
|
130293
|
+
console.info(
|
|
130294
|
+
` ${chalk.bold.bgHex(config?.colors?.success ? config.colors.success : "#087f5b").inverse("\n\n \u{1F389} Success ")} ${chalk.reset.hex(
|
|
130295
|
+
config?.colors?.success ? config.colors.success : "#087f5b"
|
|
130296
|
+
)(message)}
|
|
130297
|
+
`
|
|
130298
|
+
);
|
|
130299
|
+
};
|
|
130300
|
+
}
|
|
130301
|
+
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
130302
|
+
return (message) => {
|
|
130303
|
+
console.debug(
|
|
130304
|
+
` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").inverse("\n\n \u{1F9EA} Debug ")} ${chalk.reset.hex(
|
|
130305
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
130306
|
+
)(message)}
|
|
130307
|
+
`
|
|
130308
|
+
);
|
|
130309
|
+
};
|
|
130310
|
+
}
|
|
130311
|
+
return (message) => {
|
|
130312
|
+
console.log(
|
|
130313
|
+
` ${chalk.bold.bgHex(config?.colors?.primary ? config.colors.primary : "#1fb2a6").inverse("\n\n \u{1F4E2} System ")} ${chalk.bold.hex(
|
|
130314
|
+
config?.colors?.primary ? config.colors.primary : "#1fb2a6"
|
|
130315
|
+
)(message)}
|
|
130316
|
+
`
|
|
130317
|
+
);
|
|
130318
|
+
};
|
|
130319
|
+
};
|
|
130320
|
+
var writeFatal = (config, message) => getLogFn(config, LogLevel.FATAL)(message);
|
|
130321
|
+
var writeError = (config, message) => getLogFn(config, LogLevel.ERROR)(message);
|
|
130322
|
+
var writeInfo = (config, message) => getLogFn(config, LogLevel.INFO)(message);
|
|
130323
|
+
var writeSuccess = (config, message) => getLogFn(config, LogLevel.SUCCESS)(message);
|
|
130324
|
+
var writeDebug = (config, message) => getLogFn(config, LogLevel.DEBUG)(message);
|
|
130325
|
+
var writeTrace = (config, message) => getLogFn(config, LogLevel.TRACE)(message);
|
|
130326
|
+
var getStopwatch = (name) => {
|
|
130327
|
+
const start = process.hrtime();
|
|
130328
|
+
return () => {
|
|
130329
|
+
const end = process.hrtime(start);
|
|
130330
|
+
console.info(
|
|
130331
|
+
chalk.dim(
|
|
130332
|
+
`\u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
|
|
130333
|
+
end[0] * 1e3 + end[1] / 1e6
|
|
130334
|
+
)}ms to complete`
|
|
130335
|
+
)
|
|
130336
|
+
);
|
|
130337
|
+
};
|
|
130303
130338
|
};
|
|
130304
130339
|
|
|
130305
130340
|
// packages/config-tools/src/env/set-env.ts
|
|
@@ -130436,8 +130471,82 @@ var setConfigEnv = (config) => {
|
|
|
130436
130471
|
}
|
|
130437
130472
|
};
|
|
130438
130473
|
|
|
130439
|
-
// packages/
|
|
130440
|
-
var
|
|
130474
|
+
// packages/config-tools/src/utilities/prepare-workspace.ts
|
|
130475
|
+
var prepareWorkspace = async () => {
|
|
130476
|
+
const _STORM_CONFIG = getDefaultConfig({
|
|
130477
|
+
...await getConfigFile(),
|
|
130478
|
+
...getConfigEnv()
|
|
130479
|
+
});
|
|
130480
|
+
setConfigEnv(_STORM_CONFIG);
|
|
130481
|
+
return _STORM_CONFIG;
|
|
130482
|
+
};
|
|
130483
|
+
|
|
130484
|
+
// packages/config-tools/src/env/get-env.ts
|
|
130485
|
+
var getExtensionEnv = (extensionName) => {
|
|
130486
|
+
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
130487
|
+
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
130488
|
+
const name = key.replace(prefix, "").split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
130489
|
+
if (name) {
|
|
130490
|
+
ret[name] = process.env[key];
|
|
130491
|
+
}
|
|
130492
|
+
return ret;
|
|
130493
|
+
}, {});
|
|
130494
|
+
};
|
|
130495
|
+
var getConfigEnv = () => {
|
|
130496
|
+
const prefix = "STORM_";
|
|
130497
|
+
let config = {
|
|
130498
|
+
name: process.env[`${prefix}NAME`],
|
|
130499
|
+
namespace: process.env[`${prefix}NAMESPACE`],
|
|
130500
|
+
owner: process.env[`${prefix}OWNER`],
|
|
130501
|
+
worker: process.env[`${prefix}WORKER`],
|
|
130502
|
+
organization: process.env[`${prefix}ORGANIZATION`],
|
|
130503
|
+
packageManager: process.env[`${prefix}PACKAGE_MANAGER`],
|
|
130504
|
+
license: process.env[`${prefix}LICENSE`],
|
|
130505
|
+
homepage: process.env[`${prefix}HOMEPAGE`],
|
|
130506
|
+
timezone: process.env[`${prefix}TIMEZONE`] ?? process.env.TZ,
|
|
130507
|
+
locale: process.env[`${prefix}LOCALE`] ?? process.env.LOCALE,
|
|
130508
|
+
configFile: process.env[`${prefix}CONFIG_FILE`],
|
|
130509
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`],
|
|
130510
|
+
packageDirectory: process.env[`${prefix}PACKAGE_DIRECTORY`],
|
|
130511
|
+
buildDirectory: process.env[`${prefix}BUILD_DIRECTORY`],
|
|
130512
|
+
runtimeVersion: process.env[`${prefix}RUNTIME_VERSION`],
|
|
130513
|
+
runtimeDirectory: process.env[`${prefix}RUNTIME_DIRECTORY`],
|
|
130514
|
+
env: process.env[`${prefix}ENV`] ?? process.env.NODE_ENV ?? process.env.ENVIRONMENT,
|
|
130515
|
+
ci: Boolean(process.env[`${prefix}CI`] ?? process.env.CI ?? process.env.CONTINUOUS_INTEGRATION),
|
|
130516
|
+
colors: {
|
|
130517
|
+
primary: process.env[`${prefix}COLOR_PRIMARY`],
|
|
130518
|
+
background: process.env[`${prefix}COLOR_BACKGROUND`],
|
|
130519
|
+
success: process.env[`${prefix}COLOR_SUCCESS`],
|
|
130520
|
+
info: process.env[`${prefix}COLOR_INFO`],
|
|
130521
|
+
warning: process.env[`${prefix}COLOR_WARNING`],
|
|
130522
|
+
error: process.env[`${prefix}COLOR_ERROR`],
|
|
130523
|
+
fatal: process.env[`${prefix}COLOR_FATAL`]
|
|
130524
|
+
},
|
|
130525
|
+
repository: process.env[`${prefix}REPOSITORY`],
|
|
130526
|
+
branch: process.env[`${prefix}BRANCH`],
|
|
130527
|
+
preMajor: Boolean(process.env[`${prefix}PRE_MAJOR`]),
|
|
130528
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : LogLevelLabel.INFO,
|
|
130529
|
+
extensions: {}
|
|
130530
|
+
};
|
|
130531
|
+
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
130532
|
+
if (serializedConfig) {
|
|
130533
|
+
const parsed = JSON.parse(serializedConfig);
|
|
130534
|
+
config = {
|
|
130535
|
+
...config,
|
|
130536
|
+
...parsed,
|
|
130537
|
+
colors: { ...config.colors, ...parsed.colors },
|
|
130538
|
+
extensions: { ...config.extensions, ...parsed.extensions }
|
|
130539
|
+
};
|
|
130540
|
+
}
|
|
130541
|
+
const extensionPrefix = `${prefix}EXTENSION_`;
|
|
130542
|
+
return Object.keys(process.env).filter((key) => key.startsWith(extensionPrefix)).reduce((ret, key) => {
|
|
130543
|
+
const extensionName = key.substring(prefix.length, key.indexOf("_", prefix.length)).split("_").map((i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : "").join("");
|
|
130544
|
+
if (extensionName) {
|
|
130545
|
+
ret.extensions[extensionName] = getExtensionEnv(extensionName);
|
|
130546
|
+
}
|
|
130547
|
+
return ret;
|
|
130548
|
+
}, config);
|
|
130549
|
+
};
|
|
130441
130550
|
|
|
130442
130551
|
// packages/workspace-tools/src/utils/get-workspace-root.ts
|
|
130443
130552
|
var import_find_workspace_root2 = require("nx/src/utils/find-workspace-root.js");
|
|
@@ -130552,12 +130661,12 @@ var applyWorkspaceTokens = (options, config, tokenizerFn) => {
|
|
|
130552
130661
|
|
|
130553
130662
|
// packages/workspace-tools/src/base/base-executor.ts
|
|
130554
130663
|
var withRunExecutor = (name, executorFn, executorOptions) => async (_options, context) => {
|
|
130555
|
-
const
|
|
130664
|
+
const stopwatch = getStopwatch(name);
|
|
130556
130665
|
let options = _options;
|
|
130666
|
+
let config;
|
|
130557
130667
|
try {
|
|
130558
|
-
|
|
130559
|
-
|
|
130560
|
-
`));
|
|
130668
|
+
writeInfo(config, `\u26A1 Running the ${name} executor...
|
|
130669
|
+
`);
|
|
130561
130670
|
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
130562
130671
|
throw new Error(
|
|
130563
130672
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
@@ -130567,35 +130676,33 @@ var withRunExecutor = (name, executorFn, executorOptions) => async (_options, co
|
|
|
130567
130676
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
130568
130677
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot;
|
|
130569
130678
|
const projectName = context.projectsConfigurations.projects[context.projectName].name;
|
|
130570
|
-
let config;
|
|
130571
130679
|
if (!executorOptions.skipReadingConfig) {
|
|
130572
|
-
|
|
130573
|
-
|
|
130574
|
-
|
|
130575
|
-
-
|
|
130576
|
-
-
|
|
130577
|
-
-
|
|
130578
|
-
|
|
130579
|
-
);
|
|
130580
|
-
config = getDefaultConfig({
|
|
130581
|
-
...await getConfigFile(),
|
|
130582
|
-
...getConfigEnv()
|
|
130583
|
-
});
|
|
130584
|
-
setConfigEnv(config);
|
|
130585
|
-
getLogLevel(config.logLevel) >= LogLevel.DEBUG && console.info(
|
|
130586
|
-
chalk.dim(
|
|
130587
|
-
`Loaded Storm config into env:
|
|
130588
|
-
${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\n")}
|
|
130680
|
+
writeDebug(
|
|
130681
|
+
config,
|
|
130682
|
+
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
130683
|
+
- workspaceRoot: ${workspaceRoot}
|
|
130684
|
+
- projectRoot: ${projectRoot}
|
|
130685
|
+
- sourceRoot: ${sourceRoot}
|
|
130686
|
+
- projectName: ${projectName}
|
|
130589
130687
|
`
|
|
130590
|
-
|
|
130688
|
+
);
|
|
130689
|
+
config = await prepareWorkspace();
|
|
130690
|
+
writeTrace(
|
|
130691
|
+
config,
|
|
130692
|
+
`Loaded Storm config into env:
|
|
130693
|
+
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`
|
|
130591
130694
|
);
|
|
130592
130695
|
}
|
|
130593
130696
|
if (executorOptions?.hooks?.applyDefaultOptions) {
|
|
130594
|
-
|
|
130697
|
+
writeDebug(config, "Running the applyDefaultOptions hook...");
|
|
130595
130698
|
options = await Promise.resolve(executorOptions.hooks.applyDefaultOptions(options, config));
|
|
130596
|
-
|
|
130699
|
+
writeDebug(config, "Completed the applyDefaultOptions hook");
|
|
130597
130700
|
}
|
|
130598
|
-
|
|
130701
|
+
writeTrace(
|
|
130702
|
+
config,
|
|
130703
|
+
`Executor schema options \u2699\uFE0F
|
|
130704
|
+
${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`
|
|
130705
|
+
);
|
|
130599
130706
|
const tokenized = applyWorkspaceTokens(
|
|
130600
130707
|
options,
|
|
130601
130708
|
{
|
|
@@ -130610,9 +130717,9 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
130610
130717
|
applyWorkspaceExecutorTokens
|
|
130611
130718
|
);
|
|
130612
130719
|
if (executorOptions?.hooks?.preProcess) {
|
|
130613
|
-
|
|
130720
|
+
writeDebug(config, "Running the preProcess hook...");
|
|
130614
130721
|
await Promise.resolve(executorOptions.hooks.preProcess(tokenized, config));
|
|
130615
|
-
|
|
130722
|
+
writeDebug(config, "Completed the preProcess hook");
|
|
130616
130723
|
}
|
|
130617
130724
|
const result = await Promise.resolve(executorFn(tokenized, context, config));
|
|
130618
130725
|
if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
|
|
@@ -130621,79 +130728,80 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
130621
130728
|
});
|
|
130622
130729
|
}
|
|
130623
130730
|
if (executorOptions?.hooks?.postProcess) {
|
|
130624
|
-
|
|
130731
|
+
writeDebug(config, "Running the postProcess hook...");
|
|
130625
130732
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
130626
|
-
|
|
130733
|
+
writeDebug(config, "Completed the postProcess hook");
|
|
130627
130734
|
}
|
|
130628
|
-
|
|
130629
|
-
|
|
130630
|
-
|
|
130631
|
-
\u{1F389} Successfully completed running the ${name} executor!
|
|
130632
|
-
|
|
130633
|
-
`)
|
|
130634
|
-
);
|
|
130735
|
+
writeSuccess(config, `Completed running the ${name} task executor!
|
|
130736
|
+
`);
|
|
130635
130737
|
return {
|
|
130636
130738
|
success: true
|
|
130637
130739
|
};
|
|
130638
130740
|
} catch (error) {
|
|
130639
|
-
|
|
130640
|
-
|
|
130641
|
-
error
|
|
130741
|
+
writeFatal(
|
|
130742
|
+
config,
|
|
130743
|
+
"A fatal error occurred while running the executor - the process was forced to terminate"
|
|
130744
|
+
);
|
|
130745
|
+
writeError(
|
|
130746
|
+
config,
|
|
130747
|
+
`An exception was thrown in the executor's process
|
|
130748
|
+
- Details: ${error.message}
|
|
130749
|
+
- Stacktrace: ${error.stack}`
|
|
130642
130750
|
);
|
|
130643
130751
|
return {
|
|
130644
130752
|
success: false
|
|
130645
130753
|
};
|
|
130646
130754
|
} finally {
|
|
130647
|
-
|
|
130648
|
-
chalk.dim(
|
|
130649
|
-
`\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
|
|
130650
|
-
)
|
|
130651
|
-
);
|
|
130755
|
+
stopwatch();
|
|
130652
130756
|
}
|
|
130653
130757
|
};
|
|
130654
130758
|
|
|
130655
130759
|
// packages/workspace-tools/src/base/base-generator.ts
|
|
130656
|
-
var chalk2 = __toESM(require_source());
|
|
130657
130760
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
130658
130761
|
skipReadingConfig: false
|
|
130659
130762
|
}) => async (tree, _options) => {
|
|
130660
|
-
const
|
|
130763
|
+
const stopwatch = getStopwatch(name);
|
|
130661
130764
|
let options = _options;
|
|
130765
|
+
let config;
|
|
130662
130766
|
try {
|
|
130663
|
-
|
|
130767
|
+
writeInfo(config, `\u26A1 Running the ${name} generator...
|
|
130664
130768
|
|
|
130665
|
-
`)
|
|
130666
|
-
|
|
130769
|
+
`);
|
|
130770
|
+
const workspaceRoot = getWorkspaceRoot();
|
|
130667
130771
|
if (!generatorOptions.skipReadingConfig) {
|
|
130668
|
-
|
|
130669
|
-
|
|
130670
|
-
...
|
|
130671
|
-
|
|
130672
|
-
|
|
130673
|
-
|
|
130674
|
-
|
|
130675
|
-
|
|
130676
|
-
|
|
130677
|
-
|
|
130772
|
+
writeDebug(
|
|
130773
|
+
config,
|
|
130774
|
+
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
130775
|
+
- workspaceRoot: ${workspaceRoot}`
|
|
130776
|
+
);
|
|
130777
|
+
config = await prepareWorkspace();
|
|
130778
|
+
writeTrace(
|
|
130779
|
+
config,
|
|
130780
|
+
`Loaded Storm config into env:
|
|
130781
|
+
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`
|
|
130678
130782
|
);
|
|
130679
130783
|
}
|
|
130680
130784
|
if (generatorOptions?.hooks?.applyDefaultOptions) {
|
|
130681
|
-
|
|
130785
|
+
writeDebug(config, "Running the applyDefaultOptions hook...");
|
|
130682
130786
|
options = await Promise.resolve(
|
|
130683
130787
|
generatorOptions.hooks.applyDefaultOptions(options, config)
|
|
130684
130788
|
);
|
|
130685
|
-
|
|
130789
|
+
writeDebug(config, "Completed the applyDefaultOptions hook");
|
|
130686
130790
|
}
|
|
130687
|
-
|
|
130791
|
+
writeTrace(
|
|
130792
|
+
config,
|
|
130793
|
+
`Generator schema options \u2699\uFE0F
|
|
130794
|
+
${Object.keys(options).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`
|
|
130795
|
+
);
|
|
130688
130796
|
const tokenized = applyWorkspaceTokens(
|
|
130689
130797
|
options,
|
|
130690
130798
|
{ workspaceRoot: tree.root, config },
|
|
130691
130799
|
applyWorkspaceGeneratorTokens
|
|
130692
130800
|
);
|
|
130693
130801
|
if (generatorOptions?.hooks?.preProcess) {
|
|
130694
|
-
|
|
130695
|
-
await Promise.resolve(generatorOptions.hooks.preProcess(
|
|
130696
|
-
|
|
130802
|
+
writeDebug(config, "Running the preProcess hook...");
|
|
130803
|
+
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
130804
|
+
writeDebug(config, "Completed the preProcess hook");
|
|
130697
130805
|
}
|
|
130698
130806
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
130699
130807
|
if (result && (!result.success || result.error && result?.error?.message && typeof result?.error?.message === "string" && result?.error?.name && typeof result?.error?.name === "string")) {
|
|
@@ -130702,33 +130810,31 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${process.env[key]}`).join("\
|
|
|
130702
130810
|
});
|
|
130703
130811
|
}
|
|
130704
130812
|
if (generatorOptions?.hooks?.postProcess) {
|
|
130705
|
-
|
|
130813
|
+
writeDebug(config, "Running the postProcess hook...");
|
|
130706
130814
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
130707
|
-
|
|
130815
|
+
writeDebug(config, "Completed the postProcess hook");
|
|
130708
130816
|
}
|
|
130709
|
-
|
|
130710
|
-
|
|
130711
|
-
|
|
130712
|
-
\u{1F389} Successfully completed running the ${name} generator!`)
|
|
130713
|
-
);
|
|
130817
|
+
writeSuccess(config, `Completed running the ${name} task executor!
|
|
130818
|
+
`);
|
|
130714
130819
|
return {
|
|
130715
130820
|
success: true
|
|
130716
130821
|
};
|
|
130717
130822
|
} catch (error) {
|
|
130718
|
-
|
|
130719
|
-
|
|
130720
|
-
error
|
|
130823
|
+
writeFatal(
|
|
130824
|
+
config,
|
|
130825
|
+
"A fatal error occurred while running the generator - the process was forced to terminate"
|
|
130826
|
+
);
|
|
130827
|
+
writeError(
|
|
130828
|
+
config,
|
|
130829
|
+
`An exception was thrown in the generator's process
|
|
130830
|
+
- Details: ${error.message}
|
|
130831
|
+
- Stacktrace: ${error.stack}`
|
|
130721
130832
|
);
|
|
130722
|
-
console.error(error);
|
|
130723
130833
|
return {
|
|
130724
130834
|
success: false
|
|
130725
130835
|
};
|
|
130726
130836
|
} finally {
|
|
130727
|
-
|
|
130728
|
-
chalk2.hex("#0ea5e9").italic(
|
|
130729
|
-
`\u23F1\uFE0F The${name ? ` ${name}` : ""} generator took ${Date.now() - startTime}ms to complete`
|
|
130730
|
-
)
|
|
130731
|
-
);
|
|
130837
|
+
stopwatch();
|
|
130732
130838
|
}
|
|
130733
130839
|
};
|
|
130734
130840
|
|
|
@@ -130805,9 +130911,10 @@ function defaultConfig({
|
|
|
130805
130911
|
outExtension
|
|
130806
130912
|
};
|
|
130807
130913
|
}
|
|
130808
|
-
function getConfig(workspaceRoot, projectRoot, getConfigFn, { outputPath, tsConfig,
|
|
130914
|
+
function getConfig(workspaceRoot, projectRoot, getConfigFn, { outputPath, tsConfig, platform, ...rest }) {
|
|
130809
130915
|
return getConfigFn({
|
|
130810
130916
|
...rest,
|
|
130917
|
+
additionalEntryPoints: [],
|
|
130811
130918
|
outDir: outputPath,
|
|
130812
130919
|
tsconfig: tsConfig,
|
|
130813
130920
|
workspaceRoot,
|
|
@@ -130902,14 +131009,14 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
130902
131009
|
defaultConfiguration: "production",
|
|
130903
131010
|
assets: [
|
|
130904
131011
|
{
|
|
130905
|
-
|
|
130906
|
-
|
|
130907
|
-
|
|
131012
|
+
input: options.projectRoot,
|
|
131013
|
+
glob: "*.md",
|
|
131014
|
+
output: "/"
|
|
130908
131015
|
},
|
|
130909
131016
|
{
|
|
130910
|
-
|
|
130911
|
-
|
|
130912
|
-
|
|
131017
|
+
input: "",
|
|
131018
|
+
glob: "LICENSE",
|
|
131019
|
+
output: "/"
|
|
130913
131020
|
}
|
|
130914
131021
|
]
|
|
130915
131022
|
},
|
|
@@ -130928,7 +131035,9 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
130928
131035
|
test: {}
|
|
130929
131036
|
}
|
|
130930
131037
|
};
|
|
130931
|
-
|
|
131038
|
+
if (schema.platform) {
|
|
131039
|
+
projectConfig.targets.build.options.platform = schema.platform;
|
|
131040
|
+
}
|
|
130932
131041
|
createProjectTsConfigJson(tree, options);
|
|
130933
131042
|
(0, import_devkit2.addProjectConfiguration)(tree, options.name, projectConfig);
|
|
130934
131043
|
let repository = {
|
|
@@ -130938,19 +131047,20 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
130938
131047
|
let description = schema.description ?? "\u26A1 A Storm package used to create modern, scalable web applications.";
|
|
130939
131048
|
if (tree.exists("package.json")) {
|
|
130940
131049
|
const packageJson = (0, import_devkit2.readJson)(tree, "package.json");
|
|
130941
|
-
|
|
130942
|
-
|
|
131050
|
+
if (packageJson?.repository) {
|
|
131051
|
+
repository = packageJson.repository;
|
|
131052
|
+
}
|
|
131053
|
+
if (packageJson?.description) {
|
|
131054
|
+
description = packageJson.description;
|
|
131055
|
+
}
|
|
130943
131056
|
}
|
|
130944
|
-
const packageJsonPath = (0, import_devkit2.joinPathFragments)(
|
|
130945
|
-
options.projectRoot,
|
|
130946
|
-
"package.json"
|
|
130947
|
-
);
|
|
131057
|
+
const packageJsonPath = (0, import_devkit2.joinPathFragments)(options.projectRoot, "package.json");
|
|
130948
131058
|
if (tree.exists(packageJsonPath)) {
|
|
130949
131059
|
(0, import_devkit2.updateJson)(tree, packageJsonPath, (json) => {
|
|
130950
131060
|
json.name = options.importPath;
|
|
130951
131061
|
json.version = "0.0.1";
|
|
130952
131062
|
if (json.private && (options.publishable || options.rootProject)) {
|
|
130953
|
-
|
|
131063
|
+
json.private = void 0;
|
|
130954
131064
|
}
|
|
130955
131065
|
return {
|
|
130956
131066
|
...json,
|
|
@@ -130998,19 +131108,19 @@ async function typeScriptLibraryGeneratorFn(tree, schema) {
|
|
|
130998
131108
|
}));
|
|
130999
131109
|
}
|
|
131000
131110
|
(0, import_js.addTsConfigPath)(tree, options.importPath, [
|
|
131001
|
-
(0, import_devkit2.joinPathFragments)(
|
|
131002
|
-
options.projectRoot,
|
|
131003
|
-
"./src",
|
|
131004
|
-
"index." + (options.js ? "js" : "ts")
|
|
131005
|
-
)
|
|
131111
|
+
(0, import_devkit2.joinPathFragments)(options.projectRoot, "./src", `index.${options.js ? "js" : "ts"}`)
|
|
131006
131112
|
]);
|
|
131007
131113
|
(0, import_js.addTsConfigPath)(tree, (0, import_devkit2.joinPathFragments)(options.importPath, "/*"), [
|
|
131008
131114
|
(0, import_devkit2.joinPathFragments)(options.projectRoot, "./src", "/*")
|
|
131009
131115
|
]);
|
|
131010
131116
|
if (tree.exists("package.json")) {
|
|
131011
131117
|
const packageJson = (0, import_devkit2.readJson)(tree, "package.json");
|
|
131012
|
-
|
|
131013
|
-
|
|
131118
|
+
if (packageJson?.repository) {
|
|
131119
|
+
repository = packageJson.repository;
|
|
131120
|
+
}
|
|
131121
|
+
if (packageJson?.description) {
|
|
131122
|
+
description = packageJson.description;
|
|
131123
|
+
}
|
|
131014
131124
|
}
|
|
131015
131125
|
const tsconfigPath = (0, import_devkit2.joinPathFragments)(options.projectRoot, "tsconfig.json");
|
|
131016
131126
|
if (tree.exists(tsconfigPath)) {
|
|
@@ -131049,11 +131159,7 @@ async function addLint(tree, options) {
|
|
|
131049
131159
|
tsConfigPaths: [(0, import_devkit2.joinPathFragments)(options.projectRoot, "tsconfig.json")],
|
|
131050
131160
|
unitTestRunner: options.unitTestRunner,
|
|
131051
131161
|
eslintFilePatterns: [
|
|
131052
|
-
mapLintPattern(
|
|
131053
|
-
options.projectRoot,
|
|
131054
|
-
options.js ? "js" : "ts",
|
|
131055
|
-
options.rootProject
|
|
131056
|
-
)
|
|
131162
|
+
mapLintPattern(options.projectRoot, options.js ? "js" : "ts", options.rootProject)
|
|
131057
131163
|
],
|
|
131058
131164
|
setParserOptionsProject: options.setParserOptionsProject,
|
|
131059
131165
|
rootProject: options.rootProject
|
|
@@ -131099,9 +131205,7 @@ async function addLint(tree, options) {
|
|
|
131099
131205
|
ruleOptions = {};
|
|
131100
131206
|
}
|
|
131101
131207
|
if (options.bundler === "esbuild") {
|
|
131102
|
-
ruleOptions.ignoredFiles = [
|
|
131103
|
-
"{projectRoot}/esbuild.config.{js,ts,mjs,mts}"
|
|
131104
|
-
];
|
|
131208
|
+
ruleOptions.ignoredFiles = ["{projectRoot}/esbuild.config.{js,ts,mjs,mts}"];
|
|
131105
131209
|
o.rules["@nx/dependency-checks"] = [ruleSeverity, ruleOptions];
|
|
131106
131210
|
}
|
|
131107
131211
|
return o;
|
|
@@ -131125,10 +131229,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
131125
131229
|
...options?.tsConfigOptions ?? {},
|
|
131126
131230
|
compilerOptions: {
|
|
131127
131231
|
...options.rootProject ? import_js.tsConfigBaseOptions : {},
|
|
131128
|
-
outDir: (0, import_devkit2.joinPathFragments)(
|
|
131129
|
-
(0, import_devkit2.offsetFromRoot)(options.projectRoot),
|
|
131130
|
-
"dist/out-tsc"
|
|
131131
|
-
),
|
|
131232
|
+
outDir: (0, import_devkit2.joinPathFragments)((0, import_devkit2.offsetFromRoot)(options.projectRoot), "dist/out-tsc"),
|
|
131132
131233
|
noEmit: true,
|
|
131133
131234
|
...options?.tsConfigOptions?.compilerOptions ?? {}
|
|
131134
131235
|
},
|
|
@@ -131146,11 +131247,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
131146
131247
|
"src/**/*.test.ts"
|
|
131147
131248
|
]
|
|
131148
131249
|
};
|
|
131149
|
-
(0, import_devkit2.writeJson)(
|
|
131150
|
-
tree,
|
|
131151
|
-
(0, import_devkit2.joinPathFragments)(options.projectRoot, "tsconfig.json"),
|
|
131152
|
-
tsconfig
|
|
131153
|
-
);
|
|
131250
|
+
(0, import_devkit2.writeJson)(tree, (0, import_devkit2.joinPathFragments)(options.projectRoot, "tsconfig.json"), tsconfig);
|
|
131154
131251
|
}
|
|
131155
131252
|
async function normalizeOptions(tree, options) {
|
|
131156
131253
|
if (options.publishable) {
|