@storm-software/pulumi-tools 0.7.81 → 0.7.82
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 +9 -0
- package/README.md +1 -2
- package/dist/{chunk-TCPQS3FC.mjs → chunk-2PVTUX4W.mjs} +1 -1
- package/dist/{chunk-J5NVVVHZ.js → chunk-2QARL2O5.js} +2 -2
- package/dist/{chunk-ESHAP37L.mjs → chunk-2TYNPYBU.mjs} +1 -1
- package/dist/{chunk-YTI55E4Z.mjs → chunk-36ZCRXV6.mjs} +1 -1
- package/dist/{chunk-2QAZEBOG.js → chunk-DFUGKUEV.js} +3 -3
- package/dist/{chunk-JWQAUSXZ.mjs → chunk-DIIDXD4R.mjs} +1 -1
- package/dist/{chunk-C6HV3VOH.mjs → chunk-E5AP6CDG.mjs} +1 -1
- package/dist/{chunk-2MM34QNY.mjs → chunk-IWIZJWH3.mjs} +32 -82
- package/dist/{chunk-5ZBO7GC6.js → chunk-N7ZQU3A6.js} +2 -2
- package/dist/{chunk-TRMMILFW.js → chunk-O2YJQKYB.js} +2 -2
- package/dist/{chunk-S3CLNYH2.js → chunk-R3EJZLX2.js} +57 -107
- package/dist/{chunk-XOH426DW.js → chunk-RWNDPKJK.js} +2 -2
- package/dist/{chunk-LVBND7MN.mjs → chunk-SSY3QNGM.mjs} +1 -1
- package/dist/{chunk-IBJKPAXV.mjs → chunk-T6O7JL6L.mjs} +1 -1
- package/dist/{chunk-MHBRG7UB.js → chunk-TXKOR3ID.js} +2 -2
- package/dist/{chunk-QW6YGFF7.js → chunk-ZUJ3PY3K.js} +5 -5
- package/dist/executors.js +7 -7
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +9 -9
- package/dist/index.mjs +8 -8
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +2 -2
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/executors/config/executor.js +4 -4
- package/dist/src/executors/config/executor.mjs +3 -3
- package/dist/src/executors/import/executor.js +4 -4
- package/dist/src/executors/import/executor.mjs +3 -3
- package/dist/src/executors/preview/executor.js +4 -4
- package/dist/src/executors/preview/executor.mjs +3 -3
- package/dist/src/executors/refresh/executor.js +4 -4
- package/dist/src/executors/refresh/executor.mjs +3 -3
- package/dist/src/executors/up/executor.js +4 -4
- package/dist/src/executors/up/executor.mjs +3 -3
- package/dist/src/generators/init/generator.js +3 -3
- package/dist/src/generators/init/generator.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pulumi Tools
|
|
4
4
|
|
|
5
|
+
## [0.7.82](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.7.82) (2025-04-30)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **esbuild:** Remove swc plugin for ESBuild
|
|
10
|
+
([ad298c288](https://github.com/storm-software/storm-ops/commit/ad298c288))
|
|
11
|
+
- **monorepo:** Regenerate README markdown files
|
|
12
|
+
([933d45f0b](https://github.com/storm-software/storm-ops/commit/933d45f0b))
|
|
13
|
+
|
|
5
14
|
## [0.7.81](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.7.81) (2025-04-30)
|
|
6
15
|
|
|
7
16
|
### Bug Fixes
|
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 -->
|
|
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
40
40
|
|
|
41
41
|
<!-- START doctoc -->
|
|
42
42
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
43
|
-
|
|
44
43
|
## Table of Contents
|
|
45
44
|
|
|
46
45
|
- [Storm Pulumi Tools](#storm-pulumi-tools)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDFUGKUEVjs = require('./chunk-DFUGKUEV.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/up/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkDFUGKUEVjs.withPulumiExecutor.call(void 0, "up", (options) => [
|
|
7
7
|
"--suppress-progress",
|
|
8
8
|
options.stack && `--stack=${options.stack}`,
|
|
9
9
|
options.skipPreview && "--skip-preview",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkR3EJZLX2js = require('./chunk-R3EJZLX2.js');
|
|
5
5
|
|
|
6
6
|
// src/base/base-executor.ts
|
|
7
7
|
var _path = require('path');
|
|
8
8
|
var _shelljs = require('shelljs');
|
|
9
9
|
var withPulumiExecutor = (command, argsMapper, executorOptions = {}) => async (_options, context) => {
|
|
10
|
-
return
|
|
10
|
+
return _chunkR3EJZLX2js.withRunExecutor.call(void 0,
|
|
11
11
|
`Pulumi \`${command}\` Command Executor`,
|
|
12
12
|
async (options, context2, config) => {
|
|
13
13
|
if (!_shelljs.which.call(void 0, "pulumi")) {
|
|
@@ -21,7 +21,7 @@ var withPulumiExecutor = (command, argsMapper, executorOptions = {}) => async (_
|
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
23
|
const { sourceRoot } = context2.projectsConfigurations.projects[context2.projectName];
|
|
24
|
-
|
|
24
|
+
_chunkR3EJZLX2js.run.call(void 0,
|
|
25
25
|
config,
|
|
26
26
|
["pulumi", command, ...argsMapper(options)].filter(Boolean).join(" "),
|
|
27
27
|
_path.join.call(void 0, config.workspaceRoot, options.root || sourceRoot),
|
|
@@ -314,65 +314,65 @@ function normalizeWindowsPath(input = "") {
|
|
|
314
314
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
315
315
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
316
316
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
317
|
-
var correctPaths = function(
|
|
318
|
-
if (!
|
|
317
|
+
var correctPaths = function(path4) {
|
|
318
|
+
if (!path4 || path4.length === 0) {
|
|
319
319
|
return ".";
|
|
320
320
|
}
|
|
321
|
-
|
|
322
|
-
const isUNCPath =
|
|
323
|
-
const isPathAbsolute = isAbsolute(
|
|
324
|
-
const trailingSeparator =
|
|
325
|
-
|
|
326
|
-
if (
|
|
321
|
+
path4 = normalizeWindowsPath(path4);
|
|
322
|
+
const isUNCPath = path4.match(_UNC_REGEX);
|
|
323
|
+
const isPathAbsolute = isAbsolute(path4);
|
|
324
|
+
const trailingSeparator = path4[path4.length - 1] === "/";
|
|
325
|
+
path4 = normalizeString(path4, !isPathAbsolute);
|
|
326
|
+
if (path4.length === 0) {
|
|
327
327
|
if (isPathAbsolute) {
|
|
328
328
|
return "/";
|
|
329
329
|
}
|
|
330
330
|
return trailingSeparator ? "./" : ".";
|
|
331
331
|
}
|
|
332
332
|
if (trailingSeparator) {
|
|
333
|
-
|
|
333
|
+
path4 += "/";
|
|
334
334
|
}
|
|
335
|
-
if (_DRIVE_LETTER_RE.test(
|
|
336
|
-
|
|
335
|
+
if (_DRIVE_LETTER_RE.test(path4)) {
|
|
336
|
+
path4 += "/";
|
|
337
337
|
}
|
|
338
338
|
if (isUNCPath) {
|
|
339
339
|
if (!isPathAbsolute) {
|
|
340
|
-
return `//./${
|
|
340
|
+
return `//./${path4}`;
|
|
341
341
|
}
|
|
342
|
-
return `//${
|
|
342
|
+
return `//${path4}`;
|
|
343
343
|
}
|
|
344
|
-
return isPathAbsolute && !isAbsolute(
|
|
344
|
+
return isPathAbsolute && !isAbsolute(path4) ? `/${path4}` : path4;
|
|
345
345
|
};
|
|
346
346
|
var joinPaths = function(...segments) {
|
|
347
|
-
let
|
|
347
|
+
let path4 = "";
|
|
348
348
|
for (const seg of segments) {
|
|
349
349
|
if (!seg) {
|
|
350
350
|
continue;
|
|
351
351
|
}
|
|
352
|
-
if (
|
|
353
|
-
const pathTrailing =
|
|
352
|
+
if (path4.length > 0) {
|
|
353
|
+
const pathTrailing = path4[path4.length - 1] === "/";
|
|
354
354
|
const segLeading = seg[0] === "/";
|
|
355
355
|
const both = pathTrailing && segLeading;
|
|
356
356
|
if (both) {
|
|
357
|
-
|
|
357
|
+
path4 += seg.slice(1);
|
|
358
358
|
} else {
|
|
359
|
-
|
|
359
|
+
path4 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
360
360
|
}
|
|
361
361
|
} else {
|
|
362
|
-
|
|
362
|
+
path4 += seg;
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
|
-
return correctPaths(
|
|
365
|
+
return correctPaths(path4);
|
|
366
366
|
};
|
|
367
|
-
function normalizeString(
|
|
367
|
+
function normalizeString(path4, allowAboveRoot) {
|
|
368
368
|
let res = "";
|
|
369
369
|
let lastSegmentLength = 0;
|
|
370
370
|
let lastSlash = -1;
|
|
371
371
|
let dots = 0;
|
|
372
372
|
let char = null;
|
|
373
|
-
for (let index = 0; index <=
|
|
374
|
-
if (index <
|
|
375
|
-
char =
|
|
373
|
+
for (let index = 0; index <= path4.length; ++index) {
|
|
374
|
+
if (index < path4.length) {
|
|
375
|
+
char = path4[index];
|
|
376
376
|
} else if (char === "/") {
|
|
377
377
|
break;
|
|
378
378
|
} else {
|
|
@@ -408,9 +408,9 @@ function normalizeString(path5, allowAboveRoot) {
|
|
|
408
408
|
}
|
|
409
409
|
} else {
|
|
410
410
|
if (res.length > 0) {
|
|
411
|
-
res += `/${
|
|
411
|
+
res += `/${path4.slice(lastSlash + 1, index)}`;
|
|
412
412
|
} else {
|
|
413
|
-
res =
|
|
413
|
+
res = path4.slice(lastSlash + 1, index);
|
|
414
414
|
}
|
|
415
415
|
lastSegmentLength = index - lastSlash - 1;
|
|
416
416
|
}
|
|
@@ -2393,53 +2393,6 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2393
2393
|
}
|
|
2394
2394
|
};
|
|
2395
2395
|
|
|
2396
|
-
// ../esbuild/src/plugins/resolve-paths.ts
|
|
2397
|
-
import path2 from "node:path";
|
|
2398
|
-
function resolvePathsConfig(options, cwd, projectRoot) {
|
|
2399
|
-
if (options?.compilerOptions?.paths) {
|
|
2400
|
-
const paths = Object.entries(options.compilerOptions.paths);
|
|
2401
|
-
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
2402
|
-
return [key, paths2.map((v) => path2.resolve(cwd, v))];
|
|
2403
|
-
});
|
|
2404
|
-
return Object.fromEntries(resolvedPaths);
|
|
2405
|
-
}
|
|
2406
|
-
if (options.extends) {
|
|
2407
|
-
const extendsPath = path2.resolve(
|
|
2408
|
-
projectRoot ? joinPaths(cwd, projectRoot, options.extends) : joinPaths(cwd, options.extends)
|
|
2409
|
-
);
|
|
2410
|
-
const extendsDir = path2.dirname(extendsPath);
|
|
2411
|
-
const extendsConfig = __require(extendsPath);
|
|
2412
|
-
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
2413
|
-
}
|
|
2414
|
-
return [];
|
|
2415
|
-
}
|
|
2416
|
-
var resolvePathsPlugin = (context) => ({
|
|
2417
|
-
name: "storm:resolve-paths",
|
|
2418
|
-
setup(build3) {
|
|
2419
|
-
const parentTsConfig = build3.initialOptions.tsconfig ? __require(joinPaths(
|
|
2420
|
-
context.workspaceConfig.workspaceRoot,
|
|
2421
|
-
build3.initialOptions.tsconfig.replace(
|
|
2422
|
-
context.workspaceConfig.workspaceRoot,
|
|
2423
|
-
""
|
|
2424
|
-
)
|
|
2425
|
-
)) : __require(joinPaths(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
2426
|
-
const resolvedTsPaths = resolvePathsConfig(
|
|
2427
|
-
parentTsConfig,
|
|
2428
|
-
context.workspaceConfig.workspaceRoot,
|
|
2429
|
-
context.options.projectRoot
|
|
2430
|
-
);
|
|
2431
|
-
const packagesRegex = new RegExp(
|
|
2432
|
-
`^(${Object.keys(resolvedTsPaths).join("|")})$`
|
|
2433
|
-
);
|
|
2434
|
-
build3.onResolve({ filter: packagesRegex }, (args) => {
|
|
2435
|
-
if (build3.initialOptions.external?.includes(args.path)) {
|
|
2436
|
-
return { path: args.path, external: true };
|
|
2437
|
-
}
|
|
2438
|
-
return { path: `${resolvedTsPaths[args.path][0]}/index.ts` };
|
|
2439
|
-
});
|
|
2440
|
-
}
|
|
2441
|
-
});
|
|
2442
|
-
|
|
2443
2396
|
// ../esbuild/src/context.ts
|
|
2444
2397
|
async function resolveContext(userOptions) {
|
|
2445
2398
|
const projectRoot = userOptions.projectRoot;
|
|
@@ -2519,10 +2472,7 @@ async function resolveContext(userOptions) {
|
|
|
2519
2472
|
),
|
|
2520
2473
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
2521
2474
|
};
|
|
2522
|
-
context.options.esbuildPlugins = [
|
|
2523
|
-
resolvePathsPlugin(context),
|
|
2524
|
-
...context.options.esbuildPlugins ?? []
|
|
2525
|
-
];
|
|
2475
|
+
context.options.esbuildPlugins = [...context.options.esbuildPlugins ?? []];
|
|
2526
2476
|
return context;
|
|
2527
2477
|
}
|
|
2528
2478
|
|
|
@@ -2658,7 +2608,7 @@ async function generatePackageJson(context) {
|
|
|
2658
2608
|
|
|
2659
2609
|
// ../esbuild/src/plugins/deps-check.ts
|
|
2660
2610
|
import { builtinModules as builtinModules2 } from "node:module";
|
|
2661
|
-
import
|
|
2611
|
+
import path2 from "node:path";
|
|
2662
2612
|
var unusedIgnore = [
|
|
2663
2613
|
// these are our dev dependencies
|
|
2664
2614
|
/@types\/.*?/,
|
|
@@ -2687,7 +2637,7 @@ var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
|
|
|
2687
2637
|
var depsCheckPlugin = (bundle) => ({
|
|
2688
2638
|
name: "storm:deps-check",
|
|
2689
2639
|
setup(build3) {
|
|
2690
|
-
const pkgJsonPath =
|
|
2640
|
+
const pkgJsonPath = path2.join(process.cwd(), "package.json");
|
|
2691
2641
|
const pkgContents = __require(pkgJsonPath);
|
|
2692
2642
|
const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
|
|
2693
2643
|
const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
|
|
@@ -3701,7 +3651,7 @@ import {
|
|
|
3701
3651
|
joinPathFragments as joinPathFragments4,
|
|
3702
3652
|
updateJson as updateJson2
|
|
3703
3653
|
} from "@nx/devkit";
|
|
3704
|
-
import * as
|
|
3654
|
+
import * as path3 from "node:path";
|
|
3705
3655
|
async function presetGeneratorFn(tree, options) {
|
|
3706
3656
|
const projectRoot = ".";
|
|
3707
3657
|
options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
|
|
@@ -3849,7 +3799,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
3849
3799
|
};
|
|
3850
3800
|
return json;
|
|
3851
3801
|
});
|
|
3852
|
-
generateFiles4(tree,
|
|
3802
|
+
generateFiles4(tree, path3.join(__dirname, "files"), projectRoot, {
|
|
3853
3803
|
...options,
|
|
3854
3804
|
pnpmVersion,
|
|
3855
3805
|
nodeVersion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDFUGKUEVjs = require('./chunk-DFUGKUEV.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/preview/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkDFUGKUEVjs.withPulumiExecutor.call(void 0,
|
|
7
7
|
"preview",
|
|
8
8
|
(options) => [
|
|
9
9
|
options.stack && `--stack=${options.stack}`,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDFUGKUEVjs = require('./chunk-DFUGKUEV.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/config/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkDFUGKUEVjs.withPulumiExecutor.call(void 0, "config", (options) => [
|
|
7
7
|
options.action,
|
|
8
8
|
options.showSecrets && `--show-secrets`,
|
|
9
9
|
options.secret && `--secret`,
|
|
@@ -300,7 +300,7 @@ var COLOR_KEYS = [
|
|
|
300
300
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
301
301
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
302
302
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
303
|
-
var _path = require('path'); var
|
|
303
|
+
var _path = require('path'); var path3 = _interopRequireWildcard(_path);
|
|
304
304
|
|
|
305
305
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
306
306
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
@@ -313,65 +313,65 @@ function normalizeWindowsPath(input = "") {
|
|
|
313
313
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
314
314
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
315
315
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
316
|
-
var correctPaths = function(
|
|
317
|
-
if (!
|
|
316
|
+
var correctPaths = function(path4) {
|
|
317
|
+
if (!path4 || path4.length === 0) {
|
|
318
318
|
return ".";
|
|
319
319
|
}
|
|
320
|
-
|
|
321
|
-
const isUNCPath =
|
|
322
|
-
const isPathAbsolute = isAbsolute(
|
|
323
|
-
const trailingSeparator =
|
|
324
|
-
|
|
325
|
-
if (
|
|
320
|
+
path4 = normalizeWindowsPath(path4);
|
|
321
|
+
const isUNCPath = path4.match(_UNC_REGEX);
|
|
322
|
+
const isPathAbsolute = isAbsolute(path4);
|
|
323
|
+
const trailingSeparator = path4[path4.length - 1] === "/";
|
|
324
|
+
path4 = normalizeString(path4, !isPathAbsolute);
|
|
325
|
+
if (path4.length === 0) {
|
|
326
326
|
if (isPathAbsolute) {
|
|
327
327
|
return "/";
|
|
328
328
|
}
|
|
329
329
|
return trailingSeparator ? "./" : ".";
|
|
330
330
|
}
|
|
331
331
|
if (trailingSeparator) {
|
|
332
|
-
|
|
332
|
+
path4 += "/";
|
|
333
333
|
}
|
|
334
|
-
if (_DRIVE_LETTER_RE.test(
|
|
335
|
-
|
|
334
|
+
if (_DRIVE_LETTER_RE.test(path4)) {
|
|
335
|
+
path4 += "/";
|
|
336
336
|
}
|
|
337
337
|
if (isUNCPath) {
|
|
338
338
|
if (!isPathAbsolute) {
|
|
339
|
-
return `//./${
|
|
339
|
+
return `//./${path4}`;
|
|
340
340
|
}
|
|
341
|
-
return `//${
|
|
341
|
+
return `//${path4}`;
|
|
342
342
|
}
|
|
343
|
-
return isPathAbsolute && !isAbsolute(
|
|
343
|
+
return isPathAbsolute && !isAbsolute(path4) ? `/${path4}` : path4;
|
|
344
344
|
};
|
|
345
345
|
var joinPaths = function(...segments) {
|
|
346
|
-
let
|
|
346
|
+
let path4 = "";
|
|
347
347
|
for (const seg of segments) {
|
|
348
348
|
if (!seg) {
|
|
349
349
|
continue;
|
|
350
350
|
}
|
|
351
|
-
if (
|
|
352
|
-
const pathTrailing =
|
|
351
|
+
if (path4.length > 0) {
|
|
352
|
+
const pathTrailing = path4[path4.length - 1] === "/";
|
|
353
353
|
const segLeading = seg[0] === "/";
|
|
354
354
|
const both = pathTrailing && segLeading;
|
|
355
355
|
if (both) {
|
|
356
|
-
|
|
356
|
+
path4 += seg.slice(1);
|
|
357
357
|
} else {
|
|
358
|
-
|
|
358
|
+
path4 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
359
359
|
}
|
|
360
360
|
} else {
|
|
361
|
-
|
|
361
|
+
path4 += seg;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
return correctPaths(
|
|
364
|
+
return correctPaths(path4);
|
|
365
365
|
};
|
|
366
|
-
function normalizeString(
|
|
366
|
+
function normalizeString(path4, allowAboveRoot) {
|
|
367
367
|
let res = "";
|
|
368
368
|
let lastSegmentLength = 0;
|
|
369
369
|
let lastSlash = -1;
|
|
370
370
|
let dots = 0;
|
|
371
371
|
let char = null;
|
|
372
|
-
for (let index = 0; index <=
|
|
373
|
-
if (index <
|
|
374
|
-
char =
|
|
372
|
+
for (let index = 0; index <= path4.length; ++index) {
|
|
373
|
+
if (index < path4.length) {
|
|
374
|
+
char = path4[index];
|
|
375
375
|
} else if (char === "/") {
|
|
376
376
|
break;
|
|
377
377
|
} else {
|
|
@@ -407,9 +407,9 @@ function normalizeString(path5, allowAboveRoot) {
|
|
|
407
407
|
}
|
|
408
408
|
} else {
|
|
409
409
|
if (res.length > 0) {
|
|
410
|
-
res += `/${
|
|
410
|
+
res += `/${path4.slice(lastSlash + 1, index)}`;
|
|
411
411
|
} else {
|
|
412
|
-
res =
|
|
412
|
+
res = path4.slice(lastSlash + 1, index);
|
|
413
413
|
}
|
|
414
414
|
lastSegmentLength = index - lastSlash - 1;
|
|
415
415
|
}
|
|
@@ -2392,53 +2392,6 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
};
|
|
2394
2394
|
|
|
2395
|
-
// ../esbuild/src/plugins/resolve-paths.ts
|
|
2396
|
-
|
|
2397
|
-
function resolvePathsConfig(options, cwd, projectRoot) {
|
|
2398
|
-
if (_optionalChain([options, 'optionalAccess', _124 => _124.compilerOptions, 'optionalAccess', _125 => _125.paths])) {
|
|
2399
|
-
const paths = Object.entries(options.compilerOptions.paths);
|
|
2400
|
-
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
2401
|
-
return [key, paths2.map((v) => path4.default.resolve(cwd, v))];
|
|
2402
|
-
});
|
|
2403
|
-
return Object.fromEntries(resolvedPaths);
|
|
2404
|
-
}
|
|
2405
|
-
if (options.extends) {
|
|
2406
|
-
const extendsPath = path4.default.resolve(
|
|
2407
|
-
projectRoot ? joinPaths(cwd, projectRoot, options.extends) : joinPaths(cwd, options.extends)
|
|
2408
|
-
);
|
|
2409
|
-
const extendsDir = path4.default.dirname(extendsPath);
|
|
2410
|
-
const extendsConfig = _chunk3RG5ZIWIjs.__require.call(void 0, extendsPath);
|
|
2411
|
-
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
2412
|
-
}
|
|
2413
|
-
return [];
|
|
2414
|
-
}
|
|
2415
|
-
var resolvePathsPlugin = (context) => ({
|
|
2416
|
-
name: "storm:resolve-paths",
|
|
2417
|
-
setup(build3) {
|
|
2418
|
-
const parentTsConfig = build3.initialOptions.tsconfig ? _chunk3RG5ZIWIjs.__require.call(void 0, joinPaths(
|
|
2419
|
-
context.workspaceConfig.workspaceRoot,
|
|
2420
|
-
build3.initialOptions.tsconfig.replace(
|
|
2421
|
-
context.workspaceConfig.workspaceRoot,
|
|
2422
|
-
""
|
|
2423
|
-
)
|
|
2424
|
-
)) : _chunk3RG5ZIWIjs.__require.call(void 0, joinPaths(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
2425
|
-
const resolvedTsPaths = resolvePathsConfig(
|
|
2426
|
-
parentTsConfig,
|
|
2427
|
-
context.workspaceConfig.workspaceRoot,
|
|
2428
|
-
context.options.projectRoot
|
|
2429
|
-
);
|
|
2430
|
-
const packagesRegex = new RegExp(
|
|
2431
|
-
`^(${Object.keys(resolvedTsPaths).join("|")})$`
|
|
2432
|
-
);
|
|
2433
|
-
build3.onResolve({ filter: packagesRegex }, (args) => {
|
|
2434
|
-
if (_optionalChain([build3, 'access', _126 => _126.initialOptions, 'access', _127 => _127.external, 'optionalAccess', _128 => _128.includes, 'call', _129 => _129(args.path)])) {
|
|
2435
|
-
return { path: args.path, external: true };
|
|
2436
|
-
}
|
|
2437
|
-
return { path: `${resolvedTsPaths[args.path][0]}/index.ts` };
|
|
2438
|
-
});
|
|
2439
|
-
}
|
|
2440
|
-
});
|
|
2441
|
-
|
|
2442
2395
|
// ../esbuild/src/context.ts
|
|
2443
2396
|
async function resolveContext(userOptions) {
|
|
2444
2397
|
const projectRoot = userOptions.projectRoot;
|
|
@@ -2466,7 +2419,7 @@ async function resolveContext(userOptions) {
|
|
|
2466
2419
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2467
2420
|
const projectName = projectJson.name || userOptions.name;
|
|
2468
2421
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2469
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2422
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _124 => _124.projects, 'optionalAccess', _125 => _125[projectName]])) {
|
|
2470
2423
|
throw new Error(
|
|
2471
2424
|
"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."
|
|
2472
2425
|
);
|
|
@@ -2518,10 +2471,7 @@ async function resolveContext(userOptions) {
|
|
|
2518
2471
|
),
|
|
2519
2472
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
2520
2473
|
};
|
|
2521
|
-
context.options.esbuildPlugins = [
|
|
2522
|
-
resolvePathsPlugin(context),
|
|
2523
|
-
..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))
|
|
2524
|
-
];
|
|
2474
|
+
context.options.esbuildPlugins = [..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))];
|
|
2525
2475
|
return context;
|
|
2526
2476
|
}
|
|
2527
2477
|
|
|
@@ -2686,7 +2636,7 @@ var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
|
|
|
2686
2636
|
var depsCheckPlugin = (bundle) => ({
|
|
2687
2637
|
name: "storm:deps-check",
|
|
2688
2638
|
setup(build3) {
|
|
2689
|
-
const pkgJsonPath =
|
|
2639
|
+
const pkgJsonPath = path3.default.join(process.cwd(), "package.json");
|
|
2690
2640
|
const pkgContents = _chunk3RG5ZIWIjs.__require.call(void 0, pkgJsonPath);
|
|
2691
2641
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
2692
2642
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
@@ -2756,7 +2706,7 @@ async function executeTsup(context) {
|
|
|
2756
2706
|
|
|
2757
2707
|
// ../esbuild/src/build.ts
|
|
2758
2708
|
async function reportResults(context) {
|
|
2759
|
-
if (_optionalChain([context, 'access',
|
|
2709
|
+
if (_optionalChain([context, 'access', _126 => _126.result, 'optionalAccess', _127 => _127.errors, 'access', _128 => _128.length]) === 0) {
|
|
2760
2710
|
if (context.result.warnings.length > 0) {
|
|
2761
2711
|
writeWarning(
|
|
2762
2712
|
` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`,
|
|
@@ -2767,7 +2717,7 @@ async function reportResults(context) {
|
|
|
2767
2717
|
` \u{1F4E6} The ${context.options.name} build completed successfully`,
|
|
2768
2718
|
context.workspaceConfig
|
|
2769
2719
|
);
|
|
2770
|
-
} else if (_optionalChain([context, 'access',
|
|
2720
|
+
} else if (_optionalChain([context, 'access', _129 => _129.result, 'optionalAccess', _130 => _130.errors]) && _optionalChain([context, 'access', _131 => _131.result, 'optionalAccess', _132 => _132.errors, 'access', _133 => _133.length]) > 0) {
|
|
2771
2721
|
writeError(
|
|
2772
2722
|
` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`,
|
|
2773
2723
|
context.workspaceConfig
|
|
@@ -2846,16 +2796,16 @@ async function build2(options) {
|
|
|
2846
2796
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2847
2797
|
async function esbuildExecutorFn(options, context, config) {
|
|
2848
2798
|
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
2849
|
-
if (!_optionalChain([context, 'access',
|
|
2799
|
+
if (!_optionalChain([context, 'access', _134 => _134.projectsConfigurations, 'optionalAccess', _135 => _135.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _136 => _136.projectsConfigurations, 'access', _137 => _137.projects, 'access', _138 => _138[context.projectName], 'optionalAccess', _139 => _139.root])) {
|
|
2850
2800
|
throw new Error(
|
|
2851
2801
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
2852
2802
|
);
|
|
2853
2803
|
}
|
|
2854
2804
|
await build2({
|
|
2855
2805
|
...options,
|
|
2856
|
-
projectRoot: _optionalChain([context, 'access',
|
|
2806
|
+
projectRoot: _optionalChain([context, 'access', _140 => _140.projectsConfigurations, 'access', _141 => _141.projects, 'optionalAccess', _142 => _142[context.projectName], 'access', _143 => _143.root]),
|
|
2857
2807
|
name: context.projectName,
|
|
2858
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
2808
|
+
sourceRoot: _optionalChain([context, 'access', _144 => _144.projectsConfigurations, 'access', _145 => _145.projects, 'optionalAccess', _146 => _146[context.projectName], 'optionalAccess', _147 => _147.sourceRoot]),
|
|
2859
2809
|
format: options.format,
|
|
2860
2810
|
platform: options.format
|
|
2861
2811
|
});
|
|
@@ -2899,15 +2849,15 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
2899
2849
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
2900
2850
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
2901
2851
|
async function sizeLimitExecutorFn(options, context, config) {
|
|
2902
|
-
if (!_optionalChain([context, 'optionalAccess',
|
|
2852
|
+
if (!_optionalChain([context, 'optionalAccess', _148 => _148.projectName]) || !_optionalChain([context, 'access', _149 => _149.projectsConfigurations, 'optionalAccess', _150 => _150.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
2903
2853
|
throw new Error(
|
|
2904
2854
|
"The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
|
|
2905
2855
|
);
|
|
2906
2856
|
}
|
|
2907
2857
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
2908
2858
|
_sizelimit2.default.call(void 0, [_file2.default, _esbuild3.default, _esbuildwhy2.default], {
|
|
2909
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access',
|
|
2910
|
-
_nullishCoalesce(_optionalChain([context, 'access',
|
|
2859
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _151 => _151.projectsConfigurations, 'access', _152 => _152.projects, 'access', _153 => _153[context.projectName], 'optionalAccess', _154 => _154.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
2860
|
+
_nullishCoalesce(_optionalChain([context, 'access', _155 => _155.projectsConfigurations, 'access', _156 => _156.projects, 'access', _157 => _157[context.projectName], 'optionalAccess', _158 => _158.root]), () => ( "./")),
|
|
2911
2861
|
"src"
|
|
2912
2862
|
)))
|
|
2913
2863
|
}).then((result) => {
|
|
@@ -2977,7 +2927,7 @@ var executor_default8 = withRunExecutor(
|
|
|
2977
2927
|
var _jiti = require('jiti');
|
|
2978
2928
|
async function unbuildExecutorFn(options, context, config) {
|
|
2979
2929
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
2980
|
-
if (!_optionalChain([context, 'access',
|
|
2930
|
+
if (!_optionalChain([context, 'access', _159 => _159.projectsConfigurations, 'optionalAccess', _160 => _160.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
2981
2931
|
throw new Error(
|
|
2982
2932
|
"The Build process failed because the context is not valid. Please run this command from a workspace root directory."
|
|
2983
2933
|
);
|
|
@@ -3236,15 +3186,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3236
3186
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
3237
3187
|
let repository = {
|
|
3238
3188
|
type: "github",
|
|
3239
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
3189
|
+
url: _optionalChain([config, 'optionalAccess', _161 => _161.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _162 => _162.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _163 => _163.namespace]) || _optionalChain([config, 'optionalAccess', _164 => _164.name]) || "repository"}.git`
|
|
3240
3190
|
};
|
|
3241
3191
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
3242
3192
|
if (tree.exists("package.json")) {
|
|
3243
3193
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3244
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3194
|
+
if (_optionalChain([packageJson, 'optionalAccess', _165 => _165.repository])) {
|
|
3245
3195
|
repository = packageJson.repository;
|
|
3246
3196
|
}
|
|
3247
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3197
|
+
if (_optionalChain([packageJson, 'optionalAccess', _166 => _166.description])) {
|
|
3248
3198
|
description = packageJson.description;
|
|
3249
3199
|
}
|
|
3250
3200
|
}
|
|
@@ -3299,9 +3249,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3299
3249
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
3300
3250
|
...json,
|
|
3301
3251
|
pnpm: {
|
|
3302
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3252
|
+
..._optionalChain([json, 'optionalAccess', _167 => _167.pnpm]),
|
|
3303
3253
|
overrides: {
|
|
3304
|
-
..._optionalChain([json, 'optionalAccess',
|
|
3254
|
+
..._optionalChain([json, 'optionalAccess', _168 => _168.pnpm, 'optionalAccess', _169 => _169.overrides]),
|
|
3305
3255
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3306
3256
|
}
|
|
3307
3257
|
}
|
|
@@ -3319,10 +3269,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3319
3269
|
]);
|
|
3320
3270
|
if (tree.exists("package.json")) {
|
|
3321
3271
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3322
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3272
|
+
if (_optionalChain([packageJson, 'optionalAccess', _170 => _170.repository])) {
|
|
3323
3273
|
repository = packageJson.repository;
|
|
3324
3274
|
}
|
|
3325
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3275
|
+
if (_optionalChain([packageJson, 'optionalAccess', _171 => _171.description])) {
|
|
3326
3276
|
description = packageJson.description;
|
|
3327
3277
|
}
|
|
3328
3278
|
}
|
|
@@ -3359,22 +3309,22 @@ function getOutputPath(options) {
|
|
|
3359
3309
|
function createProjectTsConfigJson(tree, options) {
|
|
3360
3310
|
const tsconfig = {
|
|
3361
3311
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
3362
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3312
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _172 => _172.tsconfigOptions]), () => ( {})),
|
|
3363
3313
|
compilerOptions: {
|
|
3364
3314
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
3365
3315
|
outDir: joinPaths(_devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
3366
3316
|
noEmit: true,
|
|
3367
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3317
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _173 => _173.tsconfigOptions, 'optionalAccess', _174 => _174.compilerOptions]), () => ( {}))
|
|
3368
3318
|
},
|
|
3369
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3319
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _175 => _175.tsconfigOptions, 'optionalAccess', _176 => _176.files]), () => ( []))],
|
|
3370
3320
|
include: [
|
|
3371
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3321
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _177 => _177.tsconfigOptions, 'optionalAccess', _178 => _178.include]), () => ( [])),
|
|
3372
3322
|
"src/**/*.ts",
|
|
3373
3323
|
"src/**/*.js",
|
|
3374
3324
|
"bin/**/*"
|
|
3375
3325
|
],
|
|
3376
3326
|
exclude: [
|
|
3377
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3327
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _179 => _179.tsconfigOptions, 'optionalAccess', _180 => _180.exclude]), () => ( [])),
|
|
3378
3328
|
"jest.config.ts",
|
|
3379
3329
|
"src/**/*.spec.ts",
|
|
3380
3330
|
"src/**/*.test.ts"
|
|
@@ -3384,8 +3334,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
3384
3334
|
}
|
|
3385
3335
|
async function normalizeOptions(tree, options, config) {
|
|
3386
3336
|
let importPath = options.importPath;
|
|
3387
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
3388
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
3337
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _181 => _181.namespace])) {
|
|
3338
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _182 => _182.namespace])}/${options.name}`;
|
|
3389
3339
|
}
|
|
3390
3340
|
if (options.publishable) {
|
|
3391
3341
|
if (!importPath) {
|
|
@@ -3541,8 +3491,8 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3541
3491
|
});
|
|
3542
3492
|
writeTrace(jsonSchema, config);
|
|
3543
3493
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
3544
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
3545
|
-
_optionalChain([options, 'access',
|
|
3494
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _183 => _183.workspaceRoot]), () => ( findWorkspaceRoot())),
|
|
3495
|
+
_optionalChain([options, 'access', _184 => _184.outputFile, 'optionalAccess', _185 => _185.startsWith, 'call', _186 => _186("./")]) ? "" : "./"
|
|
3546
3496
|
);
|
|
3547
3497
|
writeTrace(
|
|
3548
3498
|
`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`,
|
|
@@ -3848,7 +3798,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
3848
3798
|
};
|
|
3849
3799
|
return json;
|
|
3850
3800
|
});
|
|
3851
|
-
_devkit.generateFiles.call(void 0, tree,
|
|
3801
|
+
_devkit.generateFiles.call(void 0, tree, path3.join(__dirname, "files"), projectRoot, {
|
|
3852
3802
|
...options,
|
|
3853
3803
|
pnpmVersion,
|
|
3854
3804
|
nodeVersion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDFUGKUEVjs = require('./chunk-DFUGKUEV.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/import/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkDFUGKUEVjs.withPulumiExecutor.call(void 0, "import", (options) => [
|
|
7
7
|
options.target,
|
|
8
8
|
options.name,
|
|
9
9
|
options.id,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDFUGKUEVjs = require('./chunk-DFUGKUEV.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/refresh/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkDFUGKUEVjs.withPulumiExecutor.call(void 0,
|
|
7
7
|
"refresh",
|
|
8
8
|
(options) => [
|
|
9
9
|
"--suppress-progress",
|
|
@@ -5,7 +5,7 @@ var _chunkHUKXHFCAjs = require('./chunk-HUKXHFCA.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkR3EJZLX2js = require('./chunk-R3EJZLX2.js');
|
|
9
9
|
|
|
10
10
|
// src/generators/init/generator.ts
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ var _devkit = require('@nx/devkit');
|
|
|
18
18
|
var _fs = require('fs');
|
|
19
19
|
var _path = require('path');
|
|
20
20
|
async function initGeneratorFn(tree, options, config) {
|
|
21
|
-
const task =
|
|
21
|
+
const task = _chunkR3EJZLX2js.initGenerator.call(void 0, tree, options);
|
|
22
22
|
_devkit.addProjectConfiguration.call(void 0, tree, options.name || "deployment", {
|
|
23
23
|
root: options.directory || "./deployment",
|
|
24
24
|
projectType: "application",
|
|
@@ -54,14 +54,14 @@ async function initGeneratorFn(tree, options, config) {
|
|
|
54
54
|
}
|
|
55
55
|
return task;
|
|
56
56
|
}
|
|
57
|
-
var generator_default =
|
|
57
|
+
var generator_default = _chunkR3EJZLX2js.withRunGenerator.call(void 0,
|
|
58
58
|
"Initialize Storm Pulumi workspace",
|
|
59
59
|
initGeneratorFn
|
|
60
60
|
);
|
|
61
61
|
function generateNewPulumiProject(tree, options, config) {
|
|
62
62
|
return () => {
|
|
63
63
|
const template = _chunkHUKXHFCAjs.getCloudTemplateName.call(void 0, options.provider);
|
|
64
|
-
|
|
64
|
+
_chunkR3EJZLX2js.run.call(void 0,
|
|
65
65
|
config,
|
|
66
66
|
[
|
|
67
67
|
`pulumi new ${template}`,
|
|
@@ -85,7 +85,7 @@ function loginToPulumi(tree, options, config) {
|
|
|
85
85
|
if (options.login.startsWith("file://")) {
|
|
86
86
|
options.login = `file://${tree.root}/${options.directory || "./deployment"}/${options.login.replace("file://", "")}`;
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
_chunkR3EJZLX2js.run.call(void 0,
|
|
89
89
|
config,
|
|
90
90
|
["pulumi login", options.login].filter(Boolean).join(" "),
|
|
91
91
|
_path.join.call(void 0, config.workspaceRoot, options.directory || "./deployment"),
|
package/dist/executors.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";require('./chunk-XO62WWX4.js');
|
|
2
|
-
require('./chunk-
|
|
3
|
-
require('./chunk-
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
2
|
+
require('./chunk-RWNDPKJK.js');
|
|
3
|
+
require('./chunk-N7ZQU3A6.js');
|
|
4
|
+
require('./chunk-TXKOR3ID.js');
|
|
5
|
+
require('./chunk-2QARL2O5.js');
|
|
6
|
+
require('./chunk-O2YJQKYB.js');
|
|
7
|
+
require('./chunk-DFUGKUEV.js');
|
|
8
|
+
require('./chunk-R3EJZLX2.js');
|
|
9
9
|
require('./chunk-3RG5ZIWI.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-UV4HQO3Y.mjs";
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-DIIDXD4R.mjs";
|
|
3
|
+
import "./chunk-E5AP6CDG.mjs";
|
|
4
|
+
import "./chunk-36ZCRXV6.mjs";
|
|
5
|
+
import "./chunk-SSY3QNGM.mjs";
|
|
6
|
+
import "./chunk-2TYNPYBU.mjs";
|
|
7
|
+
import "./chunk-T6O7JL6L.mjs";
|
|
8
|
+
import "./chunk-IWIZJWH3.mjs";
|
|
9
9
|
import "./chunk-IEZKYJSF.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZUJ3PY3Kjs = require('./chunk-ZUJ3PY3K.js');
|
|
5
5
|
require('./chunk-HUKXHFCA.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-R3EJZLX2.js');
|
|
7
7
|
require('./chunk-3RG5ZIWI.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.initGeneratorFn =
|
|
10
|
+
exports.initGeneratorFn = _chunkZUJ3PY3Kjs.initGeneratorFn;
|
package/dist/generators.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-23KFTIT2.mjs";
|
|
2
2
|
import {
|
|
3
3
|
initGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2PVTUX4W.mjs";
|
|
5
5
|
import "./chunk-KPFHCT4A.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-IWIZJWH3.mjs";
|
|
7
7
|
import "./chunk-IEZKYJSF.mjs";
|
|
8
8
|
export {
|
|
9
9
|
initGeneratorFn
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-XO62WWX4.js');
|
|
2
|
-
require('./chunk-
|
|
3
|
-
require('./chunk-
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
2
|
+
require('./chunk-RWNDPKJK.js');
|
|
3
|
+
require('./chunk-N7ZQU3A6.js');
|
|
4
|
+
require('./chunk-TXKOR3ID.js');
|
|
5
|
+
require('./chunk-2QARL2O5.js');
|
|
6
6
|
require('./chunk-N2YKXZ5R.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkZUJ3PY3Kjs = require('./chunk-ZUJ3PY3K.js');
|
|
10
10
|
require('./chunk-GUQOEBFW.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkHUKXHFCAjs = require('./chunk-HUKXHFCA.js');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-O2YJQKYB.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
require('./chunk-
|
|
18
|
+
var _chunkDFUGKUEVjs = require('./chunk-DFUGKUEV.js');
|
|
19
|
+
require('./chunk-R3EJZLX2.js');
|
|
20
20
|
require('./chunk-3RG5ZIWI.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
exports.Provider = _chunkHUKXHFCAjs.Provider; exports.getCloudTemplateName = _chunkHUKXHFCAjs.getCloudTemplateName; exports.initGeneratorFn =
|
|
26
|
+
exports.Provider = _chunkHUKXHFCAjs.Provider; exports.getCloudTemplateName = _chunkHUKXHFCAjs.getCloudTemplateName; exports.initGeneratorFn = _chunkZUJ3PY3Kjs.initGeneratorFn; exports.withPulumiExecutor = _chunkDFUGKUEVjs.withPulumiExecutor;
|
package/dist/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import "./chunk-UV4HQO3Y.mjs";
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-DIIDXD4R.mjs";
|
|
3
|
+
import "./chunk-E5AP6CDG.mjs";
|
|
4
|
+
import "./chunk-36ZCRXV6.mjs";
|
|
5
|
+
import "./chunk-SSY3QNGM.mjs";
|
|
6
6
|
import "./chunk-23KFTIT2.mjs";
|
|
7
7
|
import {
|
|
8
8
|
initGeneratorFn
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2PVTUX4W.mjs";
|
|
10
10
|
import "./chunk-CA7S5MOH.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Provider,
|
|
13
13
|
getCloudTemplateName
|
|
14
14
|
} from "./chunk-KPFHCT4A.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-2TYNPYBU.mjs";
|
|
16
16
|
import {
|
|
17
17
|
withPulumiExecutor
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-T6O7JL6L.mjs";
|
|
19
|
+
import "./chunk-IWIZJWH3.mjs";
|
|
20
20
|
import "./chunk-IEZKYJSF.mjs";
|
|
21
21
|
export {
|
|
22
22
|
Provider,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var _chunkDFUGKUEVjs = require('../../chunk-DFUGKUEV.js');
|
|
4
|
+
require('../../chunk-R3EJZLX2.js');
|
|
5
5
|
require('../../chunk-3RG5ZIWI.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.withPulumiExecutor =
|
|
8
|
+
exports.withPulumiExecutor = _chunkDFUGKUEVjs.withPulumiExecutor;
|
package/dist/src/base/index.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
var _chunkHUKXHFCAjs = require('../../chunk-HUKXHFCA.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('../../chunk-
|
|
8
|
+
var _chunkDFUGKUEVjs = require('../../chunk-DFUGKUEV.js');
|
|
9
|
+
require('../../chunk-R3EJZLX2.js');
|
|
10
10
|
require('../../chunk-3RG5ZIWI.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.Provider = _chunkHUKXHFCAjs.Provider; exports.getCloudTemplateName = _chunkHUKXHFCAjs.getCloudTemplateName; exports.withPulumiExecutor =
|
|
15
|
+
exports.Provider = _chunkHUKXHFCAjs.Provider; exports.getCloudTemplateName = _chunkHUKXHFCAjs.getCloudTemplateName; exports.withPulumiExecutor = _chunkDFUGKUEVjs.withPulumiExecutor;
|
package/dist/src/base/index.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
} from "../../chunk-KPFHCT4A.mjs";
|
|
6
6
|
import {
|
|
7
7
|
withPulumiExecutor
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-T6O7JL6L.mjs";
|
|
9
|
+
import "../../chunk-IWIZJWH3.mjs";
|
|
10
10
|
import "../../chunk-IEZKYJSF.mjs";
|
|
11
11
|
export {
|
|
12
12
|
Provider,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkO2YJQKYBjs = require('../../../chunk-O2YJQKYB.js');
|
|
4
|
+
require('../../../chunk-DFUGKUEV.js');
|
|
5
|
+
require('../../../chunk-R3EJZLX2.js');
|
|
6
6
|
require('../../../chunk-3RG5ZIWI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunkO2YJQKYBjs.executor_default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executor_default
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-2TYNPYBU.mjs";
|
|
4
|
+
import "../../../chunk-T6O7JL6L.mjs";
|
|
5
|
+
import "../../../chunk-IWIZJWH3.mjs";
|
|
6
6
|
import "../../../chunk-IEZKYJSF.mjs";
|
|
7
7
|
export {
|
|
8
8
|
executor_default as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkRWNDPKJKjs = require('../../../chunk-RWNDPKJK.js');
|
|
4
|
+
require('../../../chunk-DFUGKUEV.js');
|
|
5
|
+
require('../../../chunk-R3EJZLX2.js');
|
|
6
6
|
require('../../../chunk-3RG5ZIWI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunkRWNDPKJKjs.executor_default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executor_default
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-DIIDXD4R.mjs";
|
|
4
|
+
import "../../../chunk-T6O7JL6L.mjs";
|
|
5
|
+
import "../../../chunk-IWIZJWH3.mjs";
|
|
6
6
|
import "../../../chunk-IEZKYJSF.mjs";
|
|
7
7
|
export {
|
|
8
8
|
executor_default as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkN7ZQU3A6js = require('../../../chunk-N7ZQU3A6.js');
|
|
4
|
+
require('../../../chunk-DFUGKUEV.js');
|
|
5
|
+
require('../../../chunk-R3EJZLX2.js');
|
|
6
6
|
require('../../../chunk-3RG5ZIWI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunkN7ZQU3A6js.executor_default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executor_default
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-E5AP6CDG.mjs";
|
|
4
|
+
import "../../../chunk-T6O7JL6L.mjs";
|
|
5
|
+
import "../../../chunk-IWIZJWH3.mjs";
|
|
6
6
|
import "../../../chunk-IEZKYJSF.mjs";
|
|
7
7
|
export {
|
|
8
8
|
executor_default as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
3
|
+
var _chunkTXKOR3IDjs = require('../../../chunk-TXKOR3ID.js');
|
|
4
|
+
require('../../../chunk-DFUGKUEV.js');
|
|
5
|
+
require('../../../chunk-R3EJZLX2.js');
|
|
6
6
|
require('../../../chunk-3RG5ZIWI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunkTXKOR3IDjs.executor_default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executor_default
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-36ZCRXV6.mjs";
|
|
4
|
+
import "../../../chunk-T6O7JL6L.mjs";
|
|
5
|
+
import "../../../chunk-IWIZJWH3.mjs";
|
|
6
6
|
import "../../../chunk-IEZKYJSF.mjs";
|
|
7
7
|
export {
|
|
8
8
|
executor_default as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
3
|
+
var _chunk2QARL2O5js = require('../../../chunk-2QARL2O5.js');
|
|
4
|
+
require('../../../chunk-DFUGKUEV.js');
|
|
5
|
+
require('../../../chunk-R3EJZLX2.js');
|
|
6
6
|
require('../../../chunk-3RG5ZIWI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunk2QARL2O5js.executor_default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executor_default
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-SSY3QNGM.mjs";
|
|
4
|
+
import "../../../chunk-T6O7JL6L.mjs";
|
|
5
|
+
import "../../../chunk-IWIZJWH3.mjs";
|
|
6
6
|
import "../../../chunk-IEZKYJSF.mjs";
|
|
7
7
|
export {
|
|
8
8
|
executor_default as default
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZUJ3PY3Kjs = require('../../../chunk-ZUJ3PY3K.js');
|
|
5
5
|
require('../../../chunk-HUKXHFCA.js');
|
|
6
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-R3EJZLX2.js');
|
|
7
7
|
require('../../../chunk-3RG5ZIWI.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.default =
|
|
11
|
+
exports.default = _chunkZUJ3PY3Kjs.generator_default; exports.initGeneratorFn = _chunkZUJ3PY3Kjs.initGeneratorFn;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default,
|
|
3
3
|
initGeneratorFn
|
|
4
|
-
} from "../../../chunk-
|
|
4
|
+
} from "../../../chunk-2PVTUX4W.mjs";
|
|
5
5
|
import "../../../chunk-KPFHCT4A.mjs";
|
|
6
|
-
import "../../../chunk-
|
|
6
|
+
import "../../../chunk-IWIZJWH3.mjs";
|
|
7
7
|
import "../../../chunk-IEZKYJSF.mjs";
|
|
8
8
|
export {
|
|
9
9
|
generator_default as default,
|