@storm-software/projen 0.19.2 → 0.19.3
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 +7 -0
- package/README.md +1 -1
- package/dist/{chunk-PLYSSAMI.mjs → chunk-BYZLBGIR.mjs} +1 -1
- package/dist/{chunk-YL6OU6I6.mjs → chunk-CRPLKOSJ.mjs} +1 -1
- package/dist/{chunk-NSH2LEK4.js → chunk-MRNYDR5Z.js} +63 -63
- package/dist/{chunk-QN2JD3BZ.js → chunk-N6LCFLA4.js} +2 -2
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +2 -2
- package/dist/src/components/nx-workspace.js +2 -2
- package/dist/src/components/nx-workspace.mjs +1 -1
- package/dist/src/generators/init/generator.js +3 -3
- package/dist/src/generators/init/generator.mjs +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Projen
|
|
4
4
|
|
|
5
|
+
## [0.19.2](https://github.com/storm-software/storm-ops/releases/tag/projen%400.19.2) (2025-09-18)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace package links
|
|
10
|
+
([89e2511ad](https://github.com/storm-software/storm-ops/commit/89e2511ad))
|
|
11
|
+
|
|
5
12
|
## [0.19.1](https://github.com/storm-software/storm-ops/releases/tag/projen%400.19.1) (2025-09-18)
|
|
6
13
|
|
|
7
14
|
### 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 -->
|
|
@@ -19,7 +19,7 @@ var correctPaths = function(path) {
|
|
|
19
19
|
return ".";
|
|
20
20
|
}
|
|
21
21
|
path = normalizeWindowsPath(path);
|
|
22
|
-
const isUNCPath = path
|
|
22
|
+
const isUNCPath = path?.match(_UNC_REGEX);
|
|
23
23
|
const isPathAbsolute = isAbsolute(path);
|
|
24
24
|
const trailingSeparator = path[path.length - 1] === "/";
|
|
25
25
|
path = normalizeString(path, !isPathAbsolute);
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkN6LCFLA4js = require('./chunk-N6LCFLA4.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkBROQ5KWZjs = require('./chunk-BROQ5KWZ.js');
|
|
@@ -416,11 +416,11 @@ var rootDirectories = [
|
|
|
416
416
|
];
|
|
417
417
|
function findWorkspaceRootSafe(pathInsideMonorepo) {
|
|
418
418
|
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
419
|
-
return
|
|
419
|
+
return _chunkN6LCFLA4js.correctPaths.call(void 0,
|
|
420
420
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
421
421
|
);
|
|
422
422
|
}
|
|
423
|
-
return
|
|
423
|
+
return _chunkN6LCFLA4js.correctPaths.call(void 0,
|
|
424
424
|
findFolderUp(
|
|
425
425
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
426
426
|
rootFiles,
|
|
@@ -1131,7 +1131,7 @@ async function getPackageJsonConfig(root) {
|
|
|
1131
1131
|
const workspaceRoot3 = findWorkspaceRoot(root);
|
|
1132
1132
|
if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot3, "package.json"))) {
|
|
1133
1133
|
const file = await _promises.readFile.call(void 0,
|
|
1134
|
-
|
|
1134
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
1135
1135
|
"utf8"
|
|
1136
1136
|
);
|
|
1137
1137
|
if (file) {
|
|
@@ -1215,7 +1215,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1215
1215
|
envName: _optionalChain([fileName, 'optionalAccess', _34 => _34.toUpperCase, 'call', _35 => _35()]),
|
|
1216
1216
|
jitiOptions: {
|
|
1217
1217
|
debug: false,
|
|
1218
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1218
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
1219
1219
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1220
1220
|
"jiti"
|
|
1221
1221
|
)
|
|
@@ -1229,7 +1229,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
1229
1229
|
envName: _optionalChain([fileName, 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]),
|
|
1230
1230
|
jitiOptions: {
|
|
1231
1231
|
debug: false,
|
|
1232
|
-
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false :
|
|
1232
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
1233
1233
|
process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
|
|
1234
1234
|
"jiti"
|
|
1235
1235
|
)
|
|
@@ -1347,15 +1347,15 @@ var getConfigEnv = () => {
|
|
|
1347
1347
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1348
1348
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1349
1349
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1350
|
-
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ?
|
|
1351
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
1350
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1351
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1352
1352
|
directories: {
|
|
1353
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
1354
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
1355
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
1356
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
1357
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
1358
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
1353
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
1354
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
1355
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
1356
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
1357
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
1358
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkN6LCFLA4js.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
|
|
1359
1359
|
},
|
|
1360
1360
|
skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
|
|
1361
1361
|
mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
|
|
@@ -1646,42 +1646,42 @@ var setConfigEnv = (config) => {
|
|
|
1646
1646
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1647
1647
|
}
|
|
1648
1648
|
if (config.configFile) {
|
|
1649
|
-
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] =
|
|
1649
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkN6LCFLA4js.correctPaths.call(void 0,
|
|
1650
1650
|
config.configFile
|
|
1651
1651
|
);
|
|
1652
1652
|
}
|
|
1653
1653
|
if (config.workspaceRoot) {
|
|
1654
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1655
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1656
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1654
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkN6LCFLA4js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1655
|
+
process.env.NX_WORKSPACE_ROOT = _chunkN6LCFLA4js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1656
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkN6LCFLA4js.correctPaths.call(void 0, config.workspaceRoot);
|
|
1657
1657
|
}
|
|
1658
1658
|
if (config.directories) {
|
|
1659
1659
|
if (!config.skipCache && config.directories.cache) {
|
|
1660
|
-
process.env[`${prefix}CACHE_DIR`] =
|
|
1660
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkN6LCFLA4js.correctPaths.call(void 0,
|
|
1661
1661
|
config.directories.cache
|
|
1662
1662
|
);
|
|
1663
1663
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
1664
1664
|
}
|
|
1665
1665
|
if (config.directories.data) {
|
|
1666
|
-
process.env[`${prefix}DATA_DIR`] =
|
|
1666
|
+
process.env[`${prefix}DATA_DIR`] = _chunkN6LCFLA4js.correctPaths.call(void 0, config.directories.data);
|
|
1667
1667
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
1668
1668
|
}
|
|
1669
1669
|
if (config.directories.config) {
|
|
1670
|
-
process.env[`${prefix}CONFIG_DIR`] =
|
|
1670
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkN6LCFLA4js.correctPaths.call(void 0,
|
|
1671
1671
|
config.directories.config
|
|
1672
1672
|
);
|
|
1673
1673
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
1674
1674
|
}
|
|
1675
1675
|
if (config.directories.temp) {
|
|
1676
|
-
process.env[`${prefix}TEMP_DIR`] =
|
|
1676
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkN6LCFLA4js.correctPaths.call(void 0, config.directories.temp);
|
|
1677
1677
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
1678
1678
|
}
|
|
1679
1679
|
if (config.directories.log) {
|
|
1680
|
-
process.env[`${prefix}LOG_DIR`] =
|
|
1680
|
+
process.env[`${prefix}LOG_DIR`] = _chunkN6LCFLA4js.correctPaths.call(void 0, config.directories.log);
|
|
1681
1681
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
1682
1682
|
}
|
|
1683
1683
|
if (config.directories.build) {
|
|
1684
|
-
process.env[`${prefix}BUILD_DIR`] =
|
|
1684
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkN6LCFLA4js.correctPaths.call(void 0,
|
|
1685
1685
|
config.directories.build
|
|
1686
1686
|
);
|
|
1687
1687
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
@@ -2416,7 +2416,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
2416
2416
|
}
|
|
2417
2417
|
writeTrace(
|
|
2418
2418
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
2419
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
2419
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkN6LCFLA4js.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
2420
2420
|
config
|
|
2421
2421
|
);
|
|
2422
2422
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -2429,17 +2429,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
2429
2429
|
writeTrace("Completed copying assets to the output directory", config);
|
|
2430
2430
|
if (includeSrc === true) {
|
|
2431
2431
|
writeDebug(
|
|
2432
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
2432
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
2433
2433
|
outputPath,
|
|
2434
2434
|
"src"
|
|
2435
2435
|
)}`,
|
|
2436
2436
|
config
|
|
2437
2437
|
);
|
|
2438
2438
|
const files = await _glob.glob.call(void 0, [
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2439
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
2440
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
2441
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
2442
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
2443
2443
|
]);
|
|
2444
2444
|
await Promise.allSettled(
|
|
2445
2445
|
files.map(
|
|
@@ -2495,7 +2495,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2495
2495
|
)) {
|
|
2496
2496
|
const projectNode = project.node;
|
|
2497
2497
|
if (projectNode.data.root) {
|
|
2498
|
-
const projectPackageJsonPath =
|
|
2498
|
+
const projectPackageJsonPath = _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
2499
2499
|
workspaceRoot3,
|
|
2500
2500
|
projectNode.data.root,
|
|
2501
2501
|
"package.json"
|
|
@@ -2517,7 +2517,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2517
2517
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
2518
2518
|
);
|
|
2519
2519
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
2520
|
-
|
|
2520
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
2521
2521
|
"utf8"
|
|
2522
2522
|
);
|
|
2523
2523
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -2530,7 +2530,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2530
2530
|
}
|
|
2531
2531
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _97 => _97.projects, 'optionalAccess', _98 => _98[projectName2], 'access', _99 => _99.implicitDependencies, 'optionalAccess', _100 => _100.reduce, 'call', _101 => _101((ret, dep) => {
|
|
2532
2532
|
if (_optionalChain([projectConfigurations, 'access', _102 => _102.projects, 'optionalAccess', _103 => _103[dep]])) {
|
|
2533
|
-
const depPackageJsonPath =
|
|
2533
|
+
const depPackageJsonPath = _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
2534
2534
|
workspaceRoot3,
|
|
2535
2535
|
projectConfigurations.projects[dep].root,
|
|
2536
2536
|
"package.json"
|
|
@@ -2568,7 +2568,7 @@ var addPackageDependencies = async (workspaceRoot3, projectRoot, projectName, pa
|
|
|
2568
2568
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
2569
2569
|
const workspaceRoot3 = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : findWorkspaceRoot();
|
|
2570
2570
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
2571
|
-
|
|
2571
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0, workspaceRoot3, "package.json"),
|
|
2572
2572
|
"utf8"
|
|
2573
2573
|
);
|
|
2574
2574
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -2579,7 +2579,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2579
2579
|
if (distSrc.startsWith("/")) {
|
|
2580
2580
|
distSrc = distSrc.substring(1);
|
|
2581
2581
|
}
|
|
2582
|
-
packageJson.source ??= `${
|
|
2582
|
+
packageJson.source ??= `${_chunkN6LCFLA4js.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
2583
2583
|
}
|
|
2584
2584
|
packageJson.files ??= ["dist/**/*"];
|
|
2585
2585
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -2604,7 +2604,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
2604
2604
|
packageJson.contributors = [packageJson.author];
|
|
2605
2605
|
}
|
|
2606
2606
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
2607
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
2607
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkN6LCFLA4js.joinPaths.call(void 0, "packages", projectName);
|
|
2608
2608
|
return packageJson;
|
|
2609
2609
|
};
|
|
2610
2610
|
|
|
@@ -2747,7 +2747,7 @@ async function resolveContext(userOptions) {
|
|
|
2747
2747
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
2748
2748
|
exitOnError: true
|
|
2749
2749
|
});
|
|
2750
|
-
const projectJsonPath =
|
|
2750
|
+
const projectJsonPath = _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
2751
2751
|
workspaceRoot3.dir,
|
|
2752
2752
|
projectRoot,
|
|
2753
2753
|
"project.json"
|
|
@@ -2766,7 +2766,7 @@ async function resolveContext(userOptions) {
|
|
|
2766
2766
|
}
|
|
2767
2767
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
2768
2768
|
options.name ??= projectName;
|
|
2769
|
-
const packageJsonPath =
|
|
2769
|
+
const packageJsonPath = _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
2770
2770
|
workspaceRoot3.dir,
|
|
2771
2771
|
options.projectRoot,
|
|
2772
2772
|
"package.json"
|
|
@@ -2778,7 +2778,7 @@ async function resolveContext(userOptions) {
|
|
|
2778
2778
|
const define = _defu2.default.call(void 0, _nullishCoalesce(options.define, () => ( {})), _nullishCoalesce(env, () => ( {})));
|
|
2779
2779
|
const resolvedOptions = {
|
|
2780
2780
|
...options,
|
|
2781
|
-
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig :
|
|
2781
|
+
tsconfig: userOptions.tsconfig === null ? void 0 : userOptions.tsconfig ? userOptions.tsconfig : _chunkN6LCFLA4js.joinPaths.call(void 0, workspaceRoot3.dir, projectRoot, "tsconfig.json"),
|
|
2782
2782
|
metafile: userOptions.mode === "development",
|
|
2783
2783
|
clean: false,
|
|
2784
2784
|
env,
|
|
@@ -2803,8 +2803,8 @@ async function resolveContext(userOptions) {
|
|
|
2803
2803
|
projectConfigurations,
|
|
2804
2804
|
projectName,
|
|
2805
2805
|
projectGraph,
|
|
2806
|
-
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot ||
|
|
2807
|
-
outputPath: resolvedOptions.outputPath ||
|
|
2806
|
+
sourceRoot: resolvedOptions.sourceRoot || projectJson.sourceRoot || _chunkN6LCFLA4js.joinPaths.call(void 0, resolvedOptions.projectRoot, "src"),
|
|
2807
|
+
outputPath: resolvedOptions.outputPath || _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
2808
2808
|
workspaceConfig.workspaceRoot,
|
|
2809
2809
|
"dist",
|
|
2810
2810
|
resolvedOptions.projectRoot
|
|
@@ -2829,10 +2829,10 @@ _chunkBROQ5KWZjs.init_cjs_shims.call(void 0, );
|
|
|
2829
2829
|
|
|
2830
2830
|
|
|
2831
2831
|
async function generatePackageJson(context) {
|
|
2832
|
-
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
2832
|
+
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkN6LCFLA4js.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
2833
2833
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
2834
2834
|
const stopwatch = getStopwatch("Write package.json file");
|
|
2835
|
-
const packageJsonPath =
|
|
2835
|
+
const packageJsonPath = _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
2836
2836
|
context.options.projectRoot,
|
|
2837
2837
|
"project.json"
|
|
2838
2838
|
);
|
|
@@ -2840,7 +2840,7 @@ async function generatePackageJson(context) {
|
|
|
2840
2840
|
throw new Error("Cannot find package.json configuration");
|
|
2841
2841
|
}
|
|
2842
2842
|
const packageJsonFile = await _promises2.default.readFile(
|
|
2843
|
-
|
|
2843
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
2844
2844
|
context.workspaceConfig.workspaceRoot,
|
|
2845
2845
|
context.options.projectRoot,
|
|
2846
2846
|
"package.json"
|
|
@@ -2946,7 +2946,7 @@ async function generatePackageJson(context) {
|
|
|
2946
2946
|
}
|
|
2947
2947
|
}
|
|
2948
2948
|
await _devkit.writeJsonFile.call(void 0,
|
|
2949
|
-
|
|
2949
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0, context.outputPath, "package.json"),
|
|
2950
2950
|
packageJson
|
|
2951
2951
|
);
|
|
2952
2952
|
stopwatch();
|
|
@@ -2965,7 +2965,7 @@ async function executeTsup(context) {
|
|
|
2965
2965
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
2966
2966
|
await _tsup.build.call(void 0, {
|
|
2967
2967
|
...context.options,
|
|
2968
|
-
outDir: context.options.distDir ?
|
|
2968
|
+
outDir: context.options.distDir ? _chunkN6LCFLA4js.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
|
|
2969
2969
|
workspaceConfig: context.workspaceConfig
|
|
2970
2970
|
});
|
|
2971
2971
|
stopwatch();
|
|
@@ -3295,7 +3295,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3295
3295
|
);
|
|
3296
3296
|
}
|
|
3297
3297
|
const jiti = _jiti.createJiti.call(void 0, config.workspaceRoot, {
|
|
3298
|
-
fsCache: config.skipCache ? false :
|
|
3298
|
+
fsCache: config.skipCache ? false : _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
3299
3299
|
config.workspaceRoot,
|
|
3300
3300
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3301
3301
|
"jiti"
|
|
@@ -3317,7 +3317,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
3317
3317
|
{
|
|
3318
3318
|
stubOptions: {
|
|
3319
3319
|
jiti: {
|
|
3320
|
-
fsCache: config.skipCache ? false :
|
|
3320
|
+
fsCache: config.skipCache ? false : _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
3321
3321
|
config.workspaceRoot,
|
|
3322
3322
|
config.directories.cache || "node_modules/.cache/storm",
|
|
3323
3323
|
"jiti"
|
|
@@ -3517,16 +3517,16 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3517
3517
|
const projectConfig = {
|
|
3518
3518
|
root: normalized.directory,
|
|
3519
3519
|
projectType: "library",
|
|
3520
|
-
sourceRoot:
|
|
3520
|
+
sourceRoot: _chunkN6LCFLA4js.joinPaths.call(void 0, _nullishCoalesce(normalized.directory, () => ( "")), "src"),
|
|
3521
3521
|
targets: {
|
|
3522
3522
|
build: {
|
|
3523
3523
|
executor: options.buildExecutor,
|
|
3524
3524
|
outputs: ["{options.outputPath}"],
|
|
3525
3525
|
options: {
|
|
3526
|
-
entry: [
|
|
3526
|
+
entry: [_chunkN6LCFLA4js.joinPaths.call(void 0, normalized.projectRoot, "src", "index.ts")],
|
|
3527
3527
|
outputPath: getOutputPath(normalized),
|
|
3528
|
-
tsconfig:
|
|
3529
|
-
project:
|
|
3528
|
+
tsconfig: _chunkN6LCFLA4js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json"),
|
|
3529
|
+
project: _chunkN6LCFLA4js.joinPaths.call(void 0, normalized.projectRoot, "package.json"),
|
|
3530
3530
|
defaultConfiguration: "production",
|
|
3531
3531
|
platform: "neutral",
|
|
3532
3532
|
assets: [
|
|
@@ -3583,7 +3583,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3583
3583
|
if (!normalized.importPath) {
|
|
3584
3584
|
normalized.importPath = normalized.name;
|
|
3585
3585
|
}
|
|
3586
|
-
const packageJsonPath =
|
|
3586
|
+
const packageJsonPath = _chunkN6LCFLA4js.joinPaths.call(void 0, normalized.projectRoot, "package.json");
|
|
3587
3587
|
if (tree.exists(packageJsonPath)) {
|
|
3588
3588
|
_devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => {
|
|
3589
3589
|
if (!normalized.importPath) {
|
|
@@ -3640,14 +3640,14 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3640
3640
|
}));
|
|
3641
3641
|
}
|
|
3642
3642
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
3643
|
-
|
|
3643
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
3644
3644
|
normalized.projectRoot,
|
|
3645
3645
|
"./src",
|
|
3646
3646
|
`index.${normalized.js ? "js" : "ts"}`
|
|
3647
3647
|
)
|
|
3648
3648
|
]);
|
|
3649
|
-
_js.addTsConfigPath.call(void 0, tree,
|
|
3650
|
-
|
|
3649
|
+
_js.addTsConfigPath.call(void 0, tree, _chunkN6LCFLA4js.joinPaths.call(void 0, normalized.importPath, "/*"), [
|
|
3650
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0, normalized.projectRoot, "./src", "/*")
|
|
3651
3651
|
]);
|
|
3652
3652
|
if (tree.exists("package.json")) {
|
|
3653
3653
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
@@ -3658,7 +3658,7 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3658
3658
|
description = packageJson.description;
|
|
3659
3659
|
}
|
|
3660
3660
|
}
|
|
3661
|
-
const tsconfigPath =
|
|
3661
|
+
const tsconfigPath = _chunkN6LCFLA4js.joinPaths.call(void 0, normalized.projectRoot, "tsconfig.json");
|
|
3662
3662
|
if (tree.exists(tsconfigPath)) {
|
|
3663
3663
|
_devkit.updateJson.call(void 0, tree, tsconfigPath, (json) => {
|
|
3664
3664
|
json.composite ??= true;
|
|
@@ -3686,7 +3686,7 @@ function getOutputPath(options) {
|
|
|
3686
3686
|
} else {
|
|
3687
3687
|
parts.push(options.projectRoot);
|
|
3688
3688
|
}
|
|
3689
|
-
return
|
|
3689
|
+
return _chunkN6LCFLA4js.joinPaths.call(void 0, ...parts);
|
|
3690
3690
|
}
|
|
3691
3691
|
function createProjectTsConfigJson(tree, options) {
|
|
3692
3692
|
const tsconfig = {
|
|
@@ -3694,7 +3694,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3694
3694
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _184 => _184.tsconfigOptions]), () => ( {})),
|
|
3695
3695
|
compilerOptions: {
|
|
3696
3696
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3697
|
-
outDir:
|
|
3697
|
+
outDir: _chunkN6LCFLA4js.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3698
3698
|
noEmit: true,
|
|
3699
3699
|
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _185 => _185.tsconfigOptions, 'optionalAccess', _186 => _186.compilerOptions]), () => ( {}))
|
|
3700
3700
|
},
|
|
@@ -3712,7 +3712,7 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3712
3712
|
"src/**/*.test.ts"
|
|
3713
3713
|
]
|
|
3714
3714
|
};
|
|
3715
|
-
_devkit.writeJson.call(void 0, tree,
|
|
3715
|
+
_devkit.writeJson.call(void 0, tree, _chunkN6LCFLA4js.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"), tsconfig);
|
|
3716
3716
|
}
|
|
3717
3717
|
async function normalizeOptions(tree, options, config) {
|
|
3718
3718
|
let importPath = options.importPath;
|
|
@@ -3777,7 +3777,7 @@ async function normalizeOptions(tree, options, config) {
|
|
|
3777
3777
|
|
|
3778
3778
|
// ../workspace-tools/src/generators/browser-library/generator.ts
|
|
3779
3779
|
async function browserLibraryGeneratorFn(tree, schema, config) {
|
|
3780
|
-
const filesDir =
|
|
3780
|
+
const filesDir = _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
3781
3781
|
__dirname,
|
|
3782
3782
|
"src",
|
|
3783
3783
|
"generators",
|
|
@@ -3950,7 +3950,7 @@ _chunkBROQ5KWZjs.init_cjs_shims.call(void 0, );
|
|
|
3950
3950
|
|
|
3951
3951
|
|
|
3952
3952
|
async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
3953
|
-
const filesDir =
|
|
3953
|
+
const filesDir = _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
3954
3954
|
__dirname,
|
|
3955
3955
|
"src",
|
|
3956
3956
|
"generators",
|
|
@@ -4010,7 +4010,7 @@ _chunkBROQ5KWZjs.init_cjs_shims.call(void 0, );
|
|
|
4010
4010
|
|
|
4011
4011
|
|
|
4012
4012
|
async function nodeLibraryGeneratorFn(tree, schema, config) {
|
|
4013
|
-
const filesDir =
|
|
4013
|
+
const filesDir = _chunkN6LCFLA4js.joinPaths.call(void 0,
|
|
4014
4014
|
__dirname,
|
|
4015
4015
|
"src",
|
|
4016
4016
|
"generators",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
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
|
var _chunkBROQ5KWZjs = require('./chunk-BROQ5KWZ.js');
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ var correctPaths = function(path) {
|
|
|
19
19
|
return ".";
|
|
20
20
|
}
|
|
21
21
|
path = normalizeWindowsPath(path);
|
|
22
|
-
const isUNCPath = path.match(_UNC_REGEX);
|
|
22
|
+
const isUNCPath = _optionalChain([path, 'optionalAccess', _ => _.match, 'call', _2 => _2(_UNC_REGEX)]);
|
|
23
23
|
const isPathAbsolute = isAbsolute(path);
|
|
24
24
|
const trailingSeparator = path[path.length - 1] === "/";
|
|
25
25
|
path = normalizeString(path, !isPathAbsolute);
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NDWDSY5F.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkMRNYDR5Zjs = require('./chunk-MRNYDR5Z.js');
|
|
5
|
+
require('./chunk-N6LCFLA4.js');
|
|
6
6
|
require('./chunk-BROQ5KWZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunkMRNYDR5Zjs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
var _chunkSVKSKMNFjs = require('./chunk-SVKSKMNF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkMRNYDR5Zjs = require('./chunk-MRNYDR5Z.js');
|
|
8
|
+
require('./chunk-N6LCFLA4.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -16,10 +16,10 @@ var _chunkBROQ5KWZjs = require('./chunk-BROQ5KWZ.js');
|
|
|
16
16
|
// index.ts
|
|
17
17
|
var index_exports = {};
|
|
18
18
|
_chunkBROQ5KWZjs.__export.call(void 0, index_exports, {
|
|
19
|
-
initGeneratorFn: () =>
|
|
19
|
+
initGeneratorFn: () => _chunkMRNYDR5Zjs.initGeneratorFn
|
|
20
20
|
});
|
|
21
21
|
_chunkBROQ5KWZjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
_chunkBROQ5KWZjs.__reExport.call(void 0, index_exports, _chunkBROQ5KWZjs.__toESM.call(void 0, _chunkSVKSKMNFjs.require_components.call(void 0, )));
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.initGeneratorFn =
|
|
25
|
+
exports.initGeneratorFn = _chunkMRNYDR5Zjs.initGeneratorFn;
|
package/dist/index.mjs
CHANGED
|
@@ -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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkN6LCFLA4js = require('../../chunk-N6LCFLA4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkBROQ5KWZjs = require('../../chunk-BROQ5KWZ.js');
|
|
@@ -551,7 +551,7 @@ var StormNxWorkspace = (_class = class extends _nxworkspace.NxWorkspace {
|
|
|
551
551
|
let StormWorkspaceConfig;
|
|
552
552
|
if (project.root.outdir) {
|
|
553
553
|
const StormWorkspaceConfigJson = _fs.readFileSync.call(void 0,
|
|
554
|
-
|
|
554
|
+
_chunkN6LCFLA4js.joinPaths.call(void 0, project.root.outdir, "storm-workspace.json"),
|
|
555
555
|
"utf8"
|
|
556
556
|
);
|
|
557
557
|
StormWorkspaceConfig = JSON.parse(StormWorkspaceConfigJson);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../../../chunk-
|
|
4
|
+
var _chunkMRNYDR5Zjs = require('../../../chunk-MRNYDR5Z.js');
|
|
5
|
+
require('../../../chunk-N6LCFLA4.js');
|
|
6
6
|
require('../../../chunk-BROQ5KWZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunkMRNYDR5Zjs.generator_default; exports.initGeneratorFn = _chunkMRNYDR5Zjs.initGeneratorFn;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default,
|
|
3
3
|
initGeneratorFn
|
|
4
|
-
} from "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
4
|
+
} from "../../../chunk-BYZLBGIR.mjs";
|
|
5
|
+
import "../../../chunk-CRPLKOSJ.mjs";
|
|
6
6
|
import "../../../chunk-GDIR5JOX.mjs";
|
|
7
7
|
export {
|
|
8
8
|
generator_default as default,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/projen",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "Tools for managing Projen configuration automation within a Nx workspace.",
|
|
6
6
|
"repository": {
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"publishConfig": { "access": "public" },
|
|
143
143
|
"executors": "./executors.json",
|
|
144
144
|
"generators": "./generators.json",
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "1b9f901274134d51c4200e5797348cf9587203dc"
|
|
146
146
|
}
|