@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
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkL7U4GRI6js = require('./chunk-L7U4GRI6.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkG2L3EEEOjs = require('./chunk-G2L3EEEO.js');
|
|
16
16
|
|
|
17
17
|
// ../config/src/schema.ts
|
|
18
18
|
var _mini = require('zod/mini'); var z = _interopRequireWildcard(_mini);
|
|
@@ -625,10 +625,10 @@ async function getPackageJsonConfig(root) {
|
|
|
625
625
|
let name = void 0;
|
|
626
626
|
let namespace = void 0;
|
|
627
627
|
let repository = void 0;
|
|
628
|
-
const workspaceRoot =
|
|
628
|
+
const workspaceRoot = _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, root);
|
|
629
629
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
|
|
630
630
|
const file = await _promises.readFile.call(void 0,
|
|
631
|
-
|
|
631
|
+
_chunkG2L3EEEOjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
632
632
|
"utf8"
|
|
633
633
|
);
|
|
634
634
|
if (file) {
|
|
@@ -703,7 +703,7 @@ function applyDefaultConfig(config) {
|
|
|
703
703
|
|
|
704
704
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
705
705
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
706
|
-
const workspacePath = filePath ||
|
|
706
|
+
const workspacePath = filePath || _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, filePath);
|
|
707
707
|
const configs = await Promise.all([
|
|
708
708
|
_c12.loadConfig.call(void 0, {
|
|
709
709
|
cwd: workspacePath,
|
|
@@ -712,7 +712,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
712
712
|
envName: _optionalChain([fileName, 'optionalAccess', _5 => _5.toUpperCase, 'call', _6 => _6()]),
|
|
713
713
|
jitiOptions: {
|
|
714
714
|
debug: false,
|
|
715
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
715
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkG2L3EEEOjs.joinPaths.call(void 0,
|
|
716
716
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
717
717
|
"jiti"
|
|
718
718
|
)
|
|
@@ -726,7 +726,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
726
726
|
envName: _optionalChain([fileName, 'optionalAccess', _7 => _7.toUpperCase, 'call', _8 => _8()]),
|
|
727
727
|
jitiOptions: {
|
|
728
728
|
debug: false,
|
|
729
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
729
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkG2L3EEEOjs.joinPaths.call(void 0,
|
|
730
730
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
731
731
|
"jiti"
|
|
732
732
|
)
|
|
@@ -738,7 +738,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
738
738
|
return _defu2.default.call(void 0, _nullishCoalesce(configs[0], () => ( {})), _nullishCoalesce(configs[1], () => ( {})));
|
|
739
739
|
};
|
|
740
740
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
741
|
-
const workspacePath = filePath ? filePath :
|
|
741
|
+
const workspacePath = filePath ? filePath : _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, filePath);
|
|
742
742
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
743
743
|
let config = result.config;
|
|
744
744
|
const configFile = result.configFile;
|
|
@@ -839,15 +839,15 @@ var getConfigEnv = () => {
|
|
|
839
839
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
840
840
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
841
841
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
842
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
843
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
842
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
843
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
844
844
|
directories: {
|
|
845
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
846
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
847
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
848
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
849
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
850
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
845
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
846
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
847
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
848
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
849
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
850
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkG2L3EEEOjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
851
851
|
},
|
|
852
852
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
853
853
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1137,42 +1137,42 @@ var setConfigEnv = (config) => {
|
|
|
1137
1137
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1138
1138
|
}
|
|
1139
1139
|
if (config.configFile) {
|
|
1140
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1140
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkG2L3EEEOjs.correctPaths.call(void 0,
|
|
1141
1141
|
config.configFile
|
|
1142
1142
|
);
|
|
1143
1143
|
}
|
|
1144
1144
|
if (config.workspaceRoot) {
|
|
1145
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1146
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1147
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1145
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1146
|
+
process.env.NX_WORKSPACE_ROOT = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1147
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1148
1148
|
}
|
|
1149
1149
|
if (config.directories) {
|
|
1150
1150
|
if (!config.skipCache && config.directories.cache) {
|
|
1151
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1151
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0,
|
|
1152
1152
|
config.directories.cache
|
|
1153
1153
|
);
|
|
1154
1154
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1155
1155
|
}
|
|
1156
1156
|
if (config.directories.data) {
|
|
1157
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1157
|
+
process.env[`${prefix}DATA_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.directories.data);
|
|
1158
1158
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1159
1159
|
}
|
|
1160
1160
|
if (config.directories.config) {
|
|
1161
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1161
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0,
|
|
1162
1162
|
config.directories.config
|
|
1163
1163
|
);
|
|
1164
1164
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1165
1165
|
}
|
|
1166
1166
|
if (config.directories.temp) {
|
|
1167
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1167
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.directories.temp);
|
|
1168
1168
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1169
1169
|
}
|
|
1170
1170
|
if (config.directories.log) {
|
|
1171
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1171
|
+
process.env[`${prefix}LOG_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0, config.directories.log);
|
|
1172
1172
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1173
1173
|
}
|
|
1174
1174
|
if (config.directories.build) {
|
|
1175
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1175
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkG2L3EEEOjs.correctPaths.call(void 0,
|
|
1176
1176
|
config.directories.build
|
|
1177
1177
|
);
|
|
1178
1178
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -1366,7 +1366,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1366
1366
|
if (!_optionalChain([_static_cache, 'optionalAccess', _33 => _33.data]) || !_optionalChain([_static_cache, 'optionalAccess', _34 => _34.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1367
1367
|
let _workspaceRoot = workspaceRoot;
|
|
1368
1368
|
if (!_workspaceRoot) {
|
|
1369
|
-
_workspaceRoot =
|
|
1369
|
+
_workspaceRoot = _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, );
|
|
1370
1370
|
}
|
|
1371
1371
|
const configEnv = getConfigEnv();
|
|
1372
1372
|
const configFile = await getConfigFile(_workspaceRoot);
|
|
@@ -1457,7 +1457,7 @@ var getConfig = (workspaceRoot, skipLogs = false) => {
|
|
|
1457
1457
|
var getWorkspaceConfig = (skipLogs = true, options = {}) => {
|
|
1458
1458
|
let workspaceRoot = options.workspaceRoot;
|
|
1459
1459
|
if (!workspaceRoot) {
|
|
1460
|
-
workspaceRoot =
|
|
1460
|
+
workspaceRoot = _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, options.cwd);
|
|
1461
1461
|
}
|
|
1462
1462
|
return getConfig(workspaceRoot, skipLogs);
|
|
1463
1463
|
};
|
|
@@ -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 _chunkAEPPOUTZjs = require('./chunk-AEPPOUTZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
33
33
|
success: true
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkAEPPOUTZjs.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -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-check/executor.ts
|
|
10
10
|
async function cargoCheckExecutor(options, context) {
|
|
11
11
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "check", 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 - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunGenerator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IYDKU4UX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
schemaRegistry,
|
|
6
6
|
workspaceConfigSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZERVVKRK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
writeInfo,
|
|
10
10
|
writeSuccess,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-V44DYGWX.mjs";
|
|
13
13
|
import {
|
|
14
14
|
findWorkspaceRoot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2C4FZPU6.mjs";
|
|
16
16
|
|
|
17
17
|
// src/generators/config-schema/generator.ts
|
|
18
18
|
import { formatFiles, writeJson } from "@nx/devkit";
|
|
@@ -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 _chunkL7U4GRI6js = require('./chunk-L7U4GRI6.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
6
6
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
@@ -37,7 +37,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
|
37
37
|
if (result.includes("{workspaceRoot}")) {
|
|
38
38
|
result = result.replaceAll(
|
|
39
39
|
"{workspaceRoot}",
|
|
40
|
-
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => (
|
|
40
|
+
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _2 => _2.config, 'optionalAccess', _3 => _3.workspaceRoot]))), () => ( _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, )))
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
return result;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5RWC6WQX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
6
|
} from "./chunk-V44DYGWX.mjs";
|
|
7
7
|
import {
|
|
8
8
|
joinPaths
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-C26A6BXG.mjs";
|
|
10
10
|
|
|
11
11
|
// src/executors/unbuild/executor.ts
|
|
12
12
|
import { defu } from "defu";
|
|
@@ -1,10 +1,10 @@
|
|
|
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
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
|
|
|
@@ -16,7 +16,7 @@ var _chunkOSMA3OJGjs = require('./chunk-OSMA3OJG.js');
|
|
|
16
16
|
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkL7U4GRI6js = require('./chunk-L7U4GRI6.js');
|
|
20
20
|
|
|
21
21
|
// src/base/base-generator.ts
|
|
22
22
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
@@ -29,14 +29,14 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
29
29
|
_chunk2CDSXWFAjs.writeInfo.call(void 0, `\u26A1 Running the ${name} generator...
|
|
30
30
|
|
|
31
31
|
`, config);
|
|
32
|
-
const workspaceRoot =
|
|
32
|
+
const workspaceRoot = _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, );
|
|
33
33
|
if (!generatorOptions.skipReadingConfig) {
|
|
34
34
|
_chunk2CDSXWFAjs.writeDebug.call(void 0,
|
|
35
35
|
`Loading the Storm Config from environment variables and storm.config.js file...
|
|
36
36
|
- workspaceRoot: ${workspaceRoot}`,
|
|
37
37
|
config
|
|
38
38
|
);
|
|
39
|
-
config = await
|
|
39
|
+
config = await _chunkPW43JUUTjs.getConfig.call(void 0, workspaceRoot);
|
|
40
40
|
}
|
|
41
41
|
if (_optionalChain([generatorOptions, 'optionalAccess', _ => _.hooks, 'optionalAccess', _2 => _2.applyDefaultOptions])) {
|
|
42
42
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the applyDefaultOptions hook...", config);
|
|
@@ -50,10 +50,10 @@ var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
|
50
50
|
${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${JSON.stringify(options[key])}`).join("\n")}`,
|
|
51
51
|
config
|
|
52
52
|
);
|
|
53
|
-
const tokenized = await
|
|
53
|
+
const tokenized = await _chunkSFE5PARHjs.applyWorkspaceTokens.call(void 0,
|
|
54
54
|
options,
|
|
55
55
|
{ workspaceRoot: tree.root, config },
|
|
56
|
-
|
|
56
|
+
_chunkSFE5PARHjs.applyWorkspaceBaseTokens
|
|
57
57
|
);
|
|
58
58
|
if (_optionalChain([generatorOptions, 'optionalAccess', _3 => _3.hooks, 'optionalAccess', _4 => _4.preProcess])) {
|
|
59
59
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, "Running the preProcess hook...", config);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTUX5HNDDjs = require('./chunk-TUX5HNDD.js');
|
|
8
8
|
|
|
9
9
|
// src/generators/preset/generator.ts
|
|
10
10
|
|
|
@@ -239,7 +239,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
239
239
|
);
|
|
240
240
|
return null;
|
|
241
241
|
}
|
|
242
|
-
var generator_default =
|
|
242
|
+
var generator_default = _chunkTUX5HNDDjs.withRunGenerator.call(void 0,
|
|
243
243
|
"Storm Workspace Preset Generator",
|
|
244
244
|
presetGeneratorFn
|
|
245
245
|
);
|
|
@@ -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 _chunkPW43JUUTjs = require('./chunk-PW43JUUT.js');
|
|
4
4
|
|
|
5
5
|
// ../npm-tools/src/constants.ts
|
|
6
6
|
var DEFAULT_NPM_REGISTRY = "https://registry.npmjs.org";
|
|
@@ -27,7 +27,7 @@ async function getNpmRegistry() {
|
|
|
27
27
|
if (process.env.STORM_REGISTRY_NPM) {
|
|
28
28
|
return process.env.STORM_REGISTRY_NPM;
|
|
29
29
|
}
|
|
30
|
-
const workspaceConfig = await
|
|
30
|
+
const workspaceConfig = await _chunkPW43JUUTjs.getConfig.call(void 0, );
|
|
31
31
|
if (_optionalChain([workspaceConfig, 'optionalAccess', _ => _.registry, 'optionalAccess', _2 => _2.npm])) {
|
|
32
32
|
return _optionalChain([workspaceConfig, 'optionalAccess', _3 => _3.registry, 'optionalAccess', _4 => _4.npm]);
|
|
33
33
|
}
|
|
@@ -37,7 +37,7 @@ async function getGitHubRegistry() {
|
|
|
37
37
|
if (process.env.STORM_REGISTRY_GITHUB) {
|
|
38
38
|
return process.env.STORM_REGISTRY_GITHUB;
|
|
39
39
|
}
|
|
40
|
-
const workspaceConfig = await
|
|
40
|
+
const workspaceConfig = await _chunkPW43JUUTjs.getConfig.call(void 0, );
|
|
41
41
|
if (_optionalChain([workspaceConfig, 'optionalAccess', _5 => _5.registry, 'optionalAccess', _6 => _6.github])) {
|
|
42
42
|
return _optionalChain([workspaceConfig, 'optionalAccess', _7 => _7.registry, 'optionalAccess', _8 => _8.github]);
|
|
43
43
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
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-doc/executor.ts
|
|
10
10
|
async function cargoDocExecutor(options, context) {
|
|
@@ -14,7 +14,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
14
14
|
const command = _chunkLJDV7HFTjs.buildCargoCommand.call(void 0, "doc", options, context);
|
|
15
15
|
return await _chunkLJDV7HFTjs.cargoCommand.call(void 0, ...command);
|
|
16
16
|
}
|
|
17
|
-
var executor_default =
|
|
17
|
+
var executor_default = _chunkAEPPOUTZjs.withRunExecutor.call(void 0,
|
|
18
18
|
"Cargo - Doc",
|
|
19
19
|
cargoDocExecutor,
|
|
20
20
|
{
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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 _chunk7QY4X73Cjs = require('./chunk-7QY4X73C.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkURLWKK3Zjs = require('./chunk-URLWKK3Z.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkL7U4GRI6js = require('./chunk-L7U4GRI6.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkG2L3EEEOjs = require('./chunk-G2L3EEEO.js');
|
|
14
14
|
|
|
15
15
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
16
16
|
|
|
@@ -28,8 +28,8 @@ var _semver = require('semver');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _yaml = require('yaml');
|
|
31
|
-
function getPnpmWorkspaceFilePath(workspaceRoot =
|
|
32
|
-
const pnpmWorkspacePath =
|
|
31
|
+
function getPnpmWorkspaceFilePath(workspaceRoot = _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, process.cwd())) {
|
|
32
|
+
const pnpmWorkspacePath = _chunkG2L3EEEOjs.joinPaths.call(void 0, workspaceRoot, "pnpm-workspace.yaml");
|
|
33
33
|
if (!_fs.existsSync.call(void 0, pnpmWorkspacePath)) {
|
|
34
34
|
throw new Error(
|
|
35
35
|
`No \`pnpm-workspace.yaml\` file found in workspace root (searched in: ${pnpmWorkspacePath}).`
|
|
@@ -37,7 +37,7 @@ function getPnpmWorkspaceFilePath(workspaceRoot = _chunkHNFKVXBVjs.findWorkspace
|
|
|
37
37
|
}
|
|
38
38
|
return pnpmWorkspacePath;
|
|
39
39
|
}
|
|
40
|
-
async function readPnpmWorkspaceFile(workspaceRoot =
|
|
40
|
+
async function readPnpmWorkspaceFile(workspaceRoot = _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, process.cwd())) {
|
|
41
41
|
const result = await _promises.readFile.call(void 0,
|
|
42
42
|
getPnpmWorkspaceFilePath(workspaceRoot),
|
|
43
43
|
"utf8"
|
|
@@ -49,7 +49,7 @@ async function readPnpmWorkspaceFile(workspaceRoot = _chunkHNFKVXBVjs.findWorksp
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
// ../pnpm-tools/src/helpers/catalog.ts
|
|
52
|
-
async function getCatalogSafe(workspaceRoot =
|
|
52
|
+
async function getCatalogSafe(workspaceRoot = _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, process.cwd())) {
|
|
53
53
|
const pnpmWorkspaceFile = await readPnpmWorkspaceFile(workspaceRoot);
|
|
54
54
|
if (!pnpmWorkspaceFile) {
|
|
55
55
|
throw new Error("No pnpm-workspace.yaml file found");
|
|
@@ -72,7 +72,7 @@ File content: ${JSON.stringify(
|
|
|
72
72
|
}
|
|
73
73
|
return void 0;
|
|
74
74
|
}
|
|
75
|
-
async function getCatalog(workspaceRoot =
|
|
75
|
+
async function getCatalog(workspaceRoot = _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, process.cwd())) {
|
|
76
76
|
const catalog = await getCatalogSafe(workspaceRoot);
|
|
77
77
|
if (!catalog) {
|
|
78
78
|
throw new Error("No catalog entries found in pnpm-workspace.yaml file");
|
|
@@ -81,8 +81,8 @@ async function getCatalog(workspaceRoot = _chunkHNFKVXBVjs.findWorkspaceRoot.cal
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
84
|
-
async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot =
|
|
85
|
-
const packageJsonPath =
|
|
84
|
+
async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot = _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, packageRoot)) {
|
|
85
|
+
const packageJsonPath = _chunkG2L3EEEOjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
86
86
|
const packageJsonFile = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
|
|
87
87
|
if (!packageJsonFile) {
|
|
88
88
|
throw new Error(
|
|
@@ -91,7 +91,7 @@ async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot = _
|
|
|
91
91
|
}
|
|
92
92
|
const catalog = await getCatalog(workspaceRoot);
|
|
93
93
|
const packageJson = JSON.parse(packageJsonFile);
|
|
94
|
-
const pnpmWorkspacePath =
|
|
94
|
+
const pnpmWorkspacePath = _chunkG2L3EEEOjs.joinPaths.call(void 0, workspaceRoot, "pnpm-workspace.yaml");
|
|
95
95
|
if (!_fs.existsSync.call(void 0, pnpmWorkspacePath)) {
|
|
96
96
|
console.warn(
|
|
97
97
|
`No \`pnpm-workspace.yaml\` file found in workspace root (searching in: ${pnpmWorkspacePath}). Skipping pnpm catalog read for now.`
|
|
@@ -143,7 +143,7 @@ async function replaceDepsAliases(packageRoot = process.cwd(), workspaceRoot = _
|
|
|
143
143
|
Object.keys(projectGraph.nodes).map(async (node) => {
|
|
144
144
|
const projectNode = projectGraph.nodes[node];
|
|
145
145
|
if (_optionalChain([projectNode, 'optionalAccess', _2 => _2.data, 'access', _3 => _3.root])) {
|
|
146
|
-
const projectPackageJsonPath =
|
|
146
|
+
const projectPackageJsonPath = _chunkG2L3EEEOjs.joinPaths.call(void 0,
|
|
147
147
|
workspaceRoot,
|
|
148
148
|
projectNode.data.root,
|
|
149
149
|
"package.json"
|
|
@@ -220,22 +220,22 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
220
220
|
`Could not find project configuration for \`${context.projectName}\``
|
|
221
221
|
);
|
|
222
222
|
}
|
|
223
|
-
const packageRoot =
|
|
223
|
+
const packageRoot = _chunkG2L3EEEOjs.joinPaths.call(void 0,
|
|
224
224
|
context.root,
|
|
225
|
-
options.packageRoot ||
|
|
225
|
+
options.packageRoot || _chunkG2L3EEEOjs.joinPaths.call(void 0, "dist", projectConfig.root)
|
|
226
226
|
);
|
|
227
|
-
const projectRoot = _optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.root]) ?
|
|
227
|
+
const projectRoot = _optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.root]) ? _chunkG2L3EEEOjs.joinPaths.call(void 0,
|
|
228
228
|
context.root,
|
|
229
229
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
230
230
|
context.projectsConfigurations.projects[context.projectName].root
|
|
231
231
|
) : packageRoot;
|
|
232
|
-
const packageJsonPath =
|
|
232
|
+
const packageJsonPath = _chunkG2L3EEEOjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
233
233
|
const packageJsonFile = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
|
|
234
234
|
if (!packageJsonFile) {
|
|
235
235
|
throw new Error(`Could not find \`package.json\` at ${packageJsonPath}`);
|
|
236
236
|
}
|
|
237
237
|
const packageJson = JSON.parse(packageJsonFile);
|
|
238
|
-
const projectPackageJsonPath =
|
|
238
|
+
const projectPackageJsonPath = _chunkG2L3EEEOjs.joinPaths.call(void 0, projectRoot, "package.json");
|
|
239
239
|
const projectPackageJsonFile = await _promises.readFile.call(void 0, projectPackageJsonPath, "utf8");
|
|
240
240
|
if (!projectPackageJsonFile) {
|
|
241
241
|
throw new Error(
|
|
@@ -282,12 +282,12 @@ async function npmPublishExecutorFn(options, context) {
|
|
|
282
282
|
return { success: true };
|
|
283
283
|
}
|
|
284
284
|
await replaceDepsAliases(packageRoot, context.root);
|
|
285
|
-
await
|
|
285
|
+
await _chunk7QY4X73Cjs.addPackageJsonGitHead.call(void 0, packageRoot);
|
|
286
286
|
const npmPublishCommandSegments = [`npm publish --json`];
|
|
287
287
|
const npmViewCommandSegments = [
|
|
288
288
|
`npm view ${packageName} versions dist-tags --json`
|
|
289
289
|
];
|
|
290
|
-
const registry = await _asyncNullishCoalesce(options.registry, async () => ( (await
|
|
290
|
+
const registry = await _asyncNullishCoalesce(options.registry, async () => ( (await _chunkURLWKK3Zjs.getRegistry.call(void 0, ) || _chunkURLWKK3Zjs.getNpmRegistry.call(void 0, ))));
|
|
291
291
|
if (registry) {
|
|
292
292
|
npmPublishCommandSegments.push(`--registry="${registry}" `);
|
|
293
293
|
npmViewCommandSegments.push(`--registry="${registry}" `);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4HV5G4DTjs = require('./chunk-4HV5G4DT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkTUX5HNDDjs = require('./chunk-TUX5HNDD.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkG2L3EEEOjs = require('./chunk-G2L3EEEO.js');
|
|
14
14
|
|
|
15
15
|
// src/generators/node-library/generator.ts
|
|
16
16
|
|
|
@@ -20,7 +20,7 @@ var _chunk53DNHF7Bjs = require('./chunk-53DNHF7B.js');
|
|
|
20
20
|
|
|
21
21
|
var _devkit = require('@nx/devkit');
|
|
22
22
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
23
|
-
const filesDir =
|
|
23
|
+
const filesDir = _chunkG2L3EEEOjs.joinPaths.call(void 0,
|
|
24
24
|
__dirname,
|
|
25
25
|
"src",
|
|
26
26
|
"generators",
|
|
@@ -37,7 +37,7 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
37
37
|
directory: schema.directory,
|
|
38
38
|
description: schema.description
|
|
39
39
|
};
|
|
40
|
-
const options = await
|
|
40
|
+
const options = await _chunk4HV5G4DTjs.normalizeOptions.call(void 0, tree, tsLibraryGeneratorOptions);
|
|
41
41
|
const { className, name, propertyName } = _devkit.names.call(void 0, options.name);
|
|
42
42
|
_devkit.generateFiles.call(void 0, tree, filesDir, options.projectRoot, {
|
|
43
43
|
...schema,
|
|
@@ -55,11 +55,11 @@ async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
|
55
55
|
buildable: options.bundler && options.bundler !== "none",
|
|
56
56
|
hasUnitTestRunner: options.unitTestRunner !== "none"
|
|
57
57
|
});
|
|
58
|
-
await
|
|
58
|
+
await _chunk4HV5G4DTjs.typeScriptLibraryGeneratorFn.call(void 0, tree, tsLibraryGeneratorOptions, config);
|
|
59
59
|
await _devkit.formatFiles.call(void 0, tree);
|
|
60
60
|
return null;
|
|
61
61
|
}
|
|
62
|
-
var generator_default =
|
|
62
|
+
var generator_default = _chunkTUX5HNDDjs.withRunGenerator.call(void 0,
|
|
63
63
|
"TypeScript Library Creator (NodeJs Platform)",
|
|
64
64
|
nodeLibraryGeneratorFn,
|
|
65
65
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunkTUX5HNDDjs = require('./chunk-TUX5HNDD.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPW43JUUTjs = require('./chunk-PW43JUUT.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ var _chunkOSMA3OJGjs = require('./chunk-OSMA3OJG.js');
|
|
|
12
12
|
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkL7U4GRI6js = require('./chunk-L7U4GRI6.js');
|
|
16
16
|
|
|
17
17
|
// src/generators/config-schema/generator.ts
|
|
18
18
|
var _devkit = require('@nx/devkit');
|
|
@@ -26,9 +26,9 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
26
26
|
`Determining the Storm Workspace Configuration JSON Schema...`,
|
|
27
27
|
config
|
|
28
28
|
);
|
|
29
|
-
const jsonSchema = z.toJSONSchema(
|
|
29
|
+
const jsonSchema = z.toJSONSchema(_chunkPW43JUUTjs.workspaceConfigSchema, {
|
|
30
30
|
target: "draft-7",
|
|
31
|
-
metadata:
|
|
31
|
+
metadata: _chunkPW43JUUTjs.schemaRegistry
|
|
32
32
|
});
|
|
33
33
|
jsonSchema.$id ??= "https://public.storm-cdn.com/schemas/storm-workspace.schema.json";
|
|
34
34
|
jsonSchema.title ??= "Storm Workspace Configuration JSON Schema";
|
|
@@ -40,7 +40,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
43
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => (
|
|
43
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.workspaceRoot]), () => ( _chunkL7U4GRI6js.findWorkspaceRoot.call(void 0, ))),
|
|
44
44
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
45
45
|
);
|
|
46
46
|
_chunk2CDSXWFAjs.writeTrace.call(void 0,
|
|
@@ -57,7 +57,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
57
57
|
success: true
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
var generator_default =
|
|
60
|
+
var generator_default = _chunkTUX5HNDDjs.withRunGenerator.call(void 0,
|
|
61
61
|
"Configuration Schema Creator",
|
|
62
62
|
configSchemaGeneratorFn,
|
|
63
63
|
{
|