@storm-software/workspace-tools 1.289.2 → 1.289.4
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 +30 -0
- package/README.md +1 -1
- package/dist/{chunk-VAJB3RTI.mjs → chunk-2AMDW3YQ.mjs} +1 -1
- package/dist/{chunk-KSOS2M7J.js → chunk-2AWJ2YR5.js} +15 -15
- package/dist/{chunk-M5Z57CUO.mjs → chunk-2C4FZPU6.mjs} +1 -1
- package/dist/{chunk-DY4PYCP6.js → chunk-3WWUJ2VB.js} +2 -2
- package/dist/{chunk-QKQRWKYX.js → chunk-4HV5G4DT.js} +13 -13
- package/dist/{chunk-2CRCPMGK.mjs → chunk-4TWBUGWJ.mjs} +1 -1
- package/dist/{chunk-T25RSZNX.mjs → chunk-5RWC6WQX.mjs} +3 -3
- package/dist/{chunk-7IF3RQD4.js → chunk-6EPU6OJO.js} +5 -5
- package/dist/{chunk-WITQCU2S.mjs → chunk-7JIOKFAL.mjs} +1 -1
- package/dist/{chunk-73IC2JQV.js → chunk-7QY4X73C.js} +2 -2
- package/dist/{chunk-PQGJJ2VC.js → chunk-AEPPOUTZ.js} +7 -7
- package/dist/{chunk-UZ63ALZQ.js → chunk-AIHKMBDE.js} +2 -2
- package/dist/{chunk-PKUOYXI3.mjs → chunk-BSC56LZT.mjs} +3 -3
- package/dist/{chunk-KYGWN2MB.mjs → chunk-BYDAHL6O.mjs} +1 -1
- package/dist/{chunk-U7JFVMCK.mjs → chunk-C26A6BXG.mjs} +1 -1
- package/dist/{chunk-7Y353S7D.js → chunk-DHLIMON5.js} +29 -29
- package/dist/{chunk-VBOSBUKV.mjs → chunk-E4YSYJDS.mjs} +1 -1
- package/dist/{chunk-S5DC4QM3.js → chunk-FFU5IOHF.js} +2 -2
- package/dist/{chunk-53DNHF7B.js → chunk-G2L3EEEO.js} +2 -2
- package/dist/{chunk-7OBL2GKK.js → chunk-GSNSQNWE.js} +7 -7
- package/dist/{chunk-KLAMLNPM.mjs → chunk-GYR36ZS5.mjs} +1 -1
- package/dist/{chunk-LNCNJLSB.mjs → chunk-HP36FVRU.mjs} +1 -1
- package/dist/{chunk-6NZIY22A.mjs → chunk-I5QGFMUH.mjs} +4 -4
- package/dist/{chunk-V3SVHUFX.mjs → chunk-IYDKU4UX.mjs} +3 -3
- package/dist/{chunk-G2ZFORXG.js → chunk-JN6KPWQF.js} +2 -2
- package/dist/{chunk-EJXUFIMK.mjs → chunk-JXPBXBVT.mjs} +3 -3
- package/dist/{chunk-4DLKOUQA.js → chunk-KCV7BDWY.js} +2 -2
- package/dist/{chunk-HNFKVXBV.js → chunk-L7U4GRI6.js} +3 -3
- package/dist/{chunk-2JYSOWHX.js → chunk-LK6W3KH4.js} +2 -2
- package/dist/{chunk-M7ZPKNJT.mjs → chunk-LKIIAI4Y.mjs} +1 -1
- package/dist/{chunk-FT7UVNPS.mjs → chunk-LRNWFATF.mjs} +3 -3
- package/dist/{chunk-PZFEA7HL.mjs → chunk-MLZRCI3A.mjs} +1 -1
- package/dist/{chunk-G3LFGXX3.js → chunk-MU56MSLH.js} +7 -7
- package/dist/{chunk-SUYGH7CY.mjs → chunk-OI4WJRTJ.mjs} +4 -4
- package/dist/{chunk-3KDR7QTH.mjs → chunk-OVBZVQSB.mjs} +1 -1
- package/dist/{chunk-UIUT3KSN.mjs → chunk-OZ3HGXJN.mjs} +1 -1
- package/dist/{chunk-OSMA3OJG.js → chunk-PW43JUUT.js} +28 -28
- package/dist/{chunk-PNWYSTCQ.js → chunk-QHXFWA2F.js} +2 -2
- package/dist/{chunk-IID5AST4.mjs → chunk-QZPAK2ZJ.mjs} +1 -1
- package/dist/{chunk-UH5PNSPJ.js → chunk-R3FFJCKC.js} +2 -2
- package/dist/{chunk-YMP6D267.mjs → chunk-S7UZGQ4Y.mjs} +3 -3
- package/dist/{chunk-A77PFJ72.js → chunk-SFE5PARH.js} +2 -2
- package/dist/{chunk-QD3JDU6V.mjs → chunk-TRZ2ALAN.mjs} +2 -2
- package/dist/{chunk-VGRHMX4G.js → chunk-TUX5HNDD.js} +7 -7
- package/dist/{chunk-PIK7KYVE.mjs → chunk-UCXAD2SG.mjs} +1 -1
- package/dist/{chunk-3DQHYRAW.js → chunk-UHCY4Z7H.js} +2 -2
- package/dist/{chunk-DA53ZKBY.js → chunk-URLWKK3Z.js} +3 -3
- package/dist/{chunk-EIZKPKJH.js → chunk-VVI6WID7.js} +2 -2
- package/dist/{chunk-6P42TFF5.js → chunk-WJA33YN6.js} +20 -20
- package/dist/{chunk-OWKH2ZBQ.mjs → chunk-WYKNXQAY.mjs} +1 -1
- package/dist/{chunk-R46H5YPG.js → chunk-XWJOKWDV.js} +7 -7
- package/dist/{chunk-L7Z66BRK.js → chunk-YDUY6Q5I.js} +7 -7
- package/dist/{chunk-VZPMAVID.mjs → chunk-YFBXGVV7.mjs} +3 -3
- package/dist/{chunk-HJPVYUW7.mjs → chunk-ZERVVKRK.mjs} +2 -2
- package/dist/executors.js +19 -19
- package/dist/executors.mjs +22 -22
- package/dist/generators.js +14 -14
- package/dist/generators.mjs +13 -13
- package/dist/index.js +29 -29
- package/dist/index.mjs +32 -32
- package/dist/src/base/base-executor.js +6 -6
- package/dist/src/base/base-executor.mjs +5 -5
- package/dist/src/base/base-generator.js +6 -6
- package/dist/src/base/base-generator.mjs +5 -5
- package/dist/src/base/index.js +8 -8
- package/dist/src/base/index.mjs +7 -7
- package/dist/src/executors/cargo-build/executor.js +7 -7
- package/dist/src/executors/cargo-build/executor.mjs +6 -6
- package/dist/src/executors/cargo-check/executor.js +7 -7
- package/dist/src/executors/cargo-check/executor.mjs +6 -6
- package/dist/src/executors/cargo-clippy/executor.js +7 -7
- package/dist/src/executors/cargo-clippy/executor.mjs +6 -6
- package/dist/src/executors/cargo-doc/executor.js +7 -7
- package/dist/src/executors/cargo-doc/executor.mjs +6 -6
- package/dist/src/executors/cargo-format/executor.js +7 -7
- package/dist/src/executors/cargo-format/executor.mjs +6 -6
- package/dist/src/executors/clean-package/executor.js +7 -7
- package/dist/src/executors/clean-package/executor.mjs +5 -5
- package/dist/src/executors/esbuild/executor.js +7 -7
- package/dist/src/executors/esbuild/executor.mjs +6 -6
- package/dist/src/executors/npm-publish/executor.js +7 -7
- package/dist/src/executors/npm-publish/executor.mjs +6 -6
- package/dist/src/executors/size-limit/executor.js +7 -7
- package/dist/src/executors/size-limit/executor.mjs +6 -6
- package/dist/src/executors/typia/executor.js +7 -7
- package/dist/src/executors/typia/executor.mjs +6 -6
- package/dist/src/executors/unbuild/executor.js +7 -7
- package/dist/src/executors/unbuild/executor.mjs +6 -6
- package/dist/src/generators/browser-library/generator.js +8 -8
- package/dist/src/generators/browser-library/generator.mjs +7 -7
- package/dist/src/generators/config-schema/generator.js +7 -7
- package/dist/src/generators/config-schema/generator.mjs +6 -6
- package/dist/src/generators/neutral-library/generator.js +8 -8
- package/dist/src/generators/neutral-library/generator.mjs +7 -7
- package/dist/src/generators/node-library/generator.js +8 -8
- package/dist/src/generators/node-library/generator.mjs +7 -7
- package/dist/src/generators/preset/generator.js +7 -7
- package/dist/src/generators/preset/generator.mjs +6 -6
- package/dist/src/generators/release-version/generator.js +6 -6
- package/dist/src/generators/release-version/generator.mjs +5 -5
- package/dist/src/utils/apply-workspace-tokens.js +4 -4
- package/dist/src/utils/apply-workspace-tokens.mjs +3 -3
- package/dist/src/utils/get-project-configurations.js +4 -4
- package/dist/src/utils/get-project-configurations.mjs +3 -3
- package/dist/src/utils/index.js +6 -6
- package/dist/src/utils/index.mjs +5 -5
- package/dist/src/utils/package-helpers.js +3 -3
- package/dist/src/utils/package-helpers.mjs +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.289.3](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.289.3) (2025-09-18)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace package links
|
|
10
|
+
([5fc0b1cec](https://github.com/storm-software/storm-ops/commit/5fc0b1cec))
|
|
11
|
+
|
|
12
|
+
### Updated Dependencies
|
|
13
|
+
|
|
14
|
+
- Updated pnpm-tools to 0.3.3
|
|
15
|
+
- Updated npm-tools to 0.3.3
|
|
16
|
+
- Updated prettier to 0.55.3
|
|
17
|
+
- Updated esbuild to 0.51.3
|
|
18
|
+
- Updated unbuild to 0.55.3
|
|
19
|
+
|
|
20
|
+
## [1.289.2](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.289.2) (2025-09-18)
|
|
21
|
+
|
|
22
|
+
### Miscellaneous
|
|
23
|
+
|
|
24
|
+
- **monorepo:** Update workspace package links
|
|
25
|
+
([89e2511ad](https://github.com/storm-software/storm-ops/commit/89e2511ad))
|
|
26
|
+
|
|
27
|
+
### Updated Dependencies
|
|
28
|
+
|
|
29
|
+
- Updated pnpm-tools to 0.3.2
|
|
30
|
+
- Updated npm-tools to 0.3.2
|
|
31
|
+
- Updated prettier to 0.55.2
|
|
32
|
+
- Updated esbuild to 0.51.2
|
|
33
|
+
- Updated unbuild to 0.55.2
|
|
34
|
+
|
|
5
35
|
## [1.289.1](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.289.1) (2025-09-18)
|
|
6
36
|
|
|
7
37
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkURLWKK3Zjs = require('./chunk-URLWKK3Z.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var _chunkDA53ZKBYjs = require('./chunk-DA53ZKBY.js');
|
|
|
13
13
|
var _chunk452FQZ3Bjs = require('./chunk-452FQZ3B.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPW43JUUTjs = require('./chunk-PW43JUUT.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -25,7 +25,7 @@ var _chunkOSMA3OJGjs = require('./chunk-OSMA3OJG.js');
|
|
|
25
25
|
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkL7U4GRI6js = require('./chunk-L7U4GRI6.js');
|
|
29
29
|
|
|
30
30
|
// src/generators/release-version/generator.ts
|
|
31
31
|
|
|
@@ -326,13 +326,13 @@ async function releaseVersionGeneratorFn(tree, options, config) {
|
|
|
326
326
|
`, config);
|
|
327
327
|
const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "Storm Release Version generator");
|
|
328
328
|
try {
|
|
329
|
-
const workspaceRoot =
|
|
329
|
+
const workspaceRoot = _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, );
|
|
330
330
|
_chunk2CDSXWFAjs.writeDebug.call(void 0,
|
|
331
331
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
332
332
|
- workspaceRoot: ${workspaceRoot}`,
|
|
333
333
|
config
|
|
334
334
|
);
|
|
335
|
-
config = await
|
|
335
|
+
config = await _chunkPW43JUUTjs.getConfig.call(void 0, workspaceRoot);
|
|
336
336
|
_chunk2CDSXWFAjs.writeTrace.call(void 0,
|
|
337
337
|
`Generator schema options \u2699\uFE0F
|
|
338
338
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).filter(
|
|
@@ -368,7 +368,7 @@ Valid values are: ${_versionlegacy.validReleaseVersionPrefixes.map((s) => `"${s}
|
|
|
368
368
|
const projects = options.projects;
|
|
369
369
|
const createResolvePackageRoot = (customPackageRoot) => (projectNode) => {
|
|
370
370
|
if (_optionalChain([projectNode, 'optionalAccess', _2 => _2.data, 'optionalAccess', _3 => _3.root]) === _optionalChain([config, 'optionalAccess', _4 => _4.workspaceRoot]) || _optionalChain([projectNode, 'optionalAccess', _5 => _5.data, 'optionalAccess', _6 => _6.root]) === ".") {
|
|
371
|
-
return _nullishCoalesce(_optionalChain([config, 'optionalAccess', _7 => _7.workspaceRoot]), () => (
|
|
371
|
+
return _nullishCoalesce(_optionalChain([config, 'optionalAccess', _7 => _7.workspaceRoot]), () => ( _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, )));
|
|
372
372
|
}
|
|
373
373
|
if (!customPackageRoot) {
|
|
374
374
|
return projectNode.data.root;
|
|
@@ -410,7 +410,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
410
410
|
);
|
|
411
411
|
}
|
|
412
412
|
const workspaceRelativePackagePath = _path.relative.call(void 0,
|
|
413
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.workspaceRoot]), () => (
|
|
413
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.workspaceRoot]), () => ( _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, ))),
|
|
414
414
|
tree.exists(packageJsonPath) ? packageJsonPath : cargoTomlPath
|
|
415
415
|
);
|
|
416
416
|
const log = (msg) => {
|
|
@@ -448,19 +448,19 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
448
448
|
switch (options.currentVersionResolver) {
|
|
449
449
|
case "registry": {
|
|
450
450
|
const metadata = _nullishCoalesce(options.currentVersionResolverMetadata, () => ( {}));
|
|
451
|
-
const tag = _nullishCoalesce(metadata.tag, () => (
|
|
452
|
-
const registry = await _asyncNullishCoalesce(metadata.registry, async () => ( await
|
|
453
|
-
const npmRegistry = await
|
|
454
|
-
const githubRegistry = await
|
|
451
|
+
const tag = _nullishCoalesce(metadata.tag, () => ( _chunkURLWKK3Zjs.DEFAULT_NPM_TAG));
|
|
452
|
+
const registry = await _asyncNullishCoalesce(metadata.registry, async () => ( await _chunkURLWKK3Zjs.getRegistry.call(void 0, )));
|
|
453
|
+
const npmRegistry = await _chunkURLWKK3Zjs.getNpmRegistry.call(void 0, );
|
|
454
|
+
const githubRegistry = await _chunkURLWKK3Zjs.getGitHubRegistry.call(void 0, );
|
|
455
455
|
if (options.releaseGroup.projectsRelationship === "independent") {
|
|
456
456
|
try {
|
|
457
|
-
currentVersion = await
|
|
457
|
+
currentVersion = await _chunkURLWKK3Zjs.getVersion.call(void 0, packageName, tag, { registry });
|
|
458
458
|
if (!currentVersion) {
|
|
459
|
-
currentVersion = await
|
|
459
|
+
currentVersion = await _chunkURLWKK3Zjs.getVersion.call(void 0, packageName, tag, {
|
|
460
460
|
registry: npmRegistry
|
|
461
461
|
});
|
|
462
462
|
if (!currentVersion) {
|
|
463
|
-
currentVersion = await
|
|
463
|
+
currentVersion = await _chunkURLWKK3Zjs.getVersion.call(void 0, packageName, tag, {
|
|
464
464
|
registry: githubRegistry
|
|
465
465
|
});
|
|
466
466
|
}
|
|
@@ -470,7 +470,7 @@ To fix this you will either need to add a package.json or Cargo.toml file at tha
|
|
|
470
470
|
);
|
|
471
471
|
} catch (e) {
|
|
472
472
|
try {
|
|
473
|
-
currentVersion = await
|
|
473
|
+
currentVersion = await _chunkURLWKK3Zjs.getVersion.call(void 0, packageName, tag, {
|
|
474
474
|
registry: githubRegistry
|
|
475
475
|
});
|
|
476
476
|
log(
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkLJDV7HFTjs = require('./chunk-LJDV7HFT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAEPPOUTZjs = require('./chunk-AEPPOUTZ.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-clippy/executor.ts
|
|
10
10
|
async function cargoClippyExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "clippy", options, context);
|
|
12
12
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkAEPPOUTZjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Clippy",
|
|
16
16
|
cargoClippyExecutor,
|
|
17
17
|
{
|
|
@@ -7,7 +7,7 @@ var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
|
7
7
|
var _chunkAX3RSZT7js = require('./chunk-AX3RSZT7.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkG2L3EEEOjs = require('./chunk-G2L3EEEO.js');
|
|
11
11
|
|
|
12
12
|
// src/base/typescript-library-generator.ts
|
|
13
13
|
|
|
@@ -55,16 +55,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
55
55
|
const projectConfig = {
|
|
56
56
|
root: normalized.directory,
|
|
57
57
|
projectType: "library",
|
|
58
|
-
sourceRoot:
|
|
58
|
+
sourceRoot: _chunkG2L3EEEOjs.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
59
59
|
targets: {
|
|
60
60
|
build: {
|
|
61
61
|
executor: options.buildExecutor,
|
|
62
62
|
outputs: ["{options.outputPath}"],
|
|
63
63
|
options: {
|
|
64
|
-
entry: [
|
|
64
|
+
entry: [_chunkG2L3EEEOjs.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
65
65
|
outputPath: getOutputPath(normalized),
|
|
66
|
-
tsconfig:
|
|
67
|
-
project:
|
|
66
|
+
tsconfig: _chunkG2L3EEEOjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
67
|
+
project: _chunkG2L3EEEOjs.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
68
68
|
defaultConfiguration: "production",
|
|
69
69
|
platform: "neutral",
|
|
70
70
|
assets: [
|
|
@@ -121,7 +121,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
121
121
|
if (!normalized.importPath) {
|
|
122
122
|
normalized.importPath = normalized.name;
|
|
123
123
|
}
|
|
124
|
-
const packageJsonPath =
|
|
124
|
+
const packageJsonPath = _chunkG2L3EEEOjs.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
125
125
|
if (tree.exists(packageJsonPath)) {
|
|
126
126
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
127
127
|
if (!normalized.importPath) {
|
|
@@ -178,14 +178,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
178
178
|
}));
|
|
179
179
|
}
|
|
180
180
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
181
|
-
|
|
181
|
+
_chunkG2L3EEEOjs.joinPaths.call(void 0,
|
|
182
182
|
normalized.projectRoot,
|
|
183
183
|
"./src",
|
|
184
184
|
`index.${normalized.js ? "js" : "ts"}`
|
|
185
185
|
)
|
|
186
186
|
]);
|
|
187
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
188
|
-
|
|
187
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkG2L3EEEOjs.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
188
|
+
_chunkG2L3EEEOjs.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
189
189
|
]);
|
|
190
190
|
if (tree.exists("package.json")) {
|
|
191
191
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -196,7 +196,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
196
196
|
description = packageJson.description;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
const tsconfigPath =
|
|
199
|
+
const tsconfigPath = _chunkG2L3EEEOjs.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
200
200
|
if (tree.exists(tsconfigPath)) {
|
|
201
201
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
202
202
|
json.composite ??= true;
|
|
@@ -224,7 +224,7 @@ function getOutputPath(options) {
|
|
|
224
224
|
} else {
|
|
225
225
|
parts.push(options.projectRoot);
|
|
226
226
|
}
|
|
227
|
-
return
|
|
227
|
+
return _chunkG2L3EEEOjs.joinPaths.call(void 0, ...parts);
|
|
228
228
|
}
|
|
229
229
|
function createProjectTsConfigJson(tree, options) {
|
|
230
230
|
const tsconfig = {
|
|
@@ -232,7 +232,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
232
232
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _15 => _15.tsconfigOptions]), () => ( {})),
|
|
233
233
|
compilerOptions: {
|
|
234
234
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
235
|
-
outDir:
|
|
235
|
+
outDir: _chunkG2L3EEEOjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
236
236
|
noEmit: true,
|
|
237
237
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _16 => _16.tsconfigOptions, 'optionalAccess', _17 => _17.compilerOptions]), () => ( {}))
|
|
238
238
|
},
|
|
@@ -250,7 +250,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
250
250
|
"src/**/*.test.ts"
|
|
251
251
|
]
|
|
252
252
|
};
|
|
253
|
-
_devkit.writeJson.call(void 0, tree,
|
|
253
|
+
_devkit.writeJson.call(void 0, tree, _chunkG2L3EEEOjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
254
254
|
}
|
|
255
255
|
async function normalizeOptions(tree, options, config) {
|
|
256
256
|
let importPath = options.importPath;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceProjectTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BYDAHL6O.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZERVVKRK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
formatLogMessage,
|
|
10
10
|
getStopwatch,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-V44DYGWX.mjs";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2C4FZPU6.mjs";
|
|
21
21
|
|
|
22
22
|
// src/base/base-executor.ts
|
|
23
23
|
import { defu } from "defu";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAEPPOUTZjs = require('./chunk-AEPPOUTZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkG2L3EEEOjs = require('./chunk-G2L3EEEO.js');
|
|
10
10
|
|
|
11
11
|
// src/executors/unbuild/executor.ts
|
|
12
12
|
var _defu = require('defu');
|
|
@@ -29,7 +29,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
32
|
-
fsCache: config.skipCache ? false :
|
|
32
|
+
fsCache: config.skipCache ? false : _chunkG2L3EEEOjs.joinPaths.call(void 0,
|
|
33
33
|
config.workspaceRoot,
|
|
34
34
|
config.directories.cache || "node_modules/.cache/storm",
|
|
35
35
|
"jiti"
|
|
@@ -51,7 +51,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
51
51
|
{
|
|
52
52
|
stubOptions: {
|
|
53
53
|
jiti: {
|
|
54
|
-
fsCache: config.skipCache ? false :
|
|
54
|
+
fsCache: config.skipCache ? false : _chunkG2L3EEEOjs.joinPaths.call(void 0,
|
|
55
55
|
config.workspaceRoot,
|
|
56
56
|
config.directories.cache || "node_modules/.cache/storm",
|
|
57
57
|
"jiti"
|
|
@@ -80,7 +80,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
80
80
|
success: true
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
var executor_default =
|
|
83
|
+
var executor_default = _chunkAEPPOUTZjs.withRunExecutor.call(void 0,
|
|
84
84
|
"TypeScript Unbuild build",
|
|
85
85
|
unbuildExecutorFn,
|
|
86
86
|
{
|
|
@@ -7,7 +7,7 @@ var _chunk452FQZ3Bjs = require('./chunk-452FQZ3B.js');
|
|
|
7
7
|
var _chunkAX3RSZT7js = require('./chunk-AX3RSZT7.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkG2L3EEEOjs = require('./chunk-G2L3EEEO.js');
|
|
11
11
|
|
|
12
12
|
// src/utils/package-helpers.ts
|
|
13
13
|
|
|
@@ -48,7 +48,7 @@ var getPackageInfo = (project) => {
|
|
|
48
48
|
return null;
|
|
49
49
|
};
|
|
50
50
|
async function addPackageJsonGitHead(packageRoot) {
|
|
51
|
-
const packageJsonPath =
|
|
51
|
+
const packageJsonPath = _chunkG2L3EEEOjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
52
52
|
if (!packageJsonPath) {
|
|
53
53
|
throw new Error(
|
|
54
54
|
"No file path provided. Please provide a valid path to the package.json file."
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSFE5PARHjs = require('./chunk-SFE5PARH.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPW43JUUTjs = require('./chunk-PW43JUUT.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -17,7 +17,7 @@ var _chunkOSMA3OJGjs = require('./chunk-OSMA3OJG.js');
|
|
|
17
17
|
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkL7U4GRI6js = require('./chunk-L7U4GRI6.js');
|
|
21
21
|
|
|
22
22
|
// src/base/base-executor.ts
|
|
23
23
|
var _defu = require('defu');
|
|
@@ -31,7 +31,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
31
31
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
|
-
const workspaceRoot =
|
|
34
|
+
const workspaceRoot = _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, );
|
|
35
35
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root || workspaceRoot;
|
|
36
36
|
const sourceRoot = context.projectsConfigurations.projects[context.projectName].sourceRoot || projectRoot || workspaceRoot;
|
|
37
37
|
const projectName = context.projectName;
|
|
@@ -47,7 +47,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
47
47
|
`,
|
|
48
48
|
config
|
|
49
49
|
);
|
|
50
|
-
config = await
|
|
50
|
+
config = await _chunkPW43JUUTjs.getConfig.call(void 0, workspaceRoot);
|
|
51
51
|
}
|
|
52
52
|
if (_optionalChain([executorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.applyDefaultOptions])) {
|
|
53
53
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
@@ -62,14 +62,14 @@ ${_chunk2CDSXWFAjs.formatLogMessage.call(void 0, options)}
|
|
|
62
62
|
`,
|
|
63
63
|
config
|
|
64
64
|
);
|
|
65
|
-
const tokenized = await
|
|
65
|
+
const tokenized = await _chunkSFE5PARHjs.applyWorkspaceTokens.call(void 0,
|
|
66
66
|
options,
|
|
67
67
|
_defu.defu.call(void 0,
|
|
68
68
|
{ workspaceRoot, projectRoot, sourceRoot, projectName, config },
|
|
69
69
|
config,
|
|
70
70
|
context.projectsConfigurations.projects[context.projectName]
|
|
71
71
|
),
|
|
72
|
-
|
|
72
|
+
_chunkSFE5PARHjs.applyWorkspaceProjectTokens
|
|
73
73
|
);
|
|
74
74
|
_chunk2CDSXWFAjs.writeTrace.call(void 0,
|
|
75
75
|
`Executor schema tokenized options \u2699\uFE0F
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkL7U4GRI6js = require('./chunk-L7U4GRI6.js');
|
|
4
4
|
|
|
5
5
|
// src/utils/get-project-configurations.ts
|
|
6
6
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
7
7
|
var getProjectConfigurations = async () => {
|
|
8
8
|
return _retrieveworkspacefiles.retrieveProjectConfigurationsWithoutPluginInference.call(void 0,
|
|
9
|
-
|
|
9
|
+
_chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, )
|
|
10
10
|
);
|
|
11
11
|
};
|
|
12
12
|
var getProjectConfiguration = (projectName) => _optionalChain([getProjectConfigurations, 'call', _ => _(), 'optionalAccess', _2 => _2[projectName]]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HP36FVRU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IYDKU4UX.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C26A6BXG.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname
|
|
13
13
|
} from "./chunk-QFSU34UE.mjs";
|
|
@@ -14,7 +14,7 @@ var correctPaths = function(path) {
|
|
|
14
14
|
return ".";
|
|
15
15
|
}
|
|
16
16
|
path = normalizeWindowsPath(path);
|
|
17
|
-
const isUNCPath = path
|
|
17
|
+
const isUNCPath = path?.match(_UNC_REGEX);
|
|
18
18
|
const isPathAbsolute = isAbsolute(path);
|
|
19
19
|
const trailingSeparator = path[path.length - 1] === "/";
|
|
20
20
|
path = normalizeString(path, !isPathAbsolute);
|