@storm-software/projen 0.9.37 → 0.9.39
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 +14 -0
- package/README.md +1 -1
- package/dist/{chunk-MHQEVFHV.mjs → chunk-BWJ5QDC4.mjs} +84 -70
- package/dist/{chunk-VXDOX27T.js → chunk-ZCDSFDVM.js} +116 -102
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Projen
|
|
4
4
|
|
|
5
|
+
## [0.9.39](https://github.com/storm-software/storm-ops/releases/tag/projen%400.9.39) (2025-04-08)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([082eec9a5](https://github.com/storm-software/storm-ops/commit/082eec9a5))
|
|
11
|
+
|
|
12
|
+
## [0.9.38](https://github.com/storm-software/storm-ops/releases/tag/projen%400.9.38) (2025-04-07)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous
|
|
15
|
+
|
|
16
|
+
- **monorepo:** Regenerate README markdown files
|
|
17
|
+
([1ac4c6ad4](https://github.com/storm-software/storm-ops/commit/1ac4c6ad4))
|
|
18
|
+
|
|
5
19
|
## [0.9.37](https://github.com/storm-software/storm-ops/releases/tag/projen%400.9.37) (2025-04-04)
|
|
6
20
|
|
|
7
21
|
### 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 -->
|
|
@@ -1882,57 +1882,6 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projec
|
|
|
1882
1882
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
1883
1883
|
init_esm_shims();
|
|
1884
1884
|
import { glob as glob2 } from "glob";
|
|
1885
|
-
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1886
|
-
const workspaceRoot3 = config.workspaceRoot || findWorkspaceRoot();
|
|
1887
|
-
const entryPoints = [];
|
|
1888
|
-
if (entry) {
|
|
1889
|
-
if (typeof entry === "string") {
|
|
1890
|
-
entryPoints.push(entry);
|
|
1891
|
-
} else if (Array.isArray(entry)) {
|
|
1892
|
-
entryPoints.push(...entry);
|
|
1893
|
-
} else {
|
|
1894
|
-
entryPoints.push(...Object.values(entry));
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
if (emitOnAll) {
|
|
1898
|
-
entryPoints.push(joinPaths(workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
1899
|
-
}
|
|
1900
|
-
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
1901
|
-
const paths = [];
|
|
1902
|
-
if (entryPoint.includes("*")) {
|
|
1903
|
-
const files = await glob2(entryPoint, {
|
|
1904
|
-
withFileTypes: true,
|
|
1905
|
-
ignore: [
|
|
1906
|
-
"**/node_modules/**"
|
|
1907
|
-
]
|
|
1908
|
-
});
|
|
1909
|
-
paths.push(...files.reduce((ret, filePath) => {
|
|
1910
|
-
const result = correctPaths(joinPaths(filePath.path, filePath.name).replaceAll(correctPaths(workspaceRoot3), "").replaceAll(correctPaths(projectRoot), ""));
|
|
1911
|
-
if (result) {
|
|
1912
|
-
writeDebug(`Trying to add entry point ${result} at "${joinPaths(filePath.path, filePath.name)}"`, config);
|
|
1913
|
-
if (!paths.includes(result)) {
|
|
1914
|
-
paths.push(result);
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
return ret;
|
|
1918
|
-
}, []));
|
|
1919
|
-
} else {
|
|
1920
|
-
writeDebug(`Trying to add entry point ${entryPoint}"`, config);
|
|
1921
|
-
if (!paths.includes(entryPoint)) {
|
|
1922
|
-
paths.push(entryPoint);
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
return paths;
|
|
1926
|
-
}));
|
|
1927
|
-
return results.filter(Boolean).reduce((ret, result) => {
|
|
1928
|
-
result.forEach((res) => {
|
|
1929
|
-
if (res && !ret.includes(res)) {
|
|
1930
|
-
ret.push(res);
|
|
1931
|
-
}
|
|
1932
|
-
});
|
|
1933
|
-
return ret;
|
|
1934
|
-
}, []);
|
|
1935
|
-
}, "getEntryPoints");
|
|
1936
1885
|
|
|
1937
1886
|
// ../build-tools/src/utilities/get-env.ts
|
|
1938
1887
|
init_esm_shims();
|
|
@@ -2381,10 +2330,10 @@ var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
2381
2330
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
2382
2331
|
await run(resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
2383
2332
|
}
|
|
2384
|
-
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0] && resolvedOptions.entryPoints[0].endsWith(".ts")) {
|
|
2333
|
+
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0]?.in && resolvedOptions.entryPoints[0].in.endsWith(".ts")) {
|
|
2385
2334
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
2386
2335
|
const typeOutDir = resolvedOptions.outdir;
|
|
2387
|
-
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
2336
|
+
const entryPoint = resolvedOptions.entryPoints[0].in.replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
2388
2337
|
const bundlePath = joinPaths(resolvedOptions.outdir, entryPoint);
|
|
2389
2338
|
let dtsPath;
|
|
2390
2339
|
if (existsSync5(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
@@ -2577,6 +2526,85 @@ var shebangRenderer = {
|
|
|
2577
2526
|
}
|
|
2578
2527
|
};
|
|
2579
2528
|
|
|
2529
|
+
// ../esbuild/src/utilities/get-entry-points.ts
|
|
2530
|
+
init_esm_shims();
|
|
2531
|
+
import { glob as glob3 } from "glob";
|
|
2532
|
+
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
2533
|
+
const workspaceRoot3 = config.workspaceRoot || findWorkspaceRoot();
|
|
2534
|
+
const entryPoints = [];
|
|
2535
|
+
if (entry) {
|
|
2536
|
+
if (typeof entry === "string") {
|
|
2537
|
+
entryPoints.push({
|
|
2538
|
+
in: entry,
|
|
2539
|
+
out: entry
|
|
2540
|
+
});
|
|
2541
|
+
} else if (Array.isArray(entry)) {
|
|
2542
|
+
entryPoints.push(...entry.map((entry2) => ({
|
|
2543
|
+
in: entry2,
|
|
2544
|
+
out: entry2
|
|
2545
|
+
})));
|
|
2546
|
+
} else {
|
|
2547
|
+
entryPoints.push(...Object.entries(entry).map(([key, value]) => {
|
|
2548
|
+
if (typeof value === "string") {
|
|
2549
|
+
return {
|
|
2550
|
+
in: value,
|
|
2551
|
+
out: key
|
|
2552
|
+
};
|
|
2553
|
+
} else {
|
|
2554
|
+
return {
|
|
2555
|
+
in: key,
|
|
2556
|
+
out: key
|
|
2557
|
+
};
|
|
2558
|
+
}
|
|
2559
|
+
}));
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
if (emitOnAll) {
|
|
2563
|
+
entryPoints.push({
|
|
2564
|
+
in: joinPaths(workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
|
|
2565
|
+
out: joinPaths(workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
2566
|
+
});
|
|
2567
|
+
}
|
|
2568
|
+
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
2569
|
+
const paths = [];
|
|
2570
|
+
if (entryPoint.in.includes("*")) {
|
|
2571
|
+
const files = await glob3(entryPoint.in, {
|
|
2572
|
+
withFileTypes: true,
|
|
2573
|
+
ignore: [
|
|
2574
|
+
"**/node_modules/**"
|
|
2575
|
+
]
|
|
2576
|
+
});
|
|
2577
|
+
paths.push(...files.reduce((ret, filePath) => {
|
|
2578
|
+
const result = correctPaths(joinPaths(filePath.path, filePath.name).replaceAll(correctPaths(workspaceRoot3), "").replaceAll(correctPaths(projectRoot), ""));
|
|
2579
|
+
if (result) {
|
|
2580
|
+
writeDebug(`Trying to add entry point ${result} at "${joinPaths(filePath.path, filePath.name)}"`, config);
|
|
2581
|
+
if (!paths.some((p) => p.in === result)) {
|
|
2582
|
+
paths.push({
|
|
2583
|
+
in: result,
|
|
2584
|
+
out: entryPoint.out.replace(entryPoint.in, result)
|
|
2585
|
+
});
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
return ret;
|
|
2589
|
+
}, []));
|
|
2590
|
+
} else {
|
|
2591
|
+
writeDebug(`Trying to add entry point ${entryPoint}"`, config);
|
|
2592
|
+
if (!paths.some((p) => p.in === entryPoint.in)) {
|
|
2593
|
+
paths.push(entryPoint);
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
return paths;
|
|
2597
|
+
}));
|
|
2598
|
+
return results.filter(Boolean).reduce((ret, result) => {
|
|
2599
|
+
result.forEach((res) => {
|
|
2600
|
+
if (res && !ret.some((p) => p.in === res.in)) {
|
|
2601
|
+
ret.push(res);
|
|
2602
|
+
}
|
|
2603
|
+
});
|
|
2604
|
+
return ret;
|
|
2605
|
+
}, []);
|
|
2606
|
+
}, "getEntryPoints");
|
|
2607
|
+
|
|
2580
2608
|
// ../esbuild/src/utilities/helpers.ts
|
|
2581
2609
|
init_esm_shims();
|
|
2582
2610
|
function handleSync(fn) {
|
|
@@ -2772,23 +2800,9 @@ async function generatePackageJson(context2) {
|
|
|
2772
2800
|
packageJson.exports ??= {};
|
|
2773
2801
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
2774
2802
|
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
2775
|
-
|
|
2776
|
-
{
|
|
2777
|
-
|
|
2778
|
-
out: "./src/index.ts"
|
|
2779
|
-
}
|
|
2780
|
-
];
|
|
2781
|
-
if (context2.options.entryPoints) {
|
|
2782
|
-
if (Array.isArray(context2.options.entryPoints)) {
|
|
2783
|
-
entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
|
|
2784
|
-
in: entryPoint,
|
|
2785
|
-
out: correctPaths(entryPoint.replaceAll(correctPaths(context2.options.config.workspaceRoot), "").replaceAll(correctPaths(context2.options.projectRoot), ""))
|
|
2786
|
-
} : entryPoint);
|
|
2787
|
-
}
|
|
2788
|
-
for (const entryPoint of entryPoints) {
|
|
2789
|
-
const split = entryPoint.out.split(".");
|
|
2790
|
-
split.pop();
|
|
2791
|
-
const entry = split.join(".").replaceAll("\\", "/");
|
|
2803
|
+
for (const entryPoint of context2.options.entryPoints) {
|
|
2804
|
+
if (entryPoint.out) {
|
|
2805
|
+
const entry = entryPoint.out.replaceAll("\\", "/").replaceAll(/^(\.\/)*/, "").replace(/\.([cm])?[jt]s(x)?$/, "");
|
|
2792
2806
|
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
2793
2807
|
}
|
|
2794
2808
|
}
|
|
@@ -1881,57 +1881,6 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call
|
|
|
1881
1881
|
// ../build-tools/src/utilities/get-entry-points.ts
|
|
1882
1882
|
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
1883
1883
|
|
|
1884
|
-
var getEntryPoints = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
1885
|
-
const workspaceRoot3 = config.workspaceRoot || findWorkspaceRoot();
|
|
1886
|
-
const entryPoints = [];
|
|
1887
|
-
if (entry) {
|
|
1888
|
-
if (typeof entry === "string") {
|
|
1889
|
-
entryPoints.push(entry);
|
|
1890
|
-
} else if (Array.isArray(entry)) {
|
|
1891
|
-
entryPoints.push(...entry);
|
|
1892
|
-
} else {
|
|
1893
|
-
entryPoints.push(...Object.values(entry));
|
|
1894
|
-
}
|
|
1895
|
-
}
|
|
1896
|
-
if (emitOnAll) {
|
|
1897
|
-
entryPoints.push(_chunk3DQG66DJjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
1898
|
-
}
|
|
1899
|
-
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
1900
|
-
const paths = [];
|
|
1901
|
-
if (entryPoint.includes("*")) {
|
|
1902
|
-
const files = await _glob.glob.call(void 0, entryPoint, {
|
|
1903
|
-
withFileTypes: true,
|
|
1904
|
-
ignore: [
|
|
1905
|
-
"**/node_modules/**"
|
|
1906
|
-
]
|
|
1907
|
-
});
|
|
1908
|
-
paths.push(...files.reduce((ret, filePath) => {
|
|
1909
|
-
const result = _chunk3DQG66DJjs.correctPaths.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunk3DQG66DJjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunk3DQG66DJjs.correctPaths.call(void 0, projectRoot), ""));
|
|
1910
|
-
if (result) {
|
|
1911
|
-
writeDebug(`Trying to add entry point ${result} at "${_chunk3DQG66DJjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
1912
|
-
if (!paths.includes(result)) {
|
|
1913
|
-
paths.push(result);
|
|
1914
|
-
}
|
|
1915
|
-
}
|
|
1916
|
-
return ret;
|
|
1917
|
-
}, []));
|
|
1918
|
-
} else {
|
|
1919
|
-
writeDebug(`Trying to add entry point ${entryPoint}"`, config);
|
|
1920
|
-
if (!paths.includes(entryPoint)) {
|
|
1921
|
-
paths.push(entryPoint);
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
return paths;
|
|
1925
|
-
}));
|
|
1926
|
-
return results.filter(Boolean).reduce((ret, result) => {
|
|
1927
|
-
result.forEach((res) => {
|
|
1928
|
-
if (res && !ret.includes(res)) {
|
|
1929
|
-
ret.push(res);
|
|
1930
|
-
}
|
|
1931
|
-
});
|
|
1932
|
-
return ret;
|
|
1933
|
-
}, []);
|
|
1934
|
-
}, "getEntryPoints");
|
|
1935
1884
|
|
|
1936
1885
|
// ../build-tools/src/utilities/get-env.ts
|
|
1937
1886
|
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
@@ -2380,10 +2329,10 @@ var tscPlugin = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options, r
|
|
|
2380
2329
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
2381
2330
|
await run(resolvedOptions.config, `pnpm exec tsc --project ${resolvedOptions.tsconfig}`, resolvedOptions.config.workspaceRoot);
|
|
2382
2331
|
}
|
|
2383
|
-
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && resolvedOptions.entryPoints[0] && resolvedOptions.entryPoints[0].endsWith(".ts")) {
|
|
2332
|
+
if (resolvedOptions.bundle && resolvedOptions.entryPoints && resolvedOptions.entryPoints.length > 0 && _optionalChain([resolvedOptions, 'access', _122 => _122.entryPoints, 'access', _123 => _123[0], 'optionalAccess', _124 => _124.in]) && resolvedOptions.entryPoints[0].in.endsWith(".ts")) {
|
|
2384
2333
|
const sourceRoot = resolvedOptions.sourceRoot.replaceAll(resolvedOptions.projectRoot, "");
|
|
2385
2334
|
const typeOutDir = resolvedOptions.outdir;
|
|
2386
|
-
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
2335
|
+
const entryPoint = resolvedOptions.entryPoints[0].in.replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
2387
2336
|
const bundlePath = _chunk3DQG66DJjs.joinPaths.call(void 0, resolvedOptions.outdir, entryPoint);
|
|
2388
2337
|
let dtsPath;
|
|
2389
2338
|
if (_fs.existsSync.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
@@ -2406,7 +2355,7 @@ var tscPlugin = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (options, r
|
|
|
2406
2355
|
function getTypeDependencyPackageName(npmPackage) {
|
|
2407
2356
|
if (npmPackage.startsWith("@")) {
|
|
2408
2357
|
const [scope, name] = npmPackage.split("/");
|
|
2409
|
-
return `@types/${_optionalChain([scope, 'optionalAccess',
|
|
2358
|
+
return `@types/${_optionalChain([scope, 'optionalAccess', _125 => _125.slice, 'call', _126 => _126(1)])}__${name}`;
|
|
2410
2359
|
}
|
|
2411
2360
|
return `@types/${npmPackage}`;
|
|
2412
2361
|
}
|
|
@@ -2576,6 +2525,85 @@ var shebangRenderer = {
|
|
|
2576
2525
|
}
|
|
2577
2526
|
};
|
|
2578
2527
|
|
|
2528
|
+
// ../esbuild/src/utilities/get-entry-points.ts
|
|
2529
|
+
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2530
|
+
|
|
2531
|
+
var getEntryPoints = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
2532
|
+
const workspaceRoot3 = config.workspaceRoot || findWorkspaceRoot();
|
|
2533
|
+
const entryPoints = [];
|
|
2534
|
+
if (entry) {
|
|
2535
|
+
if (typeof entry === "string") {
|
|
2536
|
+
entryPoints.push({
|
|
2537
|
+
in: entry,
|
|
2538
|
+
out: entry
|
|
2539
|
+
});
|
|
2540
|
+
} else if (Array.isArray(entry)) {
|
|
2541
|
+
entryPoints.push(...entry.map((entry2) => ({
|
|
2542
|
+
in: entry2,
|
|
2543
|
+
out: entry2
|
|
2544
|
+
})));
|
|
2545
|
+
} else {
|
|
2546
|
+
entryPoints.push(...Object.entries(entry).map(([key, value]) => {
|
|
2547
|
+
if (typeof value === "string") {
|
|
2548
|
+
return {
|
|
2549
|
+
in: value,
|
|
2550
|
+
out: key
|
|
2551
|
+
};
|
|
2552
|
+
} else {
|
|
2553
|
+
return {
|
|
2554
|
+
in: key,
|
|
2555
|
+
out: key
|
|
2556
|
+
};
|
|
2557
|
+
}
|
|
2558
|
+
}));
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
if (emitOnAll) {
|
|
2562
|
+
entryPoints.push({
|
|
2563
|
+
in: _chunk3DQG66DJjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}"),
|
|
2564
|
+
out: _chunk3DQG66DJjs.joinPaths.call(void 0, workspaceRoot3, sourceRoot || projectRoot, "**/*.{ts,tsx}")
|
|
2565
|
+
});
|
|
2566
|
+
}
|
|
2567
|
+
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
2568
|
+
const paths = [];
|
|
2569
|
+
if (entryPoint.in.includes("*")) {
|
|
2570
|
+
const files = await _glob.glob.call(void 0, entryPoint.in, {
|
|
2571
|
+
withFileTypes: true,
|
|
2572
|
+
ignore: [
|
|
2573
|
+
"**/node_modules/**"
|
|
2574
|
+
]
|
|
2575
|
+
});
|
|
2576
|
+
paths.push(...files.reduce((ret, filePath) => {
|
|
2577
|
+
const result = _chunk3DQG66DJjs.correctPaths.call(void 0, _chunk3DQG66DJjs.joinPaths.call(void 0, filePath.path, filePath.name).replaceAll(_chunk3DQG66DJjs.correctPaths.call(void 0, workspaceRoot3), "").replaceAll(_chunk3DQG66DJjs.correctPaths.call(void 0, projectRoot), ""));
|
|
2578
|
+
if (result) {
|
|
2579
|
+
writeDebug(`Trying to add entry point ${result} at "${_chunk3DQG66DJjs.joinPaths.call(void 0, filePath.path, filePath.name)}"`, config);
|
|
2580
|
+
if (!paths.some((p) => p.in === result)) {
|
|
2581
|
+
paths.push({
|
|
2582
|
+
in: result,
|
|
2583
|
+
out: entryPoint.out.replace(entryPoint.in, result)
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
return ret;
|
|
2588
|
+
}, []));
|
|
2589
|
+
} else {
|
|
2590
|
+
writeDebug(`Trying to add entry point ${entryPoint}"`, config);
|
|
2591
|
+
if (!paths.some((p) => p.in === entryPoint.in)) {
|
|
2592
|
+
paths.push(entryPoint);
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
return paths;
|
|
2596
|
+
}));
|
|
2597
|
+
return results.filter(Boolean).reduce((ret, result) => {
|
|
2598
|
+
result.forEach((res) => {
|
|
2599
|
+
if (res && !ret.some((p) => p.in === res.in)) {
|
|
2600
|
+
ret.push(res);
|
|
2601
|
+
}
|
|
2602
|
+
});
|
|
2603
|
+
return ret;
|
|
2604
|
+
}, []);
|
|
2605
|
+
}, "getEntryPoints");
|
|
2606
|
+
|
|
2579
2607
|
// ../esbuild/src/utilities/helpers.ts
|
|
2580
2608
|
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
2581
2609
|
function handleSync(fn) {
|
|
@@ -2625,7 +2653,7 @@ function pipeSync(fn, ...fns) {
|
|
|
2625
2653
|
return (...args) => {
|
|
2626
2654
|
let result = fn(...args);
|
|
2627
2655
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
2628
|
-
result = _optionalChain([fns, 'access',
|
|
2656
|
+
result = _optionalChain([fns, 'access', _127 => _127[i], 'optionalCall', _128 => _128(result)]);
|
|
2629
2657
|
}
|
|
2630
2658
|
return result;
|
|
2631
2659
|
};
|
|
@@ -2635,7 +2663,7 @@ function pipeAsync(fn, ...fns) {
|
|
|
2635
2663
|
return async (...args) => {
|
|
2636
2664
|
let result = await fn(...args);
|
|
2637
2665
|
for (let i = 0; result !== skip && i < fns.length; ++i) {
|
|
2638
|
-
result = await _optionalChain([fns, 'access',
|
|
2666
|
+
result = await _optionalChain([fns, 'access', _129 => _129[i], 'optionalCall', _130 => _130(result)]);
|
|
2639
2667
|
}
|
|
2640
2668
|
return result;
|
|
2641
2669
|
};
|
|
@@ -2665,7 +2693,7 @@ var resolveOptions = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, async
|
|
|
2665
2693
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2666
2694
|
const projectName = projectJson.name;
|
|
2667
2695
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2668
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2696
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _131 => _131.projects, 'optionalAccess', _132 => _132[projectName]])) {
|
|
2669
2697
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
2670
2698
|
}
|
|
2671
2699
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
@@ -2771,23 +2799,9 @@ async function generatePackageJson(context2) {
|
|
|
2771
2799
|
packageJson.exports ??= {};
|
|
2772
2800
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
2773
2801
|
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
2774
|
-
|
|
2775
|
-
{
|
|
2776
|
-
|
|
2777
|
-
out: "./src/index.ts"
|
|
2778
|
-
}
|
|
2779
|
-
];
|
|
2780
|
-
if (context2.options.entryPoints) {
|
|
2781
|
-
if (Array.isArray(context2.options.entryPoints)) {
|
|
2782
|
-
entryPoints = context2.options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
|
|
2783
|
-
in: entryPoint,
|
|
2784
|
-
out: _chunk3DQG66DJjs.correctPaths.call(void 0, entryPoint.replaceAll(_chunk3DQG66DJjs.correctPaths.call(void 0, context2.options.config.workspaceRoot), "").replaceAll(_chunk3DQG66DJjs.correctPaths.call(void 0, context2.options.projectRoot), ""))
|
|
2785
|
-
} : entryPoint);
|
|
2786
|
-
}
|
|
2787
|
-
for (const entryPoint of entryPoints) {
|
|
2788
|
-
const split = entryPoint.out.split(".");
|
|
2789
|
-
split.pop();
|
|
2790
|
-
const entry = split.join(".").replaceAll("\\", "/");
|
|
2802
|
+
for (const entryPoint of context2.options.entryPoints) {
|
|
2803
|
+
if (entryPoint.out) {
|
|
2804
|
+
const entry = entryPoint.out.replaceAll("\\", "/").replaceAll(/^(\.\/)*/, "").replace(/\.([cm])?[jt]s(x)?$/, "");
|
|
2791
2805
|
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
2792
2806
|
}
|
|
2793
2807
|
}
|
|
@@ -2879,7 +2893,7 @@ ${formatLogMessage({
|
|
|
2879
2893
|
}
|
|
2880
2894
|
_chunkWTMG7MTKjs.__name.call(void 0, executeEsBuild, "executeEsBuild");
|
|
2881
2895
|
async function copyBuildAssets(context2) {
|
|
2882
|
-
if (_optionalChain([context2, 'access',
|
|
2896
|
+
if (_optionalChain([context2, 'access', _133 => _133.result, 'optionalAccess', _134 => _134.errors, 'access', _135 => _135.length]) === 0) {
|
|
2883
2897
|
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
2884
2898
|
const stopwatch = getStopwatch(`${context2.options.name} asset copy`);
|
|
2885
2899
|
await copyAssets(context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
@@ -2889,7 +2903,7 @@ async function copyBuildAssets(context2) {
|
|
|
2889
2903
|
}
|
|
2890
2904
|
_chunkWTMG7MTKjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
2891
2905
|
async function reportResults(context2) {
|
|
2892
|
-
if (_optionalChain([context2, 'access',
|
|
2906
|
+
if (_optionalChain([context2, 'access', _136 => _136.result, 'optionalAccess', _137 => _137.errors, 'access', _138 => _138.length]) === 0) {
|
|
2893
2907
|
if (context2.result.warnings.length > 0) {
|
|
2894
2908
|
writeWarning(` \u{1F6A7} The following warnings occurred during the build: ${context2.result.warnings.map((warning) => warning.text).join("\n")}`, context2.options.config);
|
|
2895
2909
|
}
|
|
@@ -2990,14 +3004,14 @@ var watch = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (context2, opti
|
|
|
2990
3004
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2991
3005
|
async function esbuildExecutorFn(options, context2, config) {
|
|
2992
3006
|
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
2993
|
-
if (!_optionalChain([context2, 'access',
|
|
3007
|
+
if (!_optionalChain([context2, 'access', _139 => _139.projectsConfigurations, 'optionalAccess', _140 => _140.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName] || !_optionalChain([context2, 'access', _141 => _141.projectsConfigurations, 'access', _142 => _142.projects, 'access', _143 => _143[context2.projectName], 'optionalAccess', _144 => _144.root])) {
|
|
2994
3008
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
2995
3009
|
}
|
|
2996
3010
|
await build3({
|
|
2997
3011
|
...options,
|
|
2998
|
-
projectRoot: _optionalChain([context2, 'access',
|
|
3012
|
+
projectRoot: _optionalChain([context2, 'access', _145 => _145.projectsConfigurations, 'access', _146 => _146.projects, 'optionalAccess', _147 => _147[context2.projectName], 'access', _148 => _148.root]),
|
|
2999
3013
|
projectName: context2.projectName,
|
|
3000
|
-
sourceRoot: _optionalChain([context2, 'access',
|
|
3014
|
+
sourceRoot: _optionalChain([context2, 'access', _149 => _149.projectsConfigurations, 'access', _150 => _150.projects, 'optionalAccess', _151 => _151[context2.projectName], 'optionalAccess', _152 => _152.sourceRoot]),
|
|
3001
3015
|
format: options.format,
|
|
3002
3016
|
platform: options.format
|
|
3003
3017
|
});
|
|
@@ -3043,7 +3057,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
3043
3057
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
3044
3058
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
3045
3059
|
async function sizeLimitExecutorFn(options, context2, config) {
|
|
3046
|
-
if (!_optionalChain([context2, 'optionalAccess',
|
|
3060
|
+
if (!_optionalChain([context2, 'optionalAccess', _153 => _153.projectName]) || !_optionalChain([context2, 'access', _154 => _154.projectsConfigurations, 'optionalAccess', _155 => _155.projects]) || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
3047
3061
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
3048
3062
|
}
|
|
3049
3063
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context2.projectName}`, config);
|
|
@@ -3052,7 +3066,7 @@ async function sizeLimitExecutorFn(options, context2, config) {
|
|
|
3052
3066
|
_esbuild3.default,
|
|
3053
3067
|
_esbuildwhy2.default
|
|
3054
3068
|
], {
|
|
3055
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access',
|
|
3069
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context2, 'access', _156 => _156.projectsConfigurations, 'access', _157 => _157.projects, 'access', _158 => _158[context2.projectName], 'optionalAccess', _159 => _159.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context2, 'access', _160 => _160.projectsConfigurations, 'access', _161 => _161.projects, 'access', _162 => _162[context2.projectName], 'optionalAccess', _163 => _163.root]), () => ( "./")), "src")))
|
|
3056
3070
|
}).then((result) => {
|
|
3057
3071
|
writeInfo(`\u{1F4CF} ${context2.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
3058
3072
|
});
|
|
@@ -3113,7 +3127,7 @@ _chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
|
3113
3127
|
var _jiti = require('jiti');
|
|
3114
3128
|
async function unbuildExecutorFn(options, context2, config) {
|
|
3115
3129
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
3116
|
-
if (!_optionalChain([context2, 'access',
|
|
3130
|
+
if (!_optionalChain([context2, 'access', _164 => _164.projectsConfigurations, 'optionalAccess', _165 => _165.projects]) || !context2.projectName || !context2.projectsConfigurations.projects[context2.projectName]) {
|
|
3117
3131
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
3118
3132
|
}
|
|
3119
3133
|
if (!context2.projectsConfigurations.projects[context2.projectName].root) {
|
|
@@ -3201,7 +3215,7 @@ var withRunGenerator = /* @__PURE__ */ _chunkWTMG7MTKjs.__name.call(void 0, (nam
|
|
|
3201
3215
|
- workspaceRoot: ${workspaceRoot3}`, config);
|
|
3202
3216
|
config = await getConfig(workspaceRoot3);
|
|
3203
3217
|
}
|
|
3204
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3218
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _166 => _166.hooks, 'optionalAccess', _167 => _167.applyDefaultOptions])) {
|
|
3205
3219
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
3206
3220
|
options = await Promise.resolve(generatorOptions.hooks.applyDefaultOptions(options, config));
|
|
3207
3221
|
writeDebug("Completed the applyDefaultOptions hook", config);
|
|
@@ -3212,22 +3226,22 @@ ${Object.keys(_nullishCoalesce(options, () => ( {}))).map((key) => ` - ${key}=${
|
|
|
3212
3226
|
workspaceRoot: tree.root,
|
|
3213
3227
|
config
|
|
3214
3228
|
}, applyWorkspaceBaseTokens);
|
|
3215
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3229
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _168 => _168.hooks, 'optionalAccess', _169 => _169.preProcess])) {
|
|
3216
3230
|
writeDebug("Running the preProcess hook...", config);
|
|
3217
3231
|
await Promise.resolve(generatorOptions.hooks.preProcess(tokenized, config));
|
|
3218
3232
|
writeDebug("Completed the preProcess hook", config);
|
|
3219
3233
|
}
|
|
3220
3234
|
const result = await Promise.resolve(generatorFn(tree, tokenized, config));
|
|
3221
3235
|
if (result) {
|
|
3222
|
-
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess',
|
|
3236
|
+
if (result.success === false || result.error && _optionalChain([result, 'optionalAccess', _170 => _170.error, 'optionalAccess', _171 => _171.message]) && typeof _optionalChain([result, 'optionalAccess', _172 => _172.error, 'optionalAccess', _173 => _173.message]) === "string" && _optionalChain([result, 'optionalAccess', _174 => _174.error, 'optionalAccess', _175 => _175.name]) && typeof _optionalChain([result, 'optionalAccess', _176 => _176.error, 'optionalAccess', _177 => _177.name]) === "string") {
|
|
3223
3237
|
throw new Error(`The ${name} generator failed to run`, {
|
|
3224
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
3238
|
+
cause: _optionalChain([result, 'optionalAccess', _178 => _178.error])
|
|
3225
3239
|
});
|
|
3226
3240
|
} else if (result.success && result.data) {
|
|
3227
3241
|
return result;
|
|
3228
3242
|
}
|
|
3229
3243
|
}
|
|
3230
|
-
if (_optionalChain([generatorOptions, 'optionalAccess',
|
|
3244
|
+
if (_optionalChain([generatorOptions, 'optionalAccess', _179 => _179.hooks, 'optionalAccess', _180 => _180.postProcess])) {
|
|
3231
3245
|
writeDebug("Running the postProcess hook...", config);
|
|
3232
3246
|
await Promise.resolve(generatorOptions.hooks.postProcess(config));
|
|
3233
3247
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -3396,15 +3410,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3396
3410
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
3397
3411
|
let repository = {
|
|
3398
3412
|
type: "github",
|
|
3399
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
3413
|
+
url: _optionalChain([config, 'optionalAccess', _181 => _181.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _182 => _182.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _183 => _183.namespace]) || _optionalChain([config, 'optionalAccess', _184 => _184.name]) || "repository"}.git`
|
|
3400
3414
|
};
|
|
3401
3415
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3402
3416
|
if (tree.exists("package.json")) {
|
|
3403
3417
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3404
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3418
|
+
if (_optionalChain([packageJson, 'optionalAccess', _185 => _185.repository])) {
|
|
3405
3419
|
repository = packageJson.repository;
|
|
3406
3420
|
}
|
|
3407
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3421
|
+
if (_optionalChain([packageJson, 'optionalAccess', _186 => _186.description])) {
|
|
3408
3422
|
description = packageJson.description;
|
|
3409
3423
|
}
|
|
3410
3424
|
}
|
|
@@ -3459,9 +3473,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3459
3473
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
3460
3474
|
...json,
|
|
3461
3475
|
pnpm: {
|
|
3462
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3476
|
+
..._optionalChain([json, 'optionalAccess', _187 => _187.pnpm]),
|
|
3463
3477
|
overrides: {
|
|
3464
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3478
|
+
..._optionalChain([json, 'optionalAccess', _188 => _188.pnpm, 'optionalAccess', _189 => _189.overrides]),
|
|
3465
3479
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3466
3480
|
}
|
|
3467
3481
|
}
|
|
@@ -3475,10 +3489,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3475
3489
|
]);
|
|
3476
3490
|
if (tree.exists("package.json")) {
|
|
3477
3491
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3478
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3492
|
+
if (_optionalChain([packageJson, 'optionalAccess', _190 => _190.repository])) {
|
|
3479
3493
|
repository = packageJson.repository;
|
|
3480
3494
|
}
|
|
3481
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3495
|
+
if (_optionalChain([packageJson, 'optionalAccess', _191 => _191.description])) {
|
|
3482
3496
|
description = packageJson.description;
|
|
3483
3497
|
}
|
|
3484
3498
|
}
|
|
@@ -3526,24 +3540,24 @@ _chunkWTMG7MTKjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
|
3526
3540
|
function createProjectTsConfigJson(tree, options) {
|
|
3527
3541
|
const tsconfig = {
|
|
3528
3542
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
3529
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3543
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _192 => _192.tsconfigOptions]), () => ( {})),
|
|
3530
3544
|
compilerOptions: {
|
|
3531
3545
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3532
3546
|
outDir: _chunk3DQG66DJjs.joinPaths.call(void 0, _devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3533
3547
|
noEmit: true,
|
|
3534
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3548
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _193 => _193.tsconfigOptions, 'optionalAccess', _194 => _194.compilerOptions]), () => ( {}))
|
|
3535
3549
|
},
|
|
3536
3550
|
files: [
|
|
3537
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3551
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _195 => _195.tsconfigOptions, 'optionalAccess', _196 => _196.files]), () => ( []))
|
|
3538
3552
|
],
|
|
3539
3553
|
include: [
|
|
3540
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3554
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _197 => _197.tsconfigOptions, 'optionalAccess', _198 => _198.include]), () => ( [])),
|
|
3541
3555
|
"src/**/*.ts",
|
|
3542
3556
|
"src/**/*.js",
|
|
3543
3557
|
"bin/**/*"
|
|
3544
3558
|
],
|
|
3545
3559
|
exclude: [
|
|
3546
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3560
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _199 => _199.tsconfigOptions, 'optionalAccess', _200 => _200.exclude]), () => ( [])),
|
|
3547
3561
|
"jest.config.ts",
|
|
3548
3562
|
"src/**/*.spec.ts",
|
|
3549
3563
|
"src/**/*.test.ts"
|
|
@@ -3554,8 +3568,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3554
3568
|
_chunkWTMG7MTKjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
3555
3569
|
async function normalizeOptions(tree, options, config) {
|
|
3556
3570
|
let importPath = options.importPath;
|
|
3557
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
3558
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
3571
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _201 => _201.namespace])) {
|
|
3572
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _202 => _202.namespace])}/${options.name}`;
|
|
3559
3573
|
}
|
|
3560
3574
|
if (options.publishable) {
|
|
3561
3575
|
if (!importPath) {
|
|
@@ -3688,7 +3702,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3688
3702
|
name: "StormWorkspaceConfiguration"
|
|
3689
3703
|
});
|
|
3690
3704
|
writeTrace(jsonSchema, config);
|
|
3691
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
3705
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _203 => _203.workspaceRoot]), () => ( findWorkspaceRoot())), _optionalChain([options, 'access', _204 => _204.outputFile, 'optionalAccess', _205 => _205.startsWith, 'call', _206 => _206("./")]) ? "" : "./");
|
|
3692
3706
|
writeTrace(`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
3693
3707
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
3694
3708
|
spaces: 2
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-3Y6AMHJ5.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZCDSFDVMjs = require('./chunk-ZCDSFDVM.js');
|
|
5
5
|
require('./chunk-3DQG66DJ.js');
|
|
6
6
|
require('./chunk-WTMG7MTK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGeneratorFn =
|
|
9
|
+
exports.initGeneratorFn = _chunkZCDSFDVMjs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkZ2UXMCUYjs = require('./chunk-Z2UXMCUY.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZCDSFDVMjs = require('./chunk-ZCDSFDVM.js');
|
|
8
8
|
require('./chunk-3DQG66DJ.js');
|
|
9
9
|
|
|
10
10
|
|
|
@@ -16,10 +16,10 @@ var _chunkWTMG7MTKjs = require('./chunk-WTMG7MTK.js');
|
|
|
16
16
|
// index.ts
|
|
17
17
|
var index_exports = {};
|
|
18
18
|
_chunkWTMG7MTKjs.__export.call(void 0, index_exports, {
|
|
19
|
-
initGeneratorFn: () =>
|
|
19
|
+
initGeneratorFn: () => _chunkZCDSFDVMjs.initGeneratorFn
|
|
20
20
|
});
|
|
21
21
|
_chunkWTMG7MTKjs.init_cjs_shims.call(void 0, );
|
|
22
22
|
_chunkWTMG7MTKjs.__reExport.call(void 0, index_exports, _chunkWTMG7MTKjs.__toESM.call(void 0, _chunkZ2UXMCUYjs.require_components.call(void 0, )));
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
exports.initGeneratorFn =
|
|
25
|
+
exports.initGeneratorFn = _chunkZCDSFDVMjs.initGeneratorFn;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZCDSFDVMjs = require('../../../chunk-ZCDSFDVM.js');
|
|
5
5
|
require('../../../chunk-3DQG66DJ.js');
|
|
6
6
|
require('../../../chunk-WTMG7MTK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.default =
|
|
10
|
+
exports.default = _chunkZCDSFDVMjs.generator_default; exports.initGeneratorFn = _chunkZCDSFDVMjs.initGeneratorFn;
|