@storm-software/workspace-tools 1.240.2 → 1.240.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 +22 -0
- package/README.md +1 -1
- package/dist/chunk-2AUNU6UA.mjs +32 -0
- package/dist/{chunk-WPMFZECR.js → chunk-2GRVQNW3.js} +3 -3
- package/dist/{chunk-HCEVPME2.js → chunk-2HD75CLD.js} +11 -11
- package/dist/{chunk-QLOTS3MH.mjs → chunk-3SP4ZXOA.mjs} +2 -2
- package/dist/{chunk-M47JATRY.mjs → chunk-4BEERAL7.mjs} +4 -4
- package/dist/{chunk-XSRDTQ5C.mjs → chunk-5AQJQ72E.mjs} +4 -4
- package/dist/{chunk-ZPWY4RXH.js → chunk-5DAZ2WTI.js} +2 -2
- package/dist/{chunk-WGNNLNSH.mjs → chunk-5XF4CY7D.mjs} +1 -1
- package/dist/{chunk-6TSAUSG4.mjs → chunk-6N67WSX5.mjs} +1 -1
- package/dist/{chunk-XS73BPQS.js → chunk-6QSFQS3X.js} +2 -2
- package/dist/{chunk-BJAK7EVK.js → chunk-7GKIVRFH.js} +6 -6
- package/dist/{chunk-5FEFILUQ.mjs → chunk-7PLUDZNP.mjs} +2 -2
- package/dist/{chunk-NYX3ICKR.mjs → chunk-7Q66XSCS.mjs} +2 -2
- package/dist/{chunk-RN4QXP7F.js → chunk-B6PUPX6O.js} +27 -27
- package/dist/{chunk-XCSSYTCU.js → chunk-BUXJSVJG.js} +11 -5
- package/dist/{chunk-M4PPRKPX.mjs → chunk-CFRPLVEU.mjs} +2 -2
- package/dist/{chunk-FFBZYD6R.mjs → chunk-CLBFXZQ5.mjs} +1 -1
- package/dist/{chunk-PB6J3FU7.js → chunk-D2ECVPJF.js} +2 -2
- package/dist/{chunk-TYAPQ46X.js → chunk-EDVXB4EP.js} +28 -20
- package/dist/{chunk-Y7RQKDIF.js → chunk-EFPBJWHS.js} +5 -5
- package/dist/{chunk-Y5SXJ6IC.mjs → chunk-EUCOXCI2.mjs} +3 -3
- package/dist/{chunk-JKJK4ONU.mjs → chunk-GJ6DN3BR.mjs} +3 -3
- package/dist/{chunk-33S3ENYB.mjs → chunk-GMC262MH.mjs} +4 -4
- package/dist/{chunk-3LJCHADS.js → chunk-GYGIXXAL.js} +5 -5
- package/dist/{chunk-NWSV2EYZ.js → chunk-HONSACRT.js} +2 -2
- package/dist/{chunk-AJ7WQHX5.mjs → chunk-HXU5ZXAJ.mjs} +1 -1
- package/dist/{chunk-CRMDACYF.js → chunk-IBHLVELV.js} +25 -25
- package/dist/{chunk-MQAKNE4X.js → chunk-IF2GIONQ.js} +5 -5
- package/dist/{chunk-I5N7XQEK.mjs → chunk-IUV3RLT4.mjs} +1 -1
- package/dist/{chunk-6NSTM255.js → chunk-JARU6ZVH.js} +41 -41
- package/dist/{chunk-2VV3TV3C.js → chunk-JOJ3CZQC.js} +5 -5
- package/dist/{chunk-2BQA54CQ.mjs → chunk-K62HB3IT.mjs} +1 -1
- package/dist/{chunk-4AOGBZNI.js → chunk-K7QVZAWD.js} +2 -2
- package/dist/{chunk-EGBJI6CN.js → chunk-KLHTXAIU.js} +20 -20
- package/dist/{chunk-RRQ7WHLD.mjs → chunk-KWIXQ4UN.mjs} +3 -3
- package/dist/{chunk-6WRRTV43.js → chunk-L5FYEAAP.js} +62 -62
- package/dist/{chunk-762D6XMQ.mjs → chunk-LNDWWYO3.mjs} +2 -2
- package/dist/chunk-LUQIF4A3.mjs +73 -0
- package/dist/{chunk-MFWYLIWY.mjs → chunk-LYUV4LMB.mjs} +2 -2
- package/dist/{chunk-MZ6IF3DO.js → chunk-MMMTLP2W.js} +5 -5
- package/dist/{chunk-XID4OBY2.mjs → chunk-N7VQR5KC.mjs} +25 -17
- package/dist/{chunk-F7QTSVDJ.mjs → chunk-NJ2QOT34.mjs} +1 -1
- package/dist/{chunk-PY52QA2R.js → chunk-PK2SUBWI.js} +7 -7
- package/dist/{chunk-FOYWFRVO.mjs → chunk-Q45DDLNL.mjs} +2 -2
- package/dist/{chunk-YVJY3MXR.js → chunk-QSLN7UYG.js} +2 -2
- package/dist/{chunk-BWFTYFWM.js → chunk-RFO5NMSB.js} +2 -2
- package/dist/{chunk-4ZKSU75O.js → chunk-RRWRVA7F.js} +15 -15
- package/dist/{chunk-2JLHVV5S.js → chunk-RSILHGEU.js} +21 -21
- package/dist/{chunk-SBHOAJIT.js → chunk-RTFFYOEY.js} +5 -5
- package/dist/{chunk-JXMDPU4I.mjs → chunk-SNFZL5BN.mjs} +3 -3
- package/dist/{chunk-SC3ANGC5.mjs → chunk-T342MIBF.mjs} +3 -3
- package/dist/{chunk-7HUOKMPU.mjs → chunk-TGDWEUKX.mjs} +1 -1
- package/dist/{chunk-JE4JY3YS.mjs → chunk-U4K5KWKS.mjs} +2 -2
- package/dist/{chunk-5MKQX2FE.js → chunk-U6TLQT5H.js} +3 -3
- package/dist/chunk-UF6KFXG5.js +73 -0
- package/dist/{chunk-BFKQCOQJ.mjs → chunk-UI3SQYV3.mjs} +1 -1
- package/dist/{chunk-FBLF4KJF.js → chunk-XHH2IY66.js} +15 -15
- package/dist/{chunk-RXH7O5YP.mjs → chunk-XIOF32ZH.mjs} +1 -1
- package/dist/{chunk-APBDTIK2.js → chunk-YSYBVJGR.js} +2 -2
- package/dist/{chunk-SGSMEZWT.js → chunk-YWKUJJ34.js} +2 -2
- package/dist/{chunk-HO2DSAZ2.mjs → chunk-ZERO7WV2.mjs} +1 -1
- package/dist/{chunk-DMUTOQCB.mjs → chunk-ZOFW74B2.mjs} +1 -1
- package/dist/executors.js +19 -19
- package/dist/executors.mjs +18 -18
- package/dist/generators.js +15 -15
- package/dist/generators.mjs +16 -16
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +44 -34
- package/dist/index.mjs +53 -43
- 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 +9 -9
- package/dist/src/base/index.mjs +8 -8
- 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 +9 -9
- package/dist/src/executors/clean-package/executor.mjs +5 -5
- package/dist/src/executors/esbuild/executor.js +8 -8
- package/dist/src/executors/esbuild/executor.mjs +7 -7
- package/dist/src/executors/npm-publish/executor.js +4 -4
- package/dist/src/executors/npm-publish/executor.mjs +3 -3
- package/dist/src/executors/size-limit/executor.js +7 -7
- package/dist/src/executors/size-limit/executor.mjs +6 -6
- package/dist/src/executors/tsdown/executor.js +8 -8
- package/dist/src/executors/tsdown/executor.mjs +7 -7
- 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 +9 -9
- package/dist/src/generators/browser-library/generator.mjs +8 -8
- 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 +9 -9
- package/dist/src/generators/neutral-library/generator.mjs +8 -8
- package/dist/src/generators/node-library/generator.js +9 -9
- package/dist/src/generators/node-library/generator.mjs +8 -8
- 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 +5 -5
- package/dist/src/generators/release-version/generator.mjs +4 -4
- package/dist/src/plugins/typescript/index.js +3 -2
- package/dist/src/plugins/typescript/index.mjs +2 -1
- package/dist/src/plugins/typescript/project-config.js +3 -2
- package/dist/src/plugins/typescript/project-config.mjs +2 -1
- package/dist/src/plugins/typescript/tsdown.js +9 -2
- package/dist/src/plugins/typescript/tsdown.mjs +9 -2
- package/dist/src/plugins/typescript/tsup.js +9 -2
- package/dist/src/plugins/typescript/tsup.mjs +9 -2
- 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.d.mts +2 -1
- package/dist/src/utils/index.d.ts +2 -1
- package/dist/src/utils/index.js +20 -10
- package/dist/src/utils/index.mjs +27 -17
- package/dist/src/utils/lock-file.d.mts +1 -1
- package/dist/src/utils/lock-file.d.ts +1 -1
- package/dist/src/utils/lock-file.js +2 -2
- package/dist/src/utils/lock-file.mjs +1 -1
- package/dist/src/utils/plugin-helpers.d.mts +9 -0
- package/dist/src/utils/plugin-helpers.d.ts +9 -0
- package/dist/src/utils/plugin-helpers.js +14 -0
- package/dist/src/utils/plugin-helpers.mjs +14 -0
- package/dist/src/utils/pnpm-deps-update.js +3 -3
- package/dist/src/utils/pnpm-deps-update.mjs +2 -2
- package/package.json +2 -7
- package/dist/chunk-PVTEDLBL.mjs +0 -26
- /package/dist/{chunk-JGP4YWZY.js → chunk-DO2X7OZO.js} +0 -0
- /package/dist/{chunk-6YZ3OUJB.mjs → chunk-XCVH63OO.mjs} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## 1.240.4 (2025-01-23)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **monorepo:** Resolve issue with invalid Nx Devkit imports ([356d591c](https://github.com/storm-software/storm-ops/commit/356d591c))
|
|
6
|
+
|
|
7
|
+
## 1.240.3 (2025-01-23)
|
|
8
|
+
|
|
9
|
+
### Miscellaneous
|
|
10
|
+
|
|
11
|
+
- **monorepo:** Regenerate README markdown files ([64e4e1f3](https://github.com/storm-software/storm-ops/commit/64e4e1f3))
|
|
12
|
+
|
|
13
|
+
### 🧱 Updated Dependencies
|
|
14
|
+
|
|
15
|
+
- Updated prettier to 0.30.5
|
|
16
|
+
- Updated esbuild to 0.21.7
|
|
17
|
+
- Updated esbuild to 0.21.7
|
|
18
|
+
- Updated unbuild to 0.31.3
|
|
19
|
+
- Updated unbuild to 0.31.3
|
|
20
|
+
- Updated tsdown to 0.22.7
|
|
21
|
+
- Updated tsdown to 0.22.7
|
|
22
|
+
|
|
1
23
|
## 1.240.2 (2025-01-23)
|
|
2
24
|
|
|
3
25
|
### 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 -->
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./chunk-XUV4U54K.mjs";
|
|
4
|
+
|
|
5
|
+
// ../config-tools/src/utilities/correct-paths.ts
|
|
6
|
+
import { join } from "node:path";
|
|
7
|
+
var removeWindowsDriveLetter = /* @__PURE__ */ __name((osSpecificPath) => {
|
|
8
|
+
return osSpecificPath.replace(/^[A-Z]:/, "");
|
|
9
|
+
}, "removeWindowsDriveLetter");
|
|
10
|
+
var correctPaths = /* @__PURE__ */ __name((path) => {
|
|
11
|
+
if (!path) {
|
|
12
|
+
return "";
|
|
13
|
+
}
|
|
14
|
+
if (path.includes("\\")) {
|
|
15
|
+
if (!path.toUpperCase().startsWith("C:")) {
|
|
16
|
+
path = `C:${path}`;
|
|
17
|
+
}
|
|
18
|
+
return path.replaceAll("/", "\\");
|
|
19
|
+
}
|
|
20
|
+
return removeWindowsDriveLetter(path).split("\\").join("/");
|
|
21
|
+
}, "correctPaths");
|
|
22
|
+
var joinPaths = /* @__PURE__ */ __name((...paths) => {
|
|
23
|
+
if (!paths || paths.length === 0) {
|
|
24
|
+
return "";
|
|
25
|
+
}
|
|
26
|
+
return correctPaths(join(...paths));
|
|
27
|
+
}, "joinPaths");
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
correctPaths,
|
|
31
|
+
joinPaths
|
|
32
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkBUXJSVJGjs = require('./chunk-BUXJSVJG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -13,7 +13,7 @@ var _readyamlfile = require('read-yaml-file'); var _readyamlfile2 = _interopRequ
|
|
|
13
13
|
var pnpmCatalog;
|
|
14
14
|
async function pnpmCatalogUpdate(packageRoot, workspaceRoot = process.cwd()) {
|
|
15
15
|
if (!pnpmCatalog) {
|
|
16
|
-
const pnpmWorkspacePath =
|
|
16
|
+
const pnpmWorkspacePath = _chunkBUXJSVJGjs.joinPaths.call(void 0, workspaceRoot, "pnpm-workspace.yaml");
|
|
17
17
|
if (!_fs.existsSync.call(void 0, pnpmWorkspacePath)) {
|
|
18
18
|
console.warn(`No \`pnpm-workspace.yaml\` file found in workspace root (searching in: ${pnpmWorkspacePath}). Skipping pnpm catalog read for now.`);
|
|
19
19
|
return;
|
|
@@ -31,7 +31,7 @@ File contents: ${pnpmWorkspaceYaml ? JSON.stringify(pnpmWorkspaceYaml) : "EMPTY
|
|
|
31
31
|
if (!pnpmCatalog) {
|
|
32
32
|
console.warn(`No pnpm catalog found. Attempting to read from workspace root's \`pnpm-workspace.yaml\` file.`);
|
|
33
33
|
}
|
|
34
|
-
const packageJsonPath =
|
|
34
|
+
const packageJsonPath = _chunkBUXJSVJGjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
35
35
|
const packageJsonFile = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
|
|
36
36
|
if (!packageJsonFile) {
|
|
37
37
|
throw new Error("No package.json file found in package root: " + packageRoot);
|
|
@@ -1,15 +1,15 @@
|
|
|
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 _chunkKLHTXAIUjs = require('./chunk-KLHTXAIU.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkB6PUPX6Ojs = require('./chunk-B6PUPX6O.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkU6TLQT5Hjs = require('./chunk-U6TLQT5H.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -18,25 +18,25 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
19
19
|
var _zodtojsonschema = require('zod-to-json-schema');
|
|
20
20
|
async function configSchemaGeneratorFn(tree, options, config) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0,
|
|
21
|
+
_chunkB6PUPX6Ojs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Configuration JSON Schema generator", config);
|
|
22
|
+
_chunkB6PUPX6Ojs.writeTrace.call(void 0, `Determining the Storm Configuration JSON Schema...`, config);
|
|
23
|
+
const jsonSchema = _zodtojsonschema.zodToJsonSchema.call(void 0, _chunkB6PUPX6Ojs.StormConfigSchema, {
|
|
24
24
|
name: "StormWorkspaceConfiguration"
|
|
25
25
|
});
|
|
26
|
-
|
|
27
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => (
|
|
28
|
-
|
|
26
|
+
_chunkB6PUPX6Ojs.writeTrace.call(void 0, jsonSchema, config);
|
|
27
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunkU6TLQT5Hjs.findWorkspaceRoot.call(void 0, ))), _optionalChain([options, 'access', _2 => _2.outputFile, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("./")]) ? "" : "./");
|
|
28
|
+
_chunkB6PUPX6Ojs.writeTrace.call(void 0, `\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
29
29
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
30
30
|
spaces: 2
|
|
31
31
|
});
|
|
32
32
|
await _devkit.formatFiles.call(void 0, tree);
|
|
33
|
-
|
|
33
|
+
_chunkB6PUPX6Ojs.writeSuccess.call(void 0, "\u{1F680} Storm Configuration JSON Schema creation has completed successfully!", config);
|
|
34
34
|
return {
|
|
35
35
|
success: true
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
_chunk3GQAWCBQjs.__name.call(void 0, configSchemaGeneratorFn, "configSchemaGeneratorFn");
|
|
39
|
-
var generator_default =
|
|
39
|
+
var generator_default = _chunkKLHTXAIUjs.withRunGenerator.call(void 0, "Configuration Schema Creator", configSchemaGeneratorFn, {
|
|
40
40
|
hooks: {
|
|
41
41
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
42
42
|
options.outputFile ??= "{workspaceRoot}/storm-workspace.schema.json";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5AQJQ72E.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SNFZL5BN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__dirname,
|
|
10
10
|
__name
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEntryPoints,
|
|
8
8
|
getEnv
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EUCOXCI2.mjs";
|
|
10
10
|
import {
|
|
11
11
|
withRunExecutor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GJ6DN3BR.mjs";
|
|
13
13
|
import {
|
|
14
14
|
getConfig,
|
|
15
15
|
getStopwatch,
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
writeInfo,
|
|
20
20
|
writeSuccess,
|
|
21
21
|
writeWarning
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7Q66XSCS.mjs";
|
|
23
23
|
import {
|
|
24
24
|
joinPaths
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2AUNU6UA.mjs";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
nxVersion
|
|
3
|
+
} from "./chunk-EK75QNMS.mjs";
|
|
1
4
|
import {
|
|
2
5
|
ProjectTagConstants,
|
|
3
6
|
addProjectTag
|
|
4
7
|
} from "./chunk-66TYTM73.mjs";
|
|
5
|
-
import {
|
|
6
|
-
nxVersion
|
|
7
|
-
} from "./chunk-EK75QNMS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2AUNU6UA.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkU6TLQT5Hjs = require('./chunk-U6TLQT5H.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -8,7 +8,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
8
8
|
// src/utils/get-project-configurations.ts
|
|
9
9
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
10
10
|
var getProjectConfigurations = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async () => {
|
|
11
|
-
return _retrieveworkspacefiles.retrieveProjectConfigurationsWithoutPluginInference.call(void 0,
|
|
11
|
+
return _retrieveworkspacefiles.retrieveProjectConfigurationsWithoutPluginInference.call(void 0, _chunkU6TLQT5Hjs.findWorkspaceRoot.call(void 0, ));
|
|
12
12
|
}, "getProjectConfigurations");
|
|
13
13
|
var getProjectConfiguration = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (projectName) => _optionalChain([getProjectConfigurations, 'call', _ => _(), 'optionalAccess', _2 => _2[projectName]]), "getProjectConfiguration");
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkU6TLQT5Hjs = require('./chunk-U6TLQT5H.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -32,7 +32,7 @@ var applyWorkspaceBaseTokens = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
if (result.includes("{workspaceRoot}")) {
|
|
35
|
-
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => (
|
|
35
|
+
result = result.replaceAll("{workspaceRoot}", _nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunkU6TLQT5Hjs.findWorkspaceRoot.call(void 0, ))));
|
|
36
36
|
}
|
|
37
37
|
return result;
|
|
38
38
|
}, "applyWorkspaceBaseTokens");
|
|
@@ -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 _chunkIBHLVELVjs = require('./chunk-IBHLVELV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkB6PUPX6Ojs = require('./chunk-B6PUPX6O.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBUXJSVJGjs = require('./chunk-BUXJSVJG.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -15,7 +15,7 @@ var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
|
15
15
|
var _defu = require('defu');
|
|
16
16
|
var _jiti = require('jiti');
|
|
17
17
|
async function unbuildExecutorFn(options, context, config) {
|
|
18
|
-
|
|
18
|
+
_chunkB6PUPX6Ojs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
19
19
|
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
20
20
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
21
21
|
}
|
|
@@ -26,7 +26,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
26
26
|
throw new Error("The Build process failed because the project's source root is not valid. Please run this command from a workspace root directory.");
|
|
27
27
|
}
|
|
28
28
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
29
|
-
fsCache: config.skipCache ? false :
|
|
29
|
+
fsCache: config.skipCache ? false : _chunkBUXJSVJGjs.joinPaths.call(void 0, config.directories.cache || "node_modules/.cache/storm", "jiti"),
|
|
30
30
|
interopDefault: true
|
|
31
31
|
});
|
|
32
32
|
const stormUnbuild = await jiti.import(jiti.esmResolve("@storm-software/unbuild/build"));
|
|
@@ -63,7 +63,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
66
|
-
var executor_default =
|
|
66
|
+
var executor_default = _chunkIBHLVELVjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
67
67
|
skipReadingConfig: false,
|
|
68
68
|
hooks: {
|
|
69
69
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkU6TLQT5Hjs = require('./chunk-U6TLQT5H.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkBUXJSVJGjs = require('./chunk-BUXJSVJG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -244,9 +244,9 @@ var getDefaultConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asyn
|
|
|
244
244
|
let name = void 0;
|
|
245
245
|
let namespace = void 0;
|
|
246
246
|
let repository = void 0;
|
|
247
|
-
const workspaceRoot =
|
|
247
|
+
const workspaceRoot = _chunkU6TLQT5Hjs.findWorkspaceRoot.call(void 0, root);
|
|
248
248
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
|
|
249
|
-
const file = await _promises.readFile.call(void 0,
|
|
249
|
+
const file = await _promises.readFile.call(void 0, _chunkBUXJSVJGjs.joinPaths.call(void 0, workspaceRoot, "package.json"), "utf8");
|
|
250
250
|
if (file) {
|
|
251
251
|
const packageJson = JSON.parse(file);
|
|
252
252
|
if (packageJson.name) {
|
|
@@ -511,7 +511,7 @@ var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
|
511
511
|
var _c12 = require('c12');
|
|
512
512
|
|
|
513
513
|
var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (fileName, filePath, options = {}) => {
|
|
514
|
-
const workspacePath = filePath ||
|
|
514
|
+
const workspacePath = filePath || _chunkU6TLQT5Hjs.findWorkspaceRoot.call(void 0, filePath);
|
|
515
515
|
const configs = await Promise.all([
|
|
516
516
|
_c12.loadConfig.call(void 0, {
|
|
517
517
|
cwd: workspacePath,
|
|
@@ -520,7 +520,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
|
|
|
520
520
|
envName: _optionalChain([fileName, 'optionalAccess', _26 => _26.toUpperCase, 'call', _27 => _27()]),
|
|
521
521
|
jitiOptions: {
|
|
522
522
|
debug: false,
|
|
523
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
523
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkBUXJSVJGjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
524
524
|
},
|
|
525
525
|
...options
|
|
526
526
|
}),
|
|
@@ -531,7 +531,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
|
|
|
531
531
|
envName: _optionalChain([fileName, 'optionalAccess', _28 => _28.toUpperCase, 'call', _29 => _29()]),
|
|
532
532
|
jitiOptions: {
|
|
533
533
|
debug: false,
|
|
534
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
534
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkBUXJSVJGjs.joinPaths.call(void 0, process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
535
535
|
},
|
|
536
536
|
configFile: fileName,
|
|
537
537
|
...options
|
|
@@ -540,7 +540,7 @@ var getConfigFileByName = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, a
|
|
|
540
540
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
541
541
|
}, "getConfigFileByName");
|
|
542
542
|
var getConfigFile = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (filePath, additionalFileNames = []) => {
|
|
543
|
-
const workspacePath = filePath ? filePath :
|
|
543
|
+
const workspacePath = filePath ? filePath : _chunkU6TLQT5Hjs.findWorkspaceRoot.call(void 0, filePath);
|
|
544
544
|
const result = await getConfigFileByName("storm", workspacePath);
|
|
545
545
|
let config = result.config;
|
|
546
546
|
const configFile = result.configFile;
|
|
@@ -597,15 +597,15 @@ var getConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, () => {
|
|
|
597
597
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
598
598
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
599
599
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
600
|
-
configFile: process.env[`${prefix}CONFIG_FILE`] ?
|
|
601
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
600
|
+
configFile: process.env[`${prefix}CONFIG_FILE`] ? _chunkBUXJSVJGjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
601
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkBUXJSVJGjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
602
602
|
directories: {
|
|
603
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
604
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
605
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
606
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
607
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
608
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
603
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkBUXJSVJGjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : void 0,
|
|
604
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkBUXJSVJGjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : void 0,
|
|
605
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkBUXJSVJGjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : void 0,
|
|
606
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkBUXJSVJGjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : void 0,
|
|
607
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkBUXJSVJGjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : void 0,
|
|
608
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkBUXJSVJGjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : void 0
|
|
609
609
|
},
|
|
610
610
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
611
611
|
env: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}ENV`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -782,31 +782,31 @@ var setConfigEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (config)
|
|
|
782
782
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
783
783
|
}
|
|
784
784
|
if (config.configFile) {
|
|
785
|
-
process.env[`${prefix}CONFIG_FILE`] =
|
|
785
|
+
process.env[`${prefix}CONFIG_FILE`] = _chunkBUXJSVJGjs.correctPaths.call(void 0, config.configFile);
|
|
786
786
|
}
|
|
787
787
|
if (config.workspaceRoot) {
|
|
788
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
789
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
790
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
788
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkBUXJSVJGjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
789
|
+
process.env.NX_WORKSPACE_ROOT = _chunkBUXJSVJGjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
790
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkBUXJSVJGjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
791
791
|
}
|
|
792
792
|
if (config.directories) {
|
|
793
793
|
if (!config.skipCache && config.directories.cache) {
|
|
794
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
794
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkBUXJSVJGjs.correctPaths.call(void 0, config.directories.cache);
|
|
795
795
|
}
|
|
796
796
|
if (config.directories.data) {
|
|
797
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
797
|
+
process.env[`${prefix}DATA_DIR`] = _chunkBUXJSVJGjs.correctPaths.call(void 0, config.directories.data);
|
|
798
798
|
}
|
|
799
799
|
if (config.directories.config) {
|
|
800
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
800
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkBUXJSVJGjs.correctPaths.call(void 0, config.directories.config);
|
|
801
801
|
}
|
|
802
802
|
if (config.directories.temp) {
|
|
803
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
803
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkBUXJSVJGjs.correctPaths.call(void 0, config.directories.temp);
|
|
804
804
|
}
|
|
805
805
|
if (config.directories.log) {
|
|
806
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
806
|
+
process.env[`${prefix}LOG_DIR`] = _chunkBUXJSVJGjs.correctPaths.call(void 0, config.directories.log);
|
|
807
807
|
}
|
|
808
808
|
if (config.directories.build) {
|
|
809
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
809
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkBUXJSVJGjs.correctPaths.call(void 0, config.directories.build);
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
if (config.skipCache !== void 0) {
|
|
@@ -974,7 +974,7 @@ var createStormConfig = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, asy
|
|
|
974
974
|
if (!_optionalChain([_static_cache, 'optionalAccess', _54 => _54.data]) || !_optionalChain([_static_cache, 'optionalAccess', _55 => _55.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
975
975
|
let _workspaceRoot = workspaceRoot;
|
|
976
976
|
if (!_workspaceRoot) {
|
|
977
|
-
_workspaceRoot =
|
|
977
|
+
_workspaceRoot = _chunkU6TLQT5Hjs.findWorkspaceRoot.call(void 0, );
|
|
978
978
|
}
|
|
979
979
|
const configEnv = getConfigEnv();
|
|
980
980
|
const defaultConfig = await getDefaultConfig(_workspaceRoot);
|
|
@@ -3,21 +3,27 @@
|
|
|
3
3
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
6
|
-
var
|
|
6
|
+
var _path = require('path');
|
|
7
|
+
var removeWindowsDriveLetter = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (osSpecificPath) => {
|
|
8
|
+
return osSpecificPath.replace(/^[A-Z]:/, "");
|
|
9
|
+
}, "removeWindowsDriveLetter");
|
|
7
10
|
var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (path) => {
|
|
8
11
|
if (!path) {
|
|
9
12
|
return "";
|
|
10
13
|
}
|
|
11
|
-
if (
|
|
12
|
-
path
|
|
14
|
+
if (path.includes("\\")) {
|
|
15
|
+
if (!path.toUpperCase().startsWith("C:")) {
|
|
16
|
+
path = `C:${path}`;
|
|
17
|
+
}
|
|
18
|
+
return path.replaceAll("/", "\\");
|
|
13
19
|
}
|
|
14
|
-
return path.
|
|
20
|
+
return removeWindowsDriveLetter(path).split("\\").join("/");
|
|
15
21
|
}, "correctPaths");
|
|
16
22
|
var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (...paths) => {
|
|
17
23
|
if (!paths || paths.length === 0) {
|
|
18
24
|
return "";
|
|
19
25
|
}
|
|
20
|
-
return correctPaths(
|
|
26
|
+
return correctPaths(_path.join.call(void 0, ...paths));
|
|
21
27
|
}, "joinPaths");
|
|
22
28
|
|
|
23
29
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkHI4G4OOGjs = require('./chunk-HI4G4OOG.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKLHTXAIUjs = require('./chunk-KLHTXAIU.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -232,7 +232,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
232
232
|
return null;
|
|
233
233
|
}
|
|
234
234
|
_chunk3GQAWCBQjs.__name.call(void 0, presetGeneratorFn, "presetGeneratorFn");
|
|
235
|
-
var generator_default =
|
|
235
|
+
var generator_default = _chunkKLHTXAIUjs.withRunGenerator.call(void 0, "Storm Workspace Preset Generator", presetGeneratorFn);
|
|
236
236
|
|
|
237
237
|
|
|
238
238
|
|
|
@@ -1,5 +1,8 @@
|
|
|
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 _chunkUF6KFXG5js = require('./chunk-UF6KFXG5.js');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
|
|
4
7
|
|
|
5
8
|
|
|
@@ -271,34 +274,39 @@ var createNodes = [
|
|
|
271
274
|
_chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Language.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Language.TYPESCRIPT, {
|
|
272
275
|
overwrite: true
|
|
273
276
|
});
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
277
|
+
const platform = _chunkUF6KFXG5js.getProjectPlatform.call(void 0, project);
|
|
278
|
+
switch (platform) {
|
|
279
|
+
case "worker":
|
|
280
|
+
_chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.WORKER, {
|
|
281
|
+
overwrite: true
|
|
282
|
+
});
|
|
283
|
+
break;
|
|
284
|
+
case "node":
|
|
285
|
+
_chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.NODE, {
|
|
286
|
+
overwrite: true
|
|
287
|
+
});
|
|
288
|
+
break;
|
|
289
|
+
case "browser":
|
|
290
|
+
_chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.BROWSER, {
|
|
291
|
+
overwrite: true
|
|
292
|
+
});
|
|
293
|
+
break;
|
|
294
|
+
default:
|
|
295
|
+
_chunk7YRW5HNXjs.addProjectTag.call(void 0, project, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.TAG_ID, _chunk7YRW5HNXjs.ProjectTagConstants.Platform.NEUTRAL, {
|
|
296
|
+
overwrite: true
|
|
297
|
+
});
|
|
298
|
+
break;
|
|
291
299
|
}
|
|
292
300
|
_chunk7YRW5HNXjs.setDefaultProjectTags.call(void 0, project, name);
|
|
293
|
-
return _optionalChain([project, 'optionalAccess',
|
|
301
|
+
return _optionalChain([project, 'optionalAccess', _10 => _10.name]) ? {
|
|
294
302
|
projects: {
|
|
295
303
|
[project.name]: {
|
|
296
304
|
...project,
|
|
297
305
|
targets,
|
|
298
306
|
release: {
|
|
299
|
-
..._optionalChain([project, 'optionalAccess',
|
|
307
|
+
..._optionalChain([project, 'optionalAccess', _11 => _11.release]),
|
|
300
308
|
version: {
|
|
301
|
-
..._optionalChain([project, 'optionalAccess',
|
|
309
|
+
..._optionalChain([project, 'optionalAccess', _12 => _12.release, 'optionalAccess', _13 => _13.version]),
|
|
302
310
|
generator: "@storm-software/workspace-tools:release-version"
|
|
303
311
|
}
|
|
304
312
|
}
|