@storm-software/pulumi-tools 0.13.7 → 0.13.8
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 +6 -0
- package/README.md +1 -1
- package/dist/{chunk-T2MT263A.js → chunk-2BM7Y3LV.js} +3 -3
- package/dist/{chunk-37RYOORY.js → chunk-5EEYPDMF.js} +5 -5
- package/dist/{chunk-FZPGAOD3.mjs → chunk-A25XCW6N.mjs} +1 -1
- package/dist/{chunk-75RE5W2I.mjs → chunk-AYJTBMXU.mjs} +1 -1
- package/dist/{chunk-TIV4DYZT.mjs → chunk-BWKY65JZ.mjs} +1 -1
- package/dist/{chunk-UJEJIE53.mjs → chunk-C6ALXVQ7.mjs} +1 -1
- package/dist/{chunk-Z4G4HEYH.js → chunk-EBN2ORT3.js} +2 -2
- package/dist/{chunk-X3FJVRKM.js → chunk-EO4SOS5G.js} +2 -2
- package/dist/{chunk-HFLZB64V.mjs → chunk-GNUNNN7U.mjs} +1 -1
- package/dist/{chunk-YTX7SXUV.mjs → chunk-I2TGMV22.mjs} +1 -1
- package/dist/{chunk-3DJ44M2X.mjs → chunk-JTU7RFVL.mjs} +1 -1
- package/dist/{chunk-JZAEYOBB.js → chunk-SWA4DUTQ.js} +2 -2
- package/dist/{chunk-NPN2DABW.mjs → chunk-TTXOO5XR.mjs} +1 -1
- package/dist/{chunk-PQIHSZEB.mjs → chunk-V7ZSB5PI.mjs} +60 -18
- package/dist/{chunk-TN5TXK6U.js → chunk-YUJKVR74.js} +2 -2
- package/dist/{chunk-7A4FO6Q5.js → chunk-YXDCLCC4.js} +123 -81
- package/dist/{chunk-LZN2NZ7M.js → chunk-ZDGKQM3R.js} +2 -2
- package/dist/executors.js +7 -7
- package/dist/executors.mjs +8 -8
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +9 -9
- package/dist/src/base/base-executor.js +3 -3
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/base/providers.mjs +1 -1
- package/dist/src/executors/config/executor.js +4 -4
- package/dist/src/executors/config/executor.mjs +4 -4
- package/dist/src/executors/import/executor.js +4 -4
- package/dist/src/executors/import/executor.mjs +4 -4
- package/dist/src/executors/preview/executor.js +4 -4
- package/dist/src/executors/preview/executor.mjs +4 -4
- package/dist/src/executors/refresh/executor.js +4 -4
- package/dist/src/executors/refresh/executor.mjs +4 -4
- package/dist/src/executors/up/executor.js +4 -4
- package/dist/src/executors/up/executor.mjs +4 -4
- package/dist/src/generators/init/generator.js +3 -3
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pulumi Tools
|
|
4
4
|
|
|
5
|
+
## [0.13.7](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.13.7) (2025-05-13)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
|
|
5
11
|
## [0.13.6](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.13.6) (2025-05-09)
|
|
6
12
|
|
|
7
13
|
### 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 -->
|
|
@@ -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 _chunkYXDCLCC4js = require('./chunk-YXDCLCC4.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 _chunkYXDCLCC4js.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
|
+
_chunkYXDCLCC4js.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),
|
|
@@ -5,7 +5,7 @@ var _chunkHUKXHFCAjs = require('./chunk-HUKXHFCA.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkYXDCLCC4js = require('./chunk-YXDCLCC4.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 = _chunkYXDCLCC4js.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 = _chunkYXDCLCC4js.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
|
+
_chunkYXDCLCC4js.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
|
+
_chunkYXDCLCC4js.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"),
|
|
@@ -5,7 +5,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
5
5
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
8
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__23d29aaa007764500c48e48a9770b339/node_modules/tsup/assets/esm_shims.js
|
|
9
9
|
import { fileURLToPath } from "url";
|
|
10
10
|
import path from "path";
|
|
11
11
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2BM7Y3LVjs = require('./chunk-2BM7Y3LV.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/import/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk2BM7Y3LVjs.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 _chunk2BM7Y3LVjs = require('./chunk-2BM7Y3LV.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/up/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk2BM7Y3LVjs.withPulumiExecutor.call(void 0, "up", (options) => [
|
|
7
7
|
"--suppress-progress",
|
|
8
8
|
options.stack && `--stack=${options.stack}`,
|
|
9
9
|
options.skipPreview && "--skip-preview",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2BM7Y3LVjs = require('./chunk-2BM7Y3LV.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/preview/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk2BM7Y3LVjs.withPulumiExecutor.call(void 0,
|
|
7
7
|
"preview",
|
|
8
8
|
(options) => [
|
|
9
9
|
options.stack && `--stack=${options.stack}`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__dirname,
|
|
3
3
|
__require
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AYJTBMXU.mjs";
|
|
5
5
|
|
|
6
6
|
// ../config-tools/src/utilities/run.ts
|
|
7
7
|
import { exec, execSync } from "node:child_process";
|
|
@@ -51,10 +51,10 @@ var LogLevelLabel = {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
// ../config/src/constants.ts
|
|
54
|
-
var STORM_DEFAULT_DOCS = "https://
|
|
54
|
+
var STORM_DEFAULT_DOCS = "https://stormsoftware.com/docs";
|
|
55
55
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
56
56
|
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
57
|
-
var STORM_DEFAULT_LICENSING = "https://
|
|
57
|
+
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
58
58
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
59
59
|
var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/brand-banner.png";
|
|
60
60
|
var STORM_DEFAULT_ACCOUNT_TWITTER = "StormSoftwareHQ";
|
|
@@ -228,10 +228,13 @@ var stormWorkspaceConfigSchema = z.object({
|
|
|
228
228
|
organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
|
|
229
229
|
repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
|
|
230
230
|
license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
|
|
231
|
-
homepage: z.string().trim().url().
|
|
232
|
-
docs: z.string().trim().url().
|
|
233
|
-
licensing: z.string().trim().url().
|
|
234
|
-
contact: z.string().trim().url().
|
|
231
|
+
homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
|
|
232
|
+
docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
|
|
233
|
+
licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
|
|
234
|
+
contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
|
|
235
|
+
support: z.string().trim().url().optional().describe(
|
|
236
|
+
"The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
|
|
237
|
+
),
|
|
235
238
|
branch: z.string().trim().default("main").describe("The branch of the workspace"),
|
|
236
239
|
preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
|
|
237
240
|
owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
|
|
@@ -552,9 +555,10 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
552
555
|
negative: "#dc2626"
|
|
553
556
|
}
|
|
554
557
|
};
|
|
555
|
-
|
|
558
|
+
async function getPackageJsonConfig(root) {
|
|
556
559
|
let license = STORM_DEFAULT_LICENSE;
|
|
557
|
-
let homepage =
|
|
560
|
+
let homepage = void 0;
|
|
561
|
+
let support = void 0;
|
|
558
562
|
let name = void 0;
|
|
559
563
|
let namespace = void 0;
|
|
560
564
|
let repository = void 0;
|
|
@@ -585,6 +589,13 @@ var getDefaultConfig = async (root) => {
|
|
|
585
589
|
if (packageJson.homepage) {
|
|
586
590
|
homepage = packageJson.homepage;
|
|
587
591
|
}
|
|
592
|
+
if (packageJson.bugs) {
|
|
593
|
+
if (typeof packageJson.bugs === "string") {
|
|
594
|
+
support = packageJson.bugs;
|
|
595
|
+
} else if (packageJson.bugs.url) {
|
|
596
|
+
support = packageJson.bugs.url;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
588
599
|
}
|
|
589
600
|
}
|
|
590
601
|
return {
|
|
@@ -594,13 +605,38 @@ var getDefaultConfig = async (root) => {
|
|
|
594
605
|
repository,
|
|
595
606
|
license,
|
|
596
607
|
homepage,
|
|
597
|
-
|
|
598
|
-
licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
|
|
599
|
-
error: {
|
|
600
|
-
url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
|
|
601
|
-
}
|
|
608
|
+
support
|
|
602
609
|
};
|
|
603
|
-
}
|
|
610
|
+
}
|
|
611
|
+
function applyDefaultConfig(config) {
|
|
612
|
+
if (!config.support && config.contact) {
|
|
613
|
+
config.support = config.contact;
|
|
614
|
+
}
|
|
615
|
+
if (!config.contact && config.support) {
|
|
616
|
+
config.contact = config.support;
|
|
617
|
+
}
|
|
618
|
+
if (config.homepage) {
|
|
619
|
+
if (!config.docs) {
|
|
620
|
+
config.docs = `${config.homepage}/docs`;
|
|
621
|
+
}
|
|
622
|
+
if (!config.license) {
|
|
623
|
+
config.license = `${config.homepage}/license`;
|
|
624
|
+
}
|
|
625
|
+
if (!config.support) {
|
|
626
|
+
config.support = `${config.homepage}/support`;
|
|
627
|
+
}
|
|
628
|
+
if (!config.contact) {
|
|
629
|
+
config.contact = `${config.homepage}/contact`;
|
|
630
|
+
}
|
|
631
|
+
if (!config.error?.codesFile || !config?.error?.url) {
|
|
632
|
+
config.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
633
|
+
if (config.homepage) {
|
|
634
|
+
config.error.url ??= `${config.homepage}/errors`;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
return config;
|
|
639
|
+
}
|
|
604
640
|
|
|
605
641
|
// ../config-tools/src/logger/chalk.ts
|
|
606
642
|
import chalk from "chalk";
|
|
@@ -1034,6 +1070,7 @@ var getConfigEnv = () => {
|
|
|
1034
1070
|
docs: process.env[`${prefix}DOCS`] || void 0,
|
|
1035
1071
|
licensing: process.env[`${prefix}LICENSING`] || void 0,
|
|
1036
1072
|
contact: process.env[`${prefix}CONTACT`] || void 0,
|
|
1073
|
+
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1037
1074
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1038
1075
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1039
1076
|
configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
|
|
@@ -1252,6 +1289,9 @@ var setConfigEnv = (config) => {
|
|
|
1252
1289
|
if (config.contact) {
|
|
1253
1290
|
process.env[`${prefix}CONTACT`] = config.contact;
|
|
1254
1291
|
}
|
|
1292
|
+
if (config.support) {
|
|
1293
|
+
process.env[`${prefix}SUPPORT`] = config.support;
|
|
1294
|
+
}
|
|
1255
1295
|
if (config.timezone) {
|
|
1256
1296
|
process.env[`${prefix}TIMEZONE`] = config.timezone;
|
|
1257
1297
|
process.env.TZ = config.timezone;
|
|
@@ -1501,9 +1541,11 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot3, s
|
|
|
1501
1541
|
return void 0;
|
|
1502
1542
|
}
|
|
1503
1543
|
}
|
|
1504
|
-
const defaultConfig = await
|
|
1505
|
-
result =
|
|
1506
|
-
|
|
1544
|
+
const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
|
|
1545
|
+
result = applyDefaultConfig(
|
|
1546
|
+
await stormWorkspaceConfigSchema.parseAsync(
|
|
1547
|
+
defu2(configEnv, configFile, defaultConfig)
|
|
1548
|
+
)
|
|
1507
1549
|
);
|
|
1508
1550
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1509
1551
|
} else {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2BM7Y3LVjs = require('./chunk-2BM7Y3LV.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/config/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk2BM7Y3LVjs.withPulumiExecutor.call(void 0, "config", (options) => [
|
|
7
7
|
options.action,
|
|
8
8
|
options.showSecrets && `--show-secrets`,
|
|
9
9
|
options.secret && `--secret`,
|