@storm-software/workspace-tools 1.65.1 → 1.65.2
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 +12 -0
- package/README.md +1 -1
- package/index.js +55 -60
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +1 -1
- package/src/executors/tsup-browser/executor.js +12 -15
- package/src/executors/tsup-neutral/executor.js +11 -12
- package/src/executors/tsup-node/executor.js +12 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.65.2 (2024-03-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **build-tools:** Fix `applyDefaultOptions` issue that cleared out `getConfig` values ([baab6f94](https://github.com/storm-software/storm-ops/commit/baab6f94))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
1
13
|
## 1.65.1 (2024-03-06)
|
|
2
14
|
|
|
3
15
|
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
16
16
|
|
|
17
17
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
18
18
|
|
|
19
|
-
[](https://prettier.io/)
|
|
20
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
21
21
|
|
|
22
22
|
> [!IMPORTANT]
|
package/index.js
CHANGED
|
@@ -111528,13 +111528,13 @@ var init_prettier = __esm({
|
|
|
111528
111528
|
styles3[key2] = {
|
|
111529
111529
|
get() {
|
|
111530
111530
|
const codes2 = ansiStyles2[key2];
|
|
111531
|
-
return
|
|
111531
|
+
return build2.call(this, this._styles ? this._styles.concat(codes2) : [codes2], this._empty, key2);
|
|
111532
111532
|
}
|
|
111533
111533
|
};
|
|
111534
111534
|
}
|
|
111535
111535
|
styles3.visible = {
|
|
111536
111536
|
get() {
|
|
111537
|
-
return
|
|
111537
|
+
return build2.call(this, this._styles || [], true, "visible");
|
|
111538
111538
|
}
|
|
111539
111539
|
};
|
|
111540
111540
|
ansiStyles2.color.closeRe = new RegExp(escapeStringRegexp2(ansiStyles2.color.close), "g");
|
|
@@ -111552,7 +111552,7 @@ var init_prettier = __esm({
|
|
|
111552
111552
|
close: ansiStyles2.color.close,
|
|
111553
111553
|
closeRe: ansiStyles2.color.closeRe
|
|
111554
111554
|
};
|
|
111555
|
-
return
|
|
111555
|
+
return build2.call(this, this._styles ? this._styles.concat(codes2) : [codes2], this._empty, model);
|
|
111556
111556
|
};
|
|
111557
111557
|
}
|
|
111558
111558
|
};
|
|
@@ -111573,14 +111573,14 @@ var init_prettier = __esm({
|
|
|
111573
111573
|
close: ansiStyles2.bgColor.close,
|
|
111574
111574
|
closeRe: ansiStyles2.bgColor.closeRe
|
|
111575
111575
|
};
|
|
111576
|
-
return
|
|
111576
|
+
return build2.call(this, this._styles ? this._styles.concat(codes2) : [codes2], this._empty, model);
|
|
111577
111577
|
};
|
|
111578
111578
|
}
|
|
111579
111579
|
};
|
|
111580
111580
|
}
|
|
111581
111581
|
var proto2 = Object.defineProperties(() => {
|
|
111582
111582
|
}, styles3);
|
|
111583
|
-
function
|
|
111583
|
+
function build2(_styles, _empty, key2) {
|
|
111584
111584
|
const builder = function() {
|
|
111585
111585
|
return applyStyle2.apply(builder, arguments);
|
|
111586
111586
|
};
|
|
@@ -182130,17 +182130,17 @@ ${lanes.join("\n")}
|
|
|
182130
182130
|
const match = versionRegExp.exec(text);
|
|
182131
182131
|
if (!match)
|
|
182132
182132
|
return void 0;
|
|
182133
|
-
const [, major, minor = "0", patch = "0", prerelease2 = "",
|
|
182133
|
+
const [, major, minor = "0", patch = "0", prerelease2 = "", build22 = ""] = match;
|
|
182134
182134
|
if (prerelease2 && !prereleaseRegExp.test(prerelease2))
|
|
182135
182135
|
return void 0;
|
|
182136
|
-
if (
|
|
182136
|
+
if (build22 && !buildRegExp.test(build22))
|
|
182137
182137
|
return void 0;
|
|
182138
182138
|
return {
|
|
182139
182139
|
major: parseInt(major, 10),
|
|
182140
182140
|
minor: parseInt(minor, 10),
|
|
182141
182141
|
patch: parseInt(patch, 10),
|
|
182142
182142
|
prerelease: prerelease2,
|
|
182143
|
-
build:
|
|
182143
|
+
build: build22
|
|
182144
182144
|
};
|
|
182145
182145
|
}
|
|
182146
182146
|
function comparePrereleaseIdentifiers(left, right) {
|
|
@@ -182198,13 +182198,13 @@ ${lanes.join("\n")}
|
|
|
182198
182198
|
const match = partialRegExp.exec(text);
|
|
182199
182199
|
if (!match)
|
|
182200
182200
|
return void 0;
|
|
182201
|
-
const [, major, minor = "*", patch = "*", prerelease2,
|
|
182201
|
+
const [, major, minor = "*", patch = "*", prerelease2, build22] = match;
|
|
182202
182202
|
const version2 = new Version2(
|
|
182203
182203
|
isWildcard(major) ? 0 : parseInt(major, 10),
|
|
182204
182204
|
isWildcard(major) || isWildcard(minor) ? 0 : parseInt(minor, 10),
|
|
182205
182205
|
isWildcard(major) || isWildcard(minor) || isWildcard(patch) ? 0 : parseInt(patch, 10),
|
|
182206
182206
|
prerelease2,
|
|
182207
|
-
|
|
182207
|
+
build22
|
|
182208
182208
|
);
|
|
182209
182209
|
return { version: version2, major, minor, patch };
|
|
182210
182210
|
}
|
|
@@ -182339,16 +182339,16 @@ ${lanes.join("\n")}
|
|
|
182339
182339
|
buildPartRegExp = /^[a-z0-9-]+$/i;
|
|
182340
182340
|
numericIdentifierRegExp = /^(0|[1-9]\d*)$/;
|
|
182341
182341
|
_Version = class _Version2 {
|
|
182342
|
-
constructor(major, minor = 0, patch = 0, prerelease2 = "",
|
|
182342
|
+
constructor(major, minor = 0, patch = 0, prerelease2 = "", build22 = "") {
|
|
182343
182343
|
if (typeof major === "string") {
|
|
182344
182344
|
const result = Debug.checkDefined(tryParseComponents(major), "Invalid version");
|
|
182345
|
-
({ major, minor, patch, prerelease: prerelease2, build:
|
|
182345
|
+
({ major, minor, patch, prerelease: prerelease2, build: build22 } = result);
|
|
182346
182346
|
}
|
|
182347
182347
|
Debug.assert(major >= 0, "Invalid argument: major");
|
|
182348
182348
|
Debug.assert(minor >= 0, "Invalid argument: minor");
|
|
182349
182349
|
Debug.assert(patch >= 0, "Invalid argument: patch");
|
|
182350
182350
|
const prereleaseArray = prerelease2 ? isArray(prerelease2) ? prerelease2 : prerelease2.split(".") : emptyArray;
|
|
182351
|
-
const buildArray =
|
|
182351
|
+
const buildArray = build22 ? isArray(build22) ? build22 : build22.split(".") : emptyArray;
|
|
182352
182352
|
Debug.assert(every(prereleaseArray, (s) => prereleasePartRegExp.test(s)), "Invalid argument: prerelease");
|
|
182353
182353
|
Debug.assert(every(buildArray, (s) => buildPartRegExp.test(s)), "Invalid argument: build");
|
|
182354
182354
|
this.major = major;
|
|
@@ -182361,8 +182361,8 @@ ${lanes.join("\n")}
|
|
|
182361
182361
|
const result = tryParseComponents(text);
|
|
182362
182362
|
if (!result)
|
|
182363
182363
|
return void 0;
|
|
182364
|
-
const { major, minor, patch, prerelease: prerelease2, build:
|
|
182365
|
-
return new _Version2(major, minor, patch, prerelease2,
|
|
182364
|
+
const { major, minor, patch, prerelease: prerelease2, build: build22 } = result;
|
|
182365
|
+
return new _Version2(major, minor, patch, prerelease2, build22);
|
|
182366
182366
|
}
|
|
182367
182367
|
compareTo(other) {
|
|
182368
182368
|
if (this === other)
|
|
@@ -182389,9 +182389,9 @@ ${lanes.join("\n")}
|
|
|
182389
182389
|
minor = this.minor,
|
|
182390
182390
|
patch = this.patch,
|
|
182391
182391
|
prerelease: prerelease2 = this.prerelease,
|
|
182392
|
-
build:
|
|
182392
|
+
build: build22 = this.build
|
|
182393
182393
|
} = fields;
|
|
182394
|
-
return new _Version2(major, minor, patch, prerelease2,
|
|
182394
|
+
return new _Version2(major, minor, patch, prerelease2, build22);
|
|
182395
182395
|
}
|
|
182396
182396
|
toString() {
|
|
182397
182397
|
let result = `${this.major}.${this.minor}.${this.patch}`;
|
|
@@ -292108,7 +292108,7 @@ ${lanes.join("\n")}
|
|
|
292108
292108
|
visitor
|
|
292109
292109
|
);
|
|
292110
292110
|
transformAndEmitStatements(body.statements, statementOffset);
|
|
292111
|
-
const buildResult =
|
|
292111
|
+
const buildResult = build22();
|
|
292112
292112
|
insertStatementsAfterStandardPrologue(statements2, endLexicalEnvironment());
|
|
292113
292113
|
statements2.push(factory2.createReturnStatement(buildResult));
|
|
292114
292114
|
inGeneratorFunctionBody = savedInGeneratorFunctionBody;
|
|
@@ -293459,7 +293459,7 @@ ${lanes.join("\n")}
|
|
|
293459
293459
|
operationArguments[operationIndex] = args;
|
|
293460
293460
|
operationLocations[operationIndex] = location;
|
|
293461
293461
|
}
|
|
293462
|
-
function
|
|
293462
|
+
function build22() {
|
|
293463
293463
|
blockIndex = 0;
|
|
293464
293464
|
labelNumber = 0;
|
|
293465
293465
|
labelNumbers = void 0;
|
|
@@ -316545,7 +316545,7 @@ ${lanes.join("\n")}
|
|
|
316545
316545
|
}
|
|
316546
316546
|
}
|
|
316547
316547
|
}
|
|
316548
|
-
function
|
|
316548
|
+
function build2(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences) {
|
|
316549
316549
|
mark("SolutionBuilder::beforeBuild");
|
|
316550
316550
|
const result = buildWorker(state, project, cancellationToken, writeFile2, getCustomTransformers, onlyReferences);
|
|
316551
316551
|
mark("SolutionBuilder::afterBuild");
|
|
@@ -316874,9 +316874,9 @@ ${lanes.join("\n")}
|
|
|
316874
316874
|
function createSolutionBuilderWorker(watch, hostOrHostWithWatch, rootNames, options8, baseWatchOptions) {
|
|
316875
316875
|
const state = createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, options8, baseWatchOptions);
|
|
316876
316876
|
return {
|
|
316877
|
-
build: (project, cancellationToken, writeFile2, getCustomTransformers) =>
|
|
316877
|
+
build: (project, cancellationToken, writeFile2, getCustomTransformers) => build2(state, project, cancellationToken, writeFile2, getCustomTransformers),
|
|
316878
316878
|
clean: (project) => clean(state, project),
|
|
316879
|
-
buildReferences: (project, cancellationToken, writeFile2, getCustomTransformers) =>
|
|
316879
|
+
buildReferences: (project, cancellationToken, writeFile2, getCustomTransformers) => build2(
|
|
316880
316880
|
state,
|
|
316881
316881
|
project,
|
|
316882
316882
|
cancellationToken,
|
|
@@ -417240,7 +417240,7 @@ ${Object.keys(options8).map(
|
|
|
417240
417240
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
417241
417241
|
);
|
|
417242
417242
|
}
|
|
417243
|
-
await (0, import_build_tools2.
|
|
417243
|
+
await (0, import_build_tools2.build)(config, {
|
|
417244
417244
|
...options8,
|
|
417245
417245
|
projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
|
|
417246
417246
|
projectName: context.projectName,
|
|
@@ -417294,23 +417294,22 @@ var tsupNeutralBuildExecutorFn = (options8, context, config) => {
|
|
|
417294
417294
|
config
|
|
417295
417295
|
);
|
|
417296
417296
|
};
|
|
417297
|
-
var applyDefaultOptions2 = (options8) => {
|
|
417298
|
-
return {
|
|
417299
|
-
...(0, import_build_tools3.applyDefaultOptions)({
|
|
417300
|
-
plugins: [],
|
|
417301
|
-
...options8,
|
|
417302
|
-
platform: "neutral",
|
|
417303
|
-
getConfig: import_build_tools3.neutralConfig
|
|
417304
|
-
})
|
|
417305
|
-
};
|
|
417306
|
-
};
|
|
417307
417297
|
var executor_default2 = withRunExecutor(
|
|
417308
417298
|
"TypeScript Build (Neutral Platform)",
|
|
417309
417299
|
tsupNeutralBuildExecutorFn,
|
|
417310
417300
|
{
|
|
417311
417301
|
skipReadingConfig: false,
|
|
417312
417302
|
hooks: {
|
|
417313
|
-
applyDefaultOptions:
|
|
417303
|
+
applyDefaultOptions: (options8) => {
|
|
417304
|
+
return {
|
|
417305
|
+
...(0, import_build_tools3.applyDefaultOptions)({
|
|
417306
|
+
plugins: [],
|
|
417307
|
+
...options8,
|
|
417308
|
+
platform: "neutral"
|
|
417309
|
+
}),
|
|
417310
|
+
getConfig: import_build_tools3.neutralConfig
|
|
417311
|
+
};
|
|
417312
|
+
}
|
|
417314
417313
|
}
|
|
417315
417314
|
}
|
|
417316
417315
|
);
|
|
@@ -417337,24 +417336,23 @@ var tsupNodeBuildExecutorFn = (options8, context, config) => {
|
|
|
417337
417336
|
config
|
|
417338
417337
|
);
|
|
417339
417338
|
};
|
|
417340
|
-
var applyDefaultOptions3 = (options8) => {
|
|
417341
|
-
return {
|
|
417342
|
-
...(0, import_build_tools4.applyDefaultOptions)({
|
|
417343
|
-
plugins: [],
|
|
417344
|
-
...options8,
|
|
417345
|
-
platform: "node",
|
|
417346
|
-
getConfig: import_build_tools4.nodeConfig
|
|
417347
|
-
}),
|
|
417348
|
-
transports: ["pino-pretty", "pino-loki"]
|
|
417349
|
-
};
|
|
417350
|
-
};
|
|
417351
417339
|
var executor_default3 = withRunExecutor(
|
|
417352
417340
|
"TypeScript Build (NodeJs Platform)",
|
|
417353
417341
|
tsupNodeBuildExecutorFn,
|
|
417354
417342
|
{
|
|
417355
417343
|
skipReadingConfig: false,
|
|
417356
417344
|
hooks: {
|
|
417357
|
-
applyDefaultOptions:
|
|
417345
|
+
applyDefaultOptions: (options8) => {
|
|
417346
|
+
return {
|
|
417347
|
+
...(0, import_build_tools4.applyDefaultOptions)({
|
|
417348
|
+
plugins: [],
|
|
417349
|
+
...options8,
|
|
417350
|
+
platform: "node"
|
|
417351
|
+
}),
|
|
417352
|
+
getConfig: import_build_tools4.nodeConfig,
|
|
417353
|
+
transports: ["pino-pretty", "pino-loki"]
|
|
417354
|
+
};
|
|
417355
|
+
}
|
|
417358
417356
|
}
|
|
417359
417357
|
}
|
|
417360
417358
|
);
|
|
@@ -417367,9 +417365,7 @@ var tsupBrowserBuildExecutorFn = (options8, context, config) => {
|
|
|
417367
417365
|
...options8,
|
|
417368
417366
|
platform: "browser",
|
|
417369
417367
|
banner: (0, import_build_tools5.getFileBanner)(
|
|
417370
|
-
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
417371
|
-
(s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : ""
|
|
417372
|
-
).join(" ") : "TypeScript (Browser Platforms)"
|
|
417368
|
+
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : "").join(" ") : "TypeScript (Browser Platforms)"
|
|
417373
417369
|
),
|
|
417374
417370
|
define: {
|
|
417375
417371
|
...options8.define
|
|
@@ -417383,23 +417379,22 @@ var tsupBrowserBuildExecutorFn = (options8, context, config) => {
|
|
|
417383
417379
|
config
|
|
417384
417380
|
);
|
|
417385
417381
|
};
|
|
417386
|
-
var applyDefaultOptions4 = (options8) => {
|
|
417387
|
-
return {
|
|
417388
|
-
...(0, import_build_tools5.applyDefaultOptions)({
|
|
417389
|
-
plugins: [],
|
|
417390
|
-
...options8,
|
|
417391
|
-
platform: "browser"
|
|
417392
|
-
}),
|
|
417393
|
-
getConfig: import_build_tools5.browserConfig
|
|
417394
|
-
};
|
|
417395
|
-
};
|
|
417396
417382
|
var executor_default4 = withRunExecutor(
|
|
417397
417383
|
"TypeScript Build (Browser Platforms)",
|
|
417398
417384
|
tsupBrowserBuildExecutorFn,
|
|
417399
417385
|
{
|
|
417400
417386
|
skipReadingConfig: false,
|
|
417401
417387
|
hooks: {
|
|
417402
|
-
applyDefaultOptions:
|
|
417388
|
+
applyDefaultOptions: (options8) => {
|
|
417389
|
+
return {
|
|
417390
|
+
...(0, import_build_tools5.applyDefaultOptions)({
|
|
417391
|
+
plugins: [],
|
|
417392
|
+
...options8,
|
|
417393
|
+
platform: "browser"
|
|
417394
|
+
}),
|
|
417395
|
+
getConfig: import_build_tools5.browserConfig
|
|
417396
|
+
};
|
|
417397
|
+
}
|
|
417403
417398
|
}
|
|
417404
417399
|
}
|
|
417405
417400
|
);
|