@storm-software/pulumi-tools 0.16.6 → 0.16.7
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/dist/{chunk-2QGR5MCH.mjs → chunk-23SNFRLY.mjs} +1 -1
- package/dist/{chunk-GSL7BTAH.js → chunk-6N5USTKZ.js} +3 -3
- package/dist/{chunk-FOWQVQ2P.mjs → chunk-C7RILA5E.mjs} +1 -1
- package/dist/{chunk-YVESYG6S.mjs → chunk-DE7ZQ75X.mjs} +1 -1
- package/dist/{chunk-2OB32GAX.js → chunk-FUKMPK3Z.js} +2 -2
- package/dist/chunk-FUSZJVHP.mjs +10 -0
- package/dist/{chunk-ZITYRTBB.mjs → chunk-G5B7PPH4.mjs} +1 -1
- package/dist/{chunk-2J3GN234.js → chunk-KZFIEQB3.js} +2 -2
- package/dist/{chunk-V3IKJ3DR.js → chunk-LWYNF4MU.js} +2 -2
- package/dist/{chunk-I7HA42TP.mjs → chunk-LZG2D4QH.mjs} +1 -1
- package/dist/{chunk-UNI5OBZR.js → chunk-OHFP3HBS.js} +2 -2
- package/dist/{chunk-65P7D3PR.js → chunk-P3TSZM4L.js} +5 -5
- package/dist/{chunk-BVZMS676.js → chunk-QSIBYQ5Q.js} +41 -155
- package/dist/{chunk-ZP2ZV6N7.mjs → chunk-TQRNFMTY.mjs} +40 -151
- package/dist/{chunk-4JDYZ3T7.js → chunk-VBBJAQQY.js} +2 -2
- package/dist/{chunk-VXDNNG7N.mjs → chunk-VT45Z6QV.mjs} +1 -1
- package/dist/{chunk-7HMMLQSO.mjs → chunk-VTZSRUN5.mjs} +1 -1
- package/dist/executors.js +7 -8
- package/dist/executors.mjs +8 -8
- package/dist/generators.js +3 -4
- package/dist/generators.mjs +3 -3
- package/dist/index.js +9 -10
- package/dist/index.mjs +9 -9
- package/dist/src/base/base-executor.js +3 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/index.js +3 -4
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/base/providers.js +0 -1
- package/dist/src/base/providers.mjs +1 -1
- package/dist/src/executors/config/executor.js +4 -5
- package/dist/src/executors/config/executor.mjs +4 -4
- package/dist/src/executors/import/executor.js +4 -5
- package/dist/src/executors/import/executor.mjs +4 -4
- package/dist/src/executors/preview/executor.js +4 -5
- package/dist/src/executors/preview/executor.mjs +4 -4
- package/dist/src/executors/refresh/executor.js +4 -5
- package/dist/src/executors/refresh/executor.mjs +4 -4
- package/dist/src/executors/up/executor.js +4 -5
- package/dist/src/executors/up/executor.mjs +4 -4
- package/dist/src/generators/init/generator.js +3 -4
- package/dist/src/generators/init/generator.mjs +3 -3
- package/dist/src/lib/aws/index.js +0 -1
- package/dist/src/lib/aws/index.mjs +1 -1
- package/dist/src/lib/aws/providers.js +0 -1
- package/dist/src/lib/aws/providers.mjs +1 -1
- package/dist/tsup.config.js +1 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +4 -4
- package/dist/chunk-3RG5ZIWI.js +0 -10
- package/dist/chunk-URGPIQOV.mjs +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Pulumi Tools
|
|
4
4
|
|
|
5
|
+
## [0.16.6](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.16.6) (2025-08-11)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update to TypeScript v5.9.2
|
|
10
|
+
([cf34d601f](https://github.com/storm-software/storm-ops/commit/cf34d601f))
|
|
11
|
+
- **monorepo:** Regenerate README markdown files
|
|
12
|
+
([5b9ffe718](https://github.com/storm-software/storm-ops/commit/5b9ffe718))
|
|
13
|
+
|
|
14
|
+
### Updated Dependencies
|
|
15
|
+
|
|
16
|
+
- Updated config-tools to 1.180.6
|
|
17
|
+
- Updated config to 1.128.6
|
|
18
|
+
|
|
5
19
|
## [0.16.5](https://github.com/storm-software/storm-ops/releases/tag/pulumi-tools%400.16.5) (2025-08-09)
|
|
6
20
|
|
|
7
21
|
### Miscellaneous
|
|
@@ -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 _chunkQSIBYQ5Qjs = require('./chunk-QSIBYQ5Q.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 _chunkQSIBYQ5Qjs.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
|
+
_chunkQSIBYQ5Qjs.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),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk6N5USTKZjs = require('./chunk-6N5USTKZ.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/import/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk6N5USTKZjs.withPulumiExecutor.call(void 0, "import", (options) => [
|
|
7
7
|
options.target,
|
|
8
8
|
options.name,
|
|
9
9
|
options.id,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__bbfa3b50d88caa605d59198ec617cf63/node_modules/tsup/assets/esm_shims.js
|
|
2
|
+
import { fileURLToPath } from "url";
|
|
3
|
+
import path from "path";
|
|
4
|
+
var getFilename = () => fileURLToPath(import.meta.url);
|
|
5
|
+
var getDirname = () => path.dirname(getFilename());
|
|
6
|
+
var __dirname = /* @__PURE__ */ getDirname();
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
__dirname
|
|
10
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk6N5USTKZjs = require('./chunk-6N5USTKZ.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/refresh/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk6N5USTKZjs.withPulumiExecutor.call(void 0,
|
|
7
7
|
"refresh",
|
|
8
8
|
(options) => [
|
|
9
9
|
"--suppress-progress",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk6N5USTKZjs = require('./chunk-6N5USTKZ.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/up/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk6N5USTKZjs.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 _chunk6N5USTKZjs = require('./chunk-6N5USTKZ.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/config/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk6N5USTKZjs.withPulumiExecutor.call(void 0, "config", (options) => [
|
|
7
7
|
options.action,
|
|
8
8
|
options.showSecrets && `--show-secrets`,
|
|
9
9
|
options.secret && `--secret`,
|
|
@@ -5,7 +5,7 @@ var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQSIBYQ5Qjs = require('./chunk-QSIBYQ5Q.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 = _chunkQSIBYQ5Qjs.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 = _chunkQSIBYQ5Qjs.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 = _chunkQDPXTR73js.getCloudTemplateName.call(void 0, options.provider);
|
|
64
|
-
|
|
64
|
+
_chunkQSIBYQ5Qjs.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
|
+
_chunkQSIBYQ5Qjs.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"),
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
var _chunk3RG5ZIWIjs = require('./chunk-3RG5ZIWI.js');
|
|
4
|
-
|
|
5
|
-
// ../config-tools/src/utilities/run.ts
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../config-tools/src/utilities/run.ts
|
|
6
2
|
var _child_process = require('child_process');
|
|
7
3
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
8
4
|
var run = (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => ( process.cwd())), stdio = "inherit", env = process.env) => {
|
|
@@ -333,65 +329,65 @@ function normalizeWindowsPath(input = "") {
|
|
|
333
329
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
334
330
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
335
331
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
336
|
-
var correctPaths = function(
|
|
337
|
-
if (!
|
|
332
|
+
var correctPaths = function(path3) {
|
|
333
|
+
if (!path3 || path3.length === 0) {
|
|
338
334
|
return ".";
|
|
339
335
|
}
|
|
340
|
-
|
|
341
|
-
const isUNCPath =
|
|
342
|
-
const isPathAbsolute = isAbsolute(
|
|
343
|
-
const trailingSeparator =
|
|
344
|
-
|
|
345
|
-
if (
|
|
336
|
+
path3 = normalizeWindowsPath(path3);
|
|
337
|
+
const isUNCPath = path3.match(_UNC_REGEX);
|
|
338
|
+
const isPathAbsolute = isAbsolute(path3);
|
|
339
|
+
const trailingSeparator = path3[path3.length - 1] === "/";
|
|
340
|
+
path3 = normalizeString(path3, !isPathAbsolute);
|
|
341
|
+
if (path3.length === 0) {
|
|
346
342
|
if (isPathAbsolute) {
|
|
347
343
|
return "/";
|
|
348
344
|
}
|
|
349
345
|
return trailingSeparator ? "./" : ".";
|
|
350
346
|
}
|
|
351
347
|
if (trailingSeparator) {
|
|
352
|
-
|
|
348
|
+
path3 += "/";
|
|
353
349
|
}
|
|
354
|
-
if (_DRIVE_LETTER_RE.test(
|
|
355
|
-
|
|
350
|
+
if (_DRIVE_LETTER_RE.test(path3)) {
|
|
351
|
+
path3 += "/";
|
|
356
352
|
}
|
|
357
353
|
if (isUNCPath) {
|
|
358
354
|
if (!isPathAbsolute) {
|
|
359
|
-
return `//./${
|
|
355
|
+
return `//./${path3}`;
|
|
360
356
|
}
|
|
361
|
-
return `//${
|
|
357
|
+
return `//${path3}`;
|
|
362
358
|
}
|
|
363
|
-
return isPathAbsolute && !isAbsolute(
|
|
359
|
+
return isPathAbsolute && !isAbsolute(path3) ? `/${path3}` : path3;
|
|
364
360
|
};
|
|
365
361
|
var joinPaths = function(...segments) {
|
|
366
|
-
let
|
|
362
|
+
let path3 = "";
|
|
367
363
|
for (const seg of segments) {
|
|
368
364
|
if (!seg) {
|
|
369
365
|
continue;
|
|
370
366
|
}
|
|
371
|
-
if (
|
|
372
|
-
const pathTrailing =
|
|
367
|
+
if (path3.length > 0) {
|
|
368
|
+
const pathTrailing = path3[path3.length - 1] === "/";
|
|
373
369
|
const segLeading = seg[0] === "/";
|
|
374
370
|
const both = pathTrailing && segLeading;
|
|
375
371
|
if (both) {
|
|
376
|
-
|
|
372
|
+
path3 += seg.slice(1);
|
|
377
373
|
} else {
|
|
378
|
-
|
|
374
|
+
path3 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
379
375
|
}
|
|
380
376
|
} else {
|
|
381
|
-
|
|
377
|
+
path3 += seg;
|
|
382
378
|
}
|
|
383
379
|
}
|
|
384
|
-
return correctPaths(
|
|
380
|
+
return correctPaths(path3);
|
|
385
381
|
};
|
|
386
|
-
function normalizeString(
|
|
382
|
+
function normalizeString(path3, allowAboveRoot) {
|
|
387
383
|
let res = "";
|
|
388
384
|
let lastSegmentLength = 0;
|
|
389
385
|
let lastSlash = -1;
|
|
390
386
|
let dots = 0;
|
|
391
387
|
let char = null;
|
|
392
|
-
for (let index = 0; index <=
|
|
393
|
-
if (index <
|
|
394
|
-
char =
|
|
388
|
+
for (let index = 0; index <= path3.length; ++index) {
|
|
389
|
+
if (index < path3.length) {
|
|
390
|
+
char = path3[index];
|
|
395
391
|
} else if (char === "/") {
|
|
396
392
|
break;
|
|
397
393
|
} else {
|
|
@@ -427,9 +423,9 @@ function normalizeString(path4, allowAboveRoot) {
|
|
|
427
423
|
}
|
|
428
424
|
} else {
|
|
429
425
|
if (res.length > 0) {
|
|
430
|
-
res += `/${
|
|
426
|
+
res += `/${path3.slice(lastSlash + 1, index)}`;
|
|
431
427
|
} else {
|
|
432
|
-
res =
|
|
428
|
+
res = path3.slice(lastSlash + 1, index);
|
|
433
429
|
}
|
|
434
430
|
lastSegmentLength = index - lastSlash - 1;
|
|
435
431
|
}
|
|
@@ -449,7 +445,7 @@ var isAbsolute = function(p) {
|
|
|
449
445
|
|
|
450
446
|
// ../config-tools/src/utilities/find-up.ts
|
|
451
447
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
452
|
-
var _path = require('path'); var
|
|
448
|
+
var _path = require('path'); var path2 = _interopRequireWildcard(_path);
|
|
453
449
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
454
450
|
var depth = 0;
|
|
455
451
|
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
@@ -1423,7 +1419,7 @@ var getConfigEnv = () => {
|
|
|
1423
1419
|
support: process.env[`${prefix}SUPPORT`] || void 0,
|
|
1424
1420
|
timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
|
|
1425
1421
|
locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
|
|
1426
|
-
configFile: process.env[`${prefix}
|
|
1422
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? correctPaths(process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
1427
1423
|
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
1428
1424
|
directories: {
|
|
1429
1425
|
cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
@@ -1486,7 +1482,7 @@ var getConfigEnv = () => {
|
|
|
1486
1482
|
config.licensing = `${config.homepage}/docs`;
|
|
1487
1483
|
}
|
|
1488
1484
|
}
|
|
1489
|
-
const serializedConfig = process.env[`${prefix}
|
|
1485
|
+
const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
|
|
1490
1486
|
if (serializedConfig) {
|
|
1491
1487
|
const parsed = JSON.parse(serializedConfig);
|
|
1492
1488
|
config = {
|
|
@@ -1718,7 +1714,9 @@ var setConfigEnv = (config) => {
|
|
|
1718
1714
|
process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
1719
1715
|
}
|
|
1720
1716
|
if (config.configFile) {
|
|
1721
|
-
process.env[`${prefix}
|
|
1717
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
|
|
1718
|
+
config.configFile
|
|
1719
|
+
);
|
|
1722
1720
|
}
|
|
1723
1721
|
if (config.workspaceRoot) {
|
|
1724
1722
|
process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config.workspaceRoot);
|
|
@@ -1822,7 +1820,7 @@ var setConfigEnv = (config) => {
|
|
|
1822
1820
|
config.skipConfigLogging
|
|
1823
1821
|
);
|
|
1824
1822
|
}
|
|
1825
|
-
process.env[`${prefix}
|
|
1823
|
+
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config);
|
|
1826
1824
|
for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
|
|
1827
1825
|
if (config.extensions[key] && Object.keys(config.extensions[key])) {
|
|
1828
1826
|
setExtensionEnv(key, config.extensions[key]);
|
|
@@ -2505,10 +2503,6 @@ var executor_default5 = withRunExecutor(
|
|
|
2505
2503
|
var _https = require('https'); var _https2 = _interopRequireDefault(_https);
|
|
2506
2504
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
2507
2505
|
|
|
2508
|
-
// ../esbuild/src/build.ts
|
|
2509
|
-
var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
|
|
2510
|
-
var _globby = require('globby');
|
|
2511
|
-
|
|
2512
2506
|
// ../build-tools/src/config.ts
|
|
2513
2507
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
2514
2508
|
*
|
|
@@ -3084,88 +3078,6 @@ async function generatePackageJson(context) {
|
|
|
3084
3078
|
return context;
|
|
3085
3079
|
}
|
|
3086
3080
|
|
|
3087
|
-
// ../esbuild/src/plugins/deps-check.ts
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
var unusedIgnore = [
|
|
3091
|
-
// these are our dev dependencies
|
|
3092
|
-
/@types\/.*?/,
|
|
3093
|
-
/@typescript-eslint.*?/,
|
|
3094
|
-
/eslint.*?/,
|
|
3095
|
-
"esbuild",
|
|
3096
|
-
"husky",
|
|
3097
|
-
"is-ci",
|
|
3098
|
-
"lint-staged",
|
|
3099
|
-
"prettier",
|
|
3100
|
-
"typescript",
|
|
3101
|
-
"ts-node",
|
|
3102
|
-
"ts-jest",
|
|
3103
|
-
"@swc/core",
|
|
3104
|
-
"@swc/jest",
|
|
3105
|
-
"jest",
|
|
3106
|
-
// these are missing 3rd party deps
|
|
3107
|
-
"spdx-exceptions",
|
|
3108
|
-
"spdx-license-ids",
|
|
3109
|
-
// type-only, so it is not detected
|
|
3110
|
-
"ts-toolbelt",
|
|
3111
|
-
// these are indirectly used by build
|
|
3112
|
-
"buffer"
|
|
3113
|
-
];
|
|
3114
|
-
var missingIgnore = [".prisma", "@prisma/client", "ts-toolbelt"];
|
|
3115
|
-
var depsCheckPlugin = (bundle) => ({
|
|
3116
|
-
name: "storm:deps-check",
|
|
3117
|
-
setup(build3) {
|
|
3118
|
-
const pkgJsonPath = path3.default.join(process.cwd(), "package.json");
|
|
3119
|
-
const pkgContents = _chunk3RG5ZIWIjs.__require.call(void 0, pkgJsonPath);
|
|
3120
|
-
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
3121
|
-
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
3122
|
-
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
3123
|
-
const dependencies = [
|
|
3124
|
-
...regDependencies,
|
|
3125
|
-
...bundle ? devDependencies : []
|
|
3126
|
-
];
|
|
3127
|
-
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
3128
|
-
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
3129
|
-
build3.onResolve({ filter: onlyPackages }, (args) => {
|
|
3130
|
-
if (args.importer.includes(process.cwd())) {
|
|
3131
|
-
if (args.path[0] === "@") {
|
|
3132
|
-
const [org, pkg] = args.path.split("/");
|
|
3133
|
-
collectedDependencies.add(`${org}/${pkg}`);
|
|
3134
|
-
} else {
|
|
3135
|
-
const [pkg] = args.path.split("/");
|
|
3136
|
-
collectedDependencies.add(pkg);
|
|
3137
|
-
}
|
|
3138
|
-
}
|
|
3139
|
-
return { external: true };
|
|
3140
|
-
});
|
|
3141
|
-
build3.onEnd(() => {
|
|
3142
|
-
const unusedDependencies = [...dependencies].filter((dep) => {
|
|
3143
|
-
return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
|
|
3144
|
-
});
|
|
3145
|
-
const missingDependencies = [...collectedDependencies].filter((dep) => {
|
|
3146
|
-
return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
|
|
3147
|
-
});
|
|
3148
|
-
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
3149
|
-
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
3150
|
-
});
|
|
3151
|
-
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
3152
|
-
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
3153
|
-
});
|
|
3154
|
-
writeWarning(
|
|
3155
|
-
`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`
|
|
3156
|
-
);
|
|
3157
|
-
writeError(
|
|
3158
|
-
`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`
|
|
3159
|
-
);
|
|
3160
|
-
if (filteredMissingDeps.length > 0) {
|
|
3161
|
-
throw new Error(`Missing dependencies detected - please install them:
|
|
3162
|
-
${JSON.stringify(filteredMissingDeps)}
|
|
3163
|
-
`);
|
|
3164
|
-
}
|
|
3165
|
-
});
|
|
3166
|
-
}
|
|
3167
|
-
});
|
|
3168
|
-
|
|
3169
3081
|
// ../esbuild/src/tsup.ts
|
|
3170
3082
|
var _tsup = require('tsup');
|
|
3171
3083
|
async function executeTsup(context) {
|
|
@@ -3206,32 +3118,6 @@ async function reportResults(context) {
|
|
|
3206
3118
|
);
|
|
3207
3119
|
}
|
|
3208
3120
|
}
|
|
3209
|
-
async function dependencyCheck(options) {
|
|
3210
|
-
if (process.env.DEV === "true") {
|
|
3211
|
-
return void 0;
|
|
3212
|
-
}
|
|
3213
|
-
if (process.env.CI && !process.env.BUILDKITE) {
|
|
3214
|
-
return void 0;
|
|
3215
|
-
}
|
|
3216
|
-
const buildPromise = esbuild.build({
|
|
3217
|
-
entryPoints: _globby.globbySync.call(void 0, "**/*.{j,t}s", {
|
|
3218
|
-
// We don't check dependencies in ecosystem tests because tests are isolated from the build.
|
|
3219
|
-
ignore: ["./src/__tests__/**/*", "./tests/e2e/**/*", "./dist/**/*"],
|
|
3220
|
-
gitignore: true
|
|
3221
|
-
}),
|
|
3222
|
-
logLevel: "silent",
|
|
3223
|
-
// there will be errors
|
|
3224
|
-
bundle: true,
|
|
3225
|
-
// we bundle to get everything
|
|
3226
|
-
write: false,
|
|
3227
|
-
// no need to write for analysis
|
|
3228
|
-
outdir: "out",
|
|
3229
|
-
plugins: [depsCheckPlugin(options.bundle)]
|
|
3230
|
-
});
|
|
3231
|
-
await buildPromise.catch(() => {
|
|
3232
|
-
});
|
|
3233
|
-
return void 0;
|
|
3234
|
-
}
|
|
3235
3121
|
async function cleanOutputPath(context) {
|
|
3236
3122
|
if (context.clean !== false && context.outputPath) {
|
|
3237
3123
|
writeDebug(
|
|
@@ -3244,7 +3130,7 @@ async function cleanOutputPath(context) {
|
|
|
3244
3130
|
}
|
|
3245
3131
|
return context;
|
|
3246
3132
|
}
|
|
3247
|
-
async function
|
|
3133
|
+
async function build(options) {
|
|
3248
3134
|
writeDebug(` \u26A1 Executing Storm ESBuild pipeline`);
|
|
3249
3135
|
const stopwatch = getStopwatch("ESBuild pipeline");
|
|
3250
3136
|
try {
|
|
@@ -3255,7 +3141,7 @@ async function build2(options) {
|
|
|
3255
3141
|
const context = await resolveContext(options);
|
|
3256
3142
|
await cleanOutputPath(context);
|
|
3257
3143
|
await Promise.all([
|
|
3258
|
-
dependencyCheck(context.options),
|
|
3144
|
+
// dependencyCheck(context.options),
|
|
3259
3145
|
generatePackageJson(context),
|
|
3260
3146
|
copyBuildAssets(context),
|
|
3261
3147
|
executeTsup(context)
|
|
@@ -3280,7 +3166,7 @@ async function esbuildExecutorFn(options, context, config) {
|
|
|
3280
3166
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
3281
3167
|
);
|
|
3282
3168
|
}
|
|
3283
|
-
await
|
|
3169
|
+
await build({
|
|
3284
3170
|
...options,
|
|
3285
3171
|
projectRoot: _optionalChain([context, 'access', _149 => _149.projectsConfigurations, 'access', _150 => _150.projects, 'optionalAccess', _151 => _151[context.projectName], 'access', _152 => _152.root]),
|
|
3286
3172
|
name: context.projectName,
|
|
@@ -3399,7 +3285,7 @@ var LARGE_BUFFER3 = 1024 * 1e6;
|
|
|
3399
3285
|
|
|
3400
3286
|
// ../workspace-tools/src/executors/size-limit/executor.ts
|
|
3401
3287
|
|
|
3402
|
-
var
|
|
3288
|
+
var _esbuild = require('@size-limit/esbuild'); var _esbuild2 = _interopRequireDefault(_esbuild);
|
|
3403
3289
|
var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _interopRequireDefault(_esbuildwhy);
|
|
3404
3290
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
3405
3291
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
@@ -3410,7 +3296,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
3410
3296
|
);
|
|
3411
3297
|
}
|
|
3412
3298
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
3413
|
-
_sizelimit2.default.call(void 0, [_file2.default,
|
|
3299
|
+
_sizelimit2.default.call(void 0, [_file2.default, _esbuild2.default, _esbuildwhy2.default], {
|
|
3414
3300
|
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _160 => _160.projectsConfigurations, 'access', _161 => _161.projects, 'access', _162 => _162[context.projectName], 'optionalAccess', _163 => _163.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0,
|
|
3415
3301
|
_nullishCoalesce(_optionalChain([context, 'access', _164 => _164.projectsConfigurations, 'access', _165 => _165.projects, 'access', _166 => _166[context.projectName], 'optionalAccess', _167 => _167.root]), () => ( "./")),
|
|
3416
3302
|
"src"
|
|
@@ -4302,7 +4188,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4302
4188
|
};
|
|
4303
4189
|
return json;
|
|
4304
4190
|
});
|
|
4305
|
-
_devkit.generateFiles.call(void 0, tree,
|
|
4191
|
+
_devkit.generateFiles.call(void 0, tree, path2.join(__dirname, "files"), projectRoot, {
|
|
4306
4192
|
...options,
|
|
4307
4193
|
pnpmVersion,
|
|
4308
4194
|
nodeVersion
|