@storm-software/pulumi-tools 0.22.284 → 0.22.288
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 +48 -0
- package/README.md +1 -1
- package/dist/{chunk-PO3YAQB2.js → chunk-3UILE5UJ.js} +2 -2
- package/dist/{chunk-BCXMKKQO.mjs → chunk-4M7VK365.mjs} +186 -144
- package/dist/{chunk-UVDVH6BU.mjs → chunk-7DSON3RR.mjs} +1 -1
- package/dist/{chunk-FBFBLJXY.js → chunk-7PXLBALA.js} +3 -3
- package/dist/{chunk-5LRPPLYE.mjs → chunk-BDSQ6YUB.mjs} +1 -1
- package/dist/{chunk-JF63O6JB.mjs → chunk-CYGXSVSC.mjs} +1 -1
- package/dist/{chunk-XYNAGFNA.mjs → chunk-FT3FBHMD.mjs} +1 -1
- package/dist/{chunk-5KYSGSYV.mjs → chunk-IQA5BYQU.mjs} +1 -1
- package/dist/{chunk-JMKDXVTL.js → chunk-MP6GCN5T.js} +5 -5
- package/dist/{chunk-6NAVJZYD.js → chunk-OYPDMYSF.js} +2 -2
- package/dist/{chunk-6Q6WYEPB.js → chunk-PD45PYGO.js} +167 -125
- package/dist/{chunk-T3FSADCE.mjs → chunk-S7IYKNGE.mjs} +1 -1
- package/dist/{chunk-S5HDERBM.js → chunk-SAKGA5UN.js} +2 -2
- package/dist/{chunk-LXRYS5E4.js → chunk-Z6QXT4KF.js} +2 -2
- package/dist/{chunk-Q5CO4L6A.mjs → chunk-ZS7F7CEA.mjs} +1 -1
- package/dist/{chunk-KJEHUSYV.js → chunk-ZST67IUR.js} +2 -2
- 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 +5 -5
|
@@ -5,7 +5,7 @@ var _chunkQDPXTR73js = require('./chunk-QDPXTR73.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkPD45PYGOjs = require('./chunk-PD45PYGO.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 = _chunkPD45PYGOjs.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 = _chunkPD45PYGOjs.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
|
+
_chunkPD45PYGOjs.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
|
+
_chunkPD45PYGOjs.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,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7PXLBALAjs = require('./chunk-7PXLBALA.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/preview/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk7PXLBALAjs.withPulumiExecutor.call(void 0, "preview", (options) => [
|
|
7
7
|
options.stack && `--stack=${options.stack}`,
|
|
8
8
|
options.expectNoChanges && "--expect-no-changes"
|
|
9
9
|
]);
|
|
@@ -2874,36 +2874,11 @@ var executor_default7 = withRunExecutor(
|
|
|
2874
2874
|
}
|
|
2875
2875
|
);
|
|
2876
2876
|
|
|
2877
|
-
// ../npm-tools/src/helpers/get-version.ts
|
|
2878
|
-
|
|
2879
|
-
var _semver = require('semver');
|
|
2880
|
-
var _stripansi = require('strip-ansi'); var _stripansi2 = _interopRequireDefault(_stripansi);
|
|
2881
|
-
|
|
2882
|
-
// ../npm-tools/src/helpers/get-registry.ts
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
// ../pnpm-tools/src/helpers/catalog.ts
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
// ../pnpm-tools/src/helpers/pnpm-workspace.ts
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
var _yaml = require('yaml');
|
|
2892
|
-
|
|
2893
|
-
// ../pnpm-tools/src/helpers/replace-deps-aliases.ts
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
var _prettier = require('prettier');
|
|
2901
|
-
|
|
2902
2877
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2903
2878
|
|
|
2904
2879
|
|
|
2905
2880
|
|
|
2906
|
-
|
|
2881
|
+
var _prettier = require('prettier');
|
|
2907
2882
|
|
|
2908
2883
|
// ../workspace-tools/src/utils/github.ts
|
|
2909
2884
|
|
|
@@ -2994,6 +2969,12 @@ var addProjectTag = (project, variant, value, options = {
|
|
|
2994
2969
|
}
|
|
2995
2970
|
};
|
|
2996
2971
|
|
|
2972
|
+
// ../workspace-tools/src/utils/package-manager.ts
|
|
2973
|
+
|
|
2974
|
+
|
|
2975
|
+
|
|
2976
|
+
|
|
2977
|
+
|
|
2997
2978
|
// ../workspace-tools/src/executors/npm-publish/executor.ts
|
|
2998
2979
|
var LARGE_BUFFER3 = 1024 * 1e6;
|
|
2999
2980
|
|
|
@@ -3362,15 +3343,15 @@ function getDefaultOptions(config) {
|
|
|
3362
3343
|
...config
|
|
3363
3344
|
};
|
|
3364
3345
|
}
|
|
3365
|
-
function toTSDownFormat(
|
|
3366
|
-
if (!
|
|
3346
|
+
function toTSDownFormat(format3) {
|
|
3347
|
+
if (!format3 || Array.isArray(format3) && format3.length === 0) {
|
|
3367
3348
|
return ["cjs", "es"];
|
|
3368
|
-
} else if (
|
|
3349
|
+
} else if (format3 === "esm") {
|
|
3369
3350
|
return "es";
|
|
3370
|
-
} else if (Array.isArray(
|
|
3371
|
-
return
|
|
3351
|
+
} else if (Array.isArray(format3)) {
|
|
3352
|
+
return format3.map((f) => f === "esm" ? "es" : f);
|
|
3372
3353
|
}
|
|
3373
|
-
return
|
|
3354
|
+
return format3;
|
|
3374
3355
|
}
|
|
3375
3356
|
|
|
3376
3357
|
// ../tsdown/src/build.ts
|
|
@@ -3818,7 +3799,16 @@ var _js = require('@nx/js');
|
|
|
3818
3799
|
var typesNodeVersion = "20.9.0";
|
|
3819
3800
|
var nxVersion = "^18.0.4";
|
|
3820
3801
|
var nodeVersion = "20.11.0";
|
|
3821
|
-
var pnpmVersion = "
|
|
3802
|
+
var pnpmVersion = "10.3.0";
|
|
3803
|
+
var npmVersion = "10.9.0";
|
|
3804
|
+
var yarnVersion = "4.6.0";
|
|
3805
|
+
var bunVersion = "1.2.0";
|
|
3806
|
+
var packageManagerVersions = {
|
|
3807
|
+
npm: npmVersion,
|
|
3808
|
+
yarn: yarnVersion,
|
|
3809
|
+
pnpm: pnpmVersion,
|
|
3810
|
+
bun: bunVersion
|
|
3811
|
+
};
|
|
3822
3812
|
|
|
3823
3813
|
// ../workspace-tools/src/base/typescript-library-generator.ts
|
|
3824
3814
|
async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
@@ -3949,16 +3939,45 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3949
3939
|
});
|
|
3950
3940
|
}
|
|
3951
3941
|
if (tree.exists("package.json") && normalized.importPath) {
|
|
3952
|
-
_devkit.updateJson.call(void 0, tree, "package.json", (json) =>
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3942
|
+
_devkit.updateJson.call(void 0, tree, "package.json", (json) => {
|
|
3943
|
+
if (_optionalChain([config, 'optionalAccess', _214 => _214.packageManager]) === "yarn") {
|
|
3944
|
+
return {
|
|
3945
|
+
...json,
|
|
3946
|
+
resolutions: {
|
|
3947
|
+
..._optionalChain([json, 'optionalAccess', _215 => _215.resolutions]),
|
|
3948
|
+
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3949
|
+
}
|
|
3950
|
+
};
|
|
3951
|
+
}
|
|
3952
|
+
if (_optionalChain([config, 'optionalAccess', _216 => _216.packageManager]) === "npm") {
|
|
3953
|
+
return {
|
|
3954
|
+
...json,
|
|
3955
|
+
overrides: {
|
|
3956
|
+
..._optionalChain([json, 'optionalAccess', _217 => _217.overrides]),
|
|
3957
|
+
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3958
|
+
}
|
|
3959
|
+
};
|
|
3960
|
+
}
|
|
3961
|
+
if (_optionalChain([config, 'optionalAccess', _218 => _218.packageManager]) === "bun") {
|
|
3962
|
+
return {
|
|
3963
|
+
...json,
|
|
3964
|
+
overrides: {
|
|
3965
|
+
..._optionalChain([json, 'optionalAccess', _219 => _219.overrides]),
|
|
3966
|
+
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3967
|
+
}
|
|
3968
|
+
};
|
|
3960
3969
|
}
|
|
3961
|
-
|
|
3970
|
+
return {
|
|
3971
|
+
...json,
|
|
3972
|
+
pnpm: {
|
|
3973
|
+
..._optionalChain([json, 'optionalAccess', _220 => _220.pnpm]),
|
|
3974
|
+
overrides: {
|
|
3975
|
+
..._optionalChain([json, 'optionalAccess', _221 => _221.pnpm, 'optionalAccess', _222 => _222.overrides]),
|
|
3976
|
+
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3979
|
+
};
|
|
3980
|
+
});
|
|
3962
3981
|
}
|
|
3963
3982
|
_js.addTsConfigPath.call(void 0, tree, normalized.importPath, [
|
|
3964
3983
|
joinPaths(
|
|
@@ -3972,10 +3991,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
3972
3991
|
]);
|
|
3973
3992
|
if (tree.exists("package.json")) {
|
|
3974
3993
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
3975
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3994
|
+
if (_optionalChain([packageJson, 'optionalAccess', _223 => _223.repository])) {
|
|
3976
3995
|
repository = packageJson.repository;
|
|
3977
3996
|
}
|
|
3978
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
3997
|
+
if (_optionalChain([packageJson, 'optionalAccess', _224 => _224.description])) {
|
|
3979
3998
|
description = packageJson.description;
|
|
3980
3999
|
}
|
|
3981
4000
|
}
|
|
@@ -4012,22 +4031,22 @@ function getOutputPath(options) {
|
|
|
4012
4031
|
function createProjectTsConfigJson(tree, options) {
|
|
4013
4032
|
const tsconfig = {
|
|
4014
4033
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
4015
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4034
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _225 => _225.tsconfigOptions]), () => ( {})),
|
|
4016
4035
|
compilerOptions: {
|
|
4017
4036
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
4018
4037
|
outDir: joinPaths(_devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
4019
4038
|
noEmit: true,
|
|
4020
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4039
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _226 => _226.tsconfigOptions, 'optionalAccess', _227 => _227.compilerOptions]), () => ( {}))
|
|
4021
4040
|
},
|
|
4022
|
-
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4041
|
+
files: [..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _228 => _228.tsconfigOptions, 'optionalAccess', _229 => _229.files]), () => ( []))],
|
|
4023
4042
|
include: [
|
|
4024
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4043
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _230 => _230.tsconfigOptions, 'optionalAccess', _231 => _231.include]), () => ( [])),
|
|
4025
4044
|
"src/**/*.ts",
|
|
4026
4045
|
"src/**/*.js",
|
|
4027
4046
|
"bin/**/*"
|
|
4028
4047
|
],
|
|
4029
4048
|
exclude: [
|
|
4030
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
4049
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _232 => _232.tsconfigOptions, 'optionalAccess', _233 => _233.exclude]), () => ( [])),
|
|
4031
4050
|
"jest.config.ts",
|
|
4032
4051
|
"src/**/*.spec.ts",
|
|
4033
4052
|
"src/**/*.test.ts"
|
|
@@ -4037,8 +4056,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
4037
4056
|
}
|
|
4038
4057
|
async function normalizeOptions(tree, options, config) {
|
|
4039
4058
|
let importPath = options.importPath;
|
|
4040
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
4041
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
4059
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _234 => _234.namespace])) {
|
|
4060
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _235 => _235.namespace])}/${options.name}`;
|
|
4042
4061
|
}
|
|
4043
4062
|
if (options.publishable) {
|
|
4044
4063
|
if (!importPath) {
|
|
@@ -4203,7 +4222,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
4203
4222
|
);
|
|
4204
4223
|
}
|
|
4205
4224
|
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(
|
|
4206
|
-
_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
4225
|
+
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _236 => _236.workspaceRoot]), () => ( findWorkspaceRoot())),
|
|
4207
4226
|
options.outputFile.startsWith("./") ? "" : "./"
|
|
4208
4227
|
);
|
|
4209
4228
|
writeTrace(
|
|
@@ -4363,8 +4382,53 @@ var generator_default4 = withRunGenerator(
|
|
|
4363
4382
|
|
|
4364
4383
|
|
|
4365
4384
|
|
|
4385
|
+
|
|
4386
|
+
|
|
4387
|
+
// ../workspace-tools/src/utils/lock-file.ts
|
|
4388
|
+
|
|
4389
|
+
|
|
4390
|
+
|
|
4391
|
+
|
|
4392
|
+
|
|
4393
|
+
|
|
4394
|
+
|
|
4395
|
+
|
|
4396
|
+
|
|
4397
|
+
|
|
4398
|
+
var _npmparser = require('nx/src/plugins/js/lock-file/npm-parser');
|
|
4399
|
+
|
|
4400
|
+
|
|
4401
|
+
|
|
4402
|
+
var _pnpmparser = require('nx/src/plugins/js/lock-file/pnpm-parser');
|
|
4403
|
+
|
|
4404
|
+
|
|
4405
|
+
|
|
4406
|
+
var _yarnparser = require('nx/src/plugins/js/lock-file/yarn-parser');
|
|
4407
|
+
var YARN_LOCK_FILE = "yarn.lock";
|
|
4408
|
+
var NPM_LOCK_FILE = "package-lock.json";
|
|
4409
|
+
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
4410
|
+
var BUN_LOCK_FILE = "bun.lock";
|
|
4411
|
+
var YARN_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, YARN_LOCK_FILE);
|
|
4412
|
+
var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE);
|
|
4413
|
+
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
4414
|
+
var BUN_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, BUN_LOCK_FILE);
|
|
4415
|
+
var LOCK_FILE_BY_PACKAGE_MANAGER = {
|
|
4416
|
+
npm: "package-lock.json",
|
|
4417
|
+
yarn: "yarn.lock",
|
|
4418
|
+
pnpm: "pnpm-lock.yaml",
|
|
4419
|
+
bun: "bun.lock"
|
|
4420
|
+
};
|
|
4421
|
+
function getLockFileName(packageManager) {
|
|
4422
|
+
return LOCK_FILE_BY_PACKAGE_MANAGER[packageManager];
|
|
4423
|
+
}
|
|
4424
|
+
|
|
4425
|
+
// ../workspace-tools/src/generators/preset/generator.ts
|
|
4366
4426
|
async function presetGeneratorFn(tree, options) {
|
|
4367
4427
|
const projectRoot = ".";
|
|
4428
|
+
const packageManager = _nullishCoalesce(options.packageManager, () => ( "pnpm"));
|
|
4429
|
+
const packageManagerVersion = packageManagerVersions[packageManager];
|
|
4430
|
+
const pmc = _devkit.getPackageManagerCommand.call(void 0, packageManager);
|
|
4431
|
+
const lockFileName = getLockFileName(packageManager);
|
|
4368
4432
|
options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
|
|
4369
4433
|
options.namespace ??= options.organization;
|
|
4370
4434
|
_devkit.addProjectConfiguration.call(void 0, tree, `@${options.namespace}/${options.name}`, {
|
|
@@ -4432,11 +4496,6 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4432
4496
|
type: "github",
|
|
4433
4497
|
url: `${options.repositoryUrl}.git`
|
|
4434
4498
|
};
|
|
4435
|
-
json.packageManager ??= "pnpm@10.3.0";
|
|
4436
|
-
json.engines ??= {
|
|
4437
|
-
node: ">=20.11.0",
|
|
4438
|
-
pnpm: ">=10.3.0"
|
|
4439
|
-
};
|
|
4440
4499
|
json.prettier = "@storm-software/prettier/config.json";
|
|
4441
4500
|
json.nx ??= {
|
|
4442
4501
|
includedScripts: [
|
|
@@ -4453,14 +4512,14 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4453
4512
|
"release"
|
|
4454
4513
|
]
|
|
4455
4514
|
};
|
|
4456
|
-
json.scripts.adr = "
|
|
4457
|
-
json.scripts["adr-preview"] = "
|
|
4458
|
-
json.scripts.prepare =
|
|
4459
|
-
json.scripts.preinstall =
|
|
4460
|
-
json.scripts["install-csb"] = "corepack enable &&
|
|
4515
|
+
json.scripts.adr = pmc.run("log4brains", "adr new");
|
|
4516
|
+
json.scripts["adr-preview"] = pmc.run("log4brains", "preview");
|
|
4517
|
+
json.scripts.prepare = `${pmc.addDev} lefthook && ${packageManager} lefthook install`;
|
|
4518
|
+
json.scripts.preinstall = `npx -y only-allow ${packageManager}`;
|
|
4519
|
+
json.scripts["install-csb"] = packageManager === "bun" ? "bun install" : `corepack enable && ${pmc.install}`;
|
|
4461
4520
|
json.scripts.clean = "rimraf dist && rimraf --glob packages/**/dist && rimraf --glob tools/**/dist && rimraf --glob docs/**/dist && rimraf --glob apps/**/dist && rimraf --glob libs/**/dist";
|
|
4462
|
-
json.scripts.nuke =
|
|
4463
|
-
json.scripts.prebuild =
|
|
4521
|
+
json.scripts.nuke = `nx clear-cache && rimraf .nx/cache && rimraf .nx/workspace-data && ${packageManager} clean && rimraf ${lockFileName} && rimraf --glob packages/**/node_modules && rimraf --glob tools/**/node_modules && rimraf node_modules`;
|
|
4522
|
+
json.scripts.prebuild = `${packageManager} clean`;
|
|
4464
4523
|
json.scripts.build = "nx affected -t build --parallel=5";
|
|
4465
4524
|
json.scripts["build-all"] = "nx run-many -t build --all --parallel=5";
|
|
4466
4525
|
json.scripts["build-prod"] = "nx run-many -t build --all --prod --parallel=5";
|
|
@@ -4475,45 +4534,53 @@ async function presetGeneratorFn(tree, options) {
|
|
|
4475
4534
|
}
|
|
4476
4535
|
json.scripts.nx = "nx";
|
|
4477
4536
|
json.scripts.graph = "nx graph";
|
|
4478
|
-
json.scripts.lint = "pnpm storm-lint all --skip-cspell --skip-alex";
|
|
4479
4537
|
if (options.includeApps) {
|
|
4480
4538
|
json.scripts.start = "nx serve";
|
|
4481
|
-
json.scripts.storybook = "
|
|
4539
|
+
json.scripts.storybook = pmc.run("storybook", "dev -p 6006");
|
|
4482
4540
|
}
|
|
4483
4541
|
json.scripts.help = "nx help";
|
|
4484
4542
|
json.scripts["dep-graph"] = "nx dep-graph";
|
|
4485
4543
|
json.scripts["local-registry"] = `nx local-registry @${options.namespace}/${options.name}`;
|
|
4486
4544
|
json.scripts.e2e = "nx e2e";
|
|
4487
4545
|
if (options.includeApps) {
|
|
4488
|
-
json.scripts.test =
|
|
4489
|
-
json.scripts["test-storybook"] =
|
|
4546
|
+
json.scripts.test = `nx test && ${packageManager} test-storybook`;
|
|
4547
|
+
json.scripts["test-storybook"] = `${packageManager} test-storybook`;
|
|
4490
4548
|
} else {
|
|
4491
4549
|
json.scripts.test = "nx test";
|
|
4492
4550
|
}
|
|
4493
|
-
json.scripts.
|
|
4494
|
-
json.scripts
|
|
4495
|
-
|
|
4496
|
-
|
|
4551
|
+
json.scripts.commit = pmc.run("storm-git", "commit");
|
|
4552
|
+
json.scripts["api-extractor"] = pmc.run(
|
|
4553
|
+
"storm-docs",
|
|
4554
|
+
'api-extractor --outputPath="docs/api-reference" --clean'
|
|
4555
|
+
);
|
|
4556
|
+
json.scripts.release = pmc.run("storm-git", "release");
|
|
4497
4557
|
json.scripts.format = "nx format:write";
|
|
4498
|
-
json.scripts["format-sherif"] =
|
|
4499
|
-
json.scripts["format-toml"] =
|
|
4500
|
-
json.scripts["format-readme"] =
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
json.scripts["
|
|
4505
|
-
json.scripts
|
|
4506
|
-
json.
|
|
4558
|
+
json.scripts["format-sherif"] = `${pmc.exec} sherif -f -i typescript -i react -i react-dom`;
|
|
4559
|
+
json.scripts["format-toml"] = `${pmc.exec} taplo format --config="./node_modules/@storm-software/linting-tools/taplo/config.toml" --cache-path="./node_modules/.cache/storm/taplo"`;
|
|
4560
|
+
json.scripts["format-readme"] = pmc.run(
|
|
4561
|
+
"storm-git",
|
|
4562
|
+
'readme --templates="tools/readme-templates"'
|
|
4563
|
+
);
|
|
4564
|
+
json.scripts["format-prettier"] = `${pmc.exec} prettier --write --ignore-unknown --no-error-on-unmatched-pattern --cache && git update-index`;
|
|
4565
|
+
json.scripts.lint = pmc.run("storm-lint", "all --skip-cspell");
|
|
4566
|
+
json.scripts["lint-knip"] = `${pmc.exec} knip`;
|
|
4567
|
+
json.scripts["lint-sherif"] = `${pmc.exec} sherif -i typescript -i react -i react-dom`;
|
|
4568
|
+
json.scripts["lint-ls"] = `${pmc.exec} ls-lint --config="./node_modules/@storm-software/linting-tools/ls-lint/ls-lint.yml"`;
|
|
4569
|
+
json.packageManager ??= `${packageManager}@${packageManagerVersion}`;
|
|
4507
4570
|
json.engines = {
|
|
4508
4571
|
node: `>=${nodeVersion}`,
|
|
4509
|
-
|
|
4572
|
+
[packageManager]: `>=${packageManagerVersion}`
|
|
4510
4573
|
};
|
|
4511
4574
|
return json;
|
|
4512
4575
|
});
|
|
4513
4576
|
_devkit.generateFiles.call(void 0, tree, path2.join(__dirname, "files"), projectRoot, {
|
|
4514
4577
|
...options,
|
|
4578
|
+
packageManager,
|
|
4579
|
+
packageManagerVersion,
|
|
4515
4580
|
pnpmVersion,
|
|
4516
|
-
nodeVersion
|
|
4581
|
+
nodeVersion,
|
|
4582
|
+
lockFileName,
|
|
4583
|
+
exec: pmc.exec
|
|
4517
4584
|
});
|
|
4518
4585
|
await _devkit.formatFiles.call(void 0, tree);
|
|
4519
4586
|
let dependencies = {
|
|
@@ -4972,33 +5039,6 @@ var _release = require('nx/release');
|
|
|
4972
5039
|
// ../workspace-tools/src/utils/get-project-configurations.ts
|
|
4973
5040
|
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
|
|
4974
5041
|
|
|
4975
|
-
// ../workspace-tools/src/utils/lock-file.ts
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
var _npmparser = require('nx/src/plugins/js/lock-file/npm-parser');
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
var _pnpmparser = require('nx/src/plugins/js/lock-file/pnpm-parser');
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
var _yarnparser = require('nx/src/plugins/js/lock-file/yarn-parser');
|
|
4995
|
-
var YARN_LOCK_FILE = "yarn.lock";
|
|
4996
|
-
var NPM_LOCK_FILE = "package-lock.json";
|
|
4997
|
-
var PNPM_LOCK_FILE = "pnpm-lock.yaml";
|
|
4998
|
-
var YARN_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, YARN_LOCK_FILE);
|
|
4999
|
-
var NPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, NPM_LOCK_FILE);
|
|
5000
|
-
var PNPM_LOCK_PATH = _path.join.call(void 0, _devkit.workspaceRoot, PNPM_LOCK_FILE);
|
|
5001
|
-
|
|
5002
5042
|
// ../workspace-tools/config/recommended.json
|
|
5003
5043
|
var recommended_default = {
|
|
5004
5044
|
$schema: "https://cdn.jsdelivr.net/npm/nx/schemas/nx-schema.json",
|
|
@@ -5007,15 +5047,12 @@ var recommended_default = {
|
|
|
5007
5047
|
allProjectFiles: ["sharedGlobals", "{projectRoot}/**/*"],
|
|
5008
5048
|
default: ["sharedGlobals", "{projectRoot}/**/*"],
|
|
5009
5049
|
sharedGlobals: [
|
|
5010
|
-
"{workspaceRoot}/.github/workflows/*.yml",
|
|
5011
|
-
"{workspaceRoot}/assets/**/*",
|
|
5012
5050
|
"{workspaceRoot}/tsconfig.json",
|
|
5013
|
-
"{workspaceRoot}/tsconfig
|
|
5051
|
+
"{workspaceRoot}/tsconfig.*.json",
|
|
5014
5052
|
"{workspaceRoot}/.npm@(rc|ignore)",
|
|
5015
5053
|
"{workspaceRoot}/package.json",
|
|
5016
5054
|
"{workspaceRoot}/{pnpm-workspace,pnpm-lock,package-lock,yarn-lock}.@(yaml|yml)",
|
|
5017
|
-
"{workspaceRoot}/bun.
|
|
5018
|
-
"{workspaceRoot}/LICENSE",
|
|
5055
|
+
"{workspaceRoot}/bun.lock{,b}",
|
|
5019
5056
|
"{workspaceRoot}/.git@(attributes|ignore)",
|
|
5020
5057
|
"{workspaceRoot}/{nx.json,.nxignore}",
|
|
5021
5058
|
"{workspaceRoot}/storm-workspace{,.*}.@(json|yaml|toml)",
|
|
@@ -5023,7 +5060,6 @@ var recommended_default = {
|
|
|
5023
5060
|
"{workspaceRoot}/storm-workspace.config.[jt]s",
|
|
5024
5061
|
"{workspaceRoot}/.storm-workspace/config{,.*}.[jt]s",
|
|
5025
5062
|
"{workspaceRoot}/devenv.@(lock|nix|yaml)",
|
|
5026
|
-
"{workspaceRoot}/{flake,shell,devShell}.nix",
|
|
5027
5063
|
"{workspaceRoot}/.envrc",
|
|
5028
5064
|
"{workspaceRoot}/.env{,.local,.*}"
|
|
5029
5065
|
],
|
|
@@ -5130,14 +5166,12 @@ var recommended_default = {
|
|
|
5130
5166
|
"{workspaceRoot}/Cargo.lock",
|
|
5131
5167
|
"{workspaceRoot}/.cargo/config.toml",
|
|
5132
5168
|
"{workspaceRoot}/rust-toolchain",
|
|
5133
|
-
"{workspaceRoot}/rustfmt.toml",
|
|
5134
|
-
"{workspaceRoot}/deny.toml",
|
|
5135
5169
|
"{projectRoot}/Cargo.toml",
|
|
5136
5170
|
"{projectRoot}/.cargo/config.toml",
|
|
5137
5171
|
{
|
|
5138
5172
|
runtime: "node -p '`${process.platform}_${process.arch}`'"
|
|
5139
5173
|
},
|
|
5140
|
-
"{projectRoot}/
|
|
5174
|
+
"{projectRoot}/project.json",
|
|
5141
5175
|
"{projectRoot}/.env{,.local}",
|
|
5142
5176
|
"{projectRoot}/**/*.rs",
|
|
5143
5177
|
"{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
|
|
@@ -5156,14 +5190,22 @@ var recommended_default = {
|
|
|
5156
5190
|
"{projectRoot}/package.json",
|
|
5157
5191
|
"{projectRoot}/tsconfig.json",
|
|
5158
5192
|
"{projectRoot}/tsconfig.*.json",
|
|
5159
|
-
"{projectRoot}/
|
|
5193
|
+
"{projectRoot}/project.json",
|
|
5160
5194
|
"{projectRoot}/.env{,.*}",
|
|
5161
|
-
"{projectRoot}/docs/**/*",
|
|
5162
|
-
"{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
5195
|
+
"!{projectRoot}/docs/**/*",
|
|
5196
|
+
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
5163
5197
|
"{projectRoot}/**/*.@(proto|acid|acidic|prisma)",
|
|
5164
5198
|
"{projectRoot}/src/**/*.@(cts|mts|ts|tsx|graphql|gql|js|cjs|mjs|jsx|json|jsonc|yaml|yml|toml|md|mdx)",
|
|
5165
5199
|
"{projectRoot}/{build,tsup,tsdown,vite,contentlayer,powerlines,shell-shock,earthquake}.*.[jt]s?(x)",
|
|
5166
5200
|
"{projectRoot}/{bin,tools,helpers,scripts}/**/*"
|
|
5201
|
+
],
|
|
5202
|
+
ci: [
|
|
5203
|
+
"sharedGlobals",
|
|
5204
|
+
"{workspaceRoot}/.github/workflows/*.yml",
|
|
5205
|
+
"{workspaceRoot}/assets/**/*",
|
|
5206
|
+
"{workspaceRoot}/devenv.@(lock|nix|yaml)",
|
|
5207
|
+
"{workspaceRoot}/.devenv{,.flake.nix}",
|
|
5208
|
+
"{workspaceRoot}/.direnv"
|
|
5167
5209
|
]
|
|
5168
5210
|
},
|
|
5169
5211
|
targetDefaults: {
|
|
@@ -5174,8 +5216,8 @@ var recommended_default = {
|
|
|
5174
5216
|
executor: "nx:run-commands",
|
|
5175
5217
|
options: {
|
|
5176
5218
|
commands: [
|
|
5177
|
-
"pnpm
|
|
5178
|
-
"pnpm
|
|
5219
|
+
"pnpm rimraf --glob {projectRoot}/dist",
|
|
5220
|
+
"pnpm rimraf dist/{projectRoot}"
|
|
5179
5221
|
]
|
|
5180
5222
|
}
|
|
5181
5223
|
},
|
|
@@ -5195,7 +5237,7 @@ var recommended_default = {
|
|
|
5195
5237
|
version: {
|
|
5196
5238
|
currentVersionResolver: "git-tag",
|
|
5197
5239
|
specifierSource: "conventional-commits",
|
|
5198
|
-
groupPreVersionCommand: "
|
|
5240
|
+
groupPreVersionCommand: "build",
|
|
5199
5241
|
manifestRootsToUpdate: [
|
|
5200
5242
|
"{projectRoot}",
|
|
5201
5243
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7PXLBALAjs = require('./chunk-7PXLBALA.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/config/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk7PXLBALAjs.withPulumiExecutor.call(void 0, "config", (options) => [
|
|
7
7
|
options.action,
|
|
8
8
|
options.showSecrets && `--show-secrets`,
|
|
9
9
|
options.secret && `--secret`,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7PXLBALAjs = require('./chunk-7PXLBALA.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/refresh/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk7PXLBALAjs.withPulumiExecutor.call(void 0, "refresh", (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 _chunk7PXLBALAjs = require('./chunk-7PXLBALA.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/up/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk7PXLBALAjs.withPulumiExecutor.call(void 0, "up", (options) => [
|
|
7
7
|
"--suppress-progress",
|
|
8
8
|
options.stack && `--stack=${options.stack}`,
|
|
9
9
|
options.skipPreview && "--skip-preview",
|
package/dist/executors.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-3UILE5UJ.js');
|
|
3
|
+
require('./chunk-OYPDMYSF.js');
|
|
4
|
+
require('./chunk-Z6QXT4KF.js');
|
|
5
|
+
require('./chunk-ZST67IUR.js');
|
|
6
|
+
require('./chunk-SAKGA5UN.js');
|
|
7
|
+
require('./chunk-7PXLBALA.js');
|
|
8
|
+
require('./chunk-PD45PYGO.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-ZS7F7CEA.mjs";
|
|
3
|
+
import "./chunk-7DSON3RR.mjs";
|
|
4
|
+
import "./chunk-FT3FBHMD.mjs";
|
|
5
|
+
import "./chunk-IQA5BYQU.mjs";
|
|
6
|
+
import "./chunk-CYGXSVSC.mjs";
|
|
7
|
+
import "./chunk-S7IYKNGE.mjs";
|
|
8
|
+
import "./chunk-4M7VK365.mjs";
|
|
9
9
|
import "./chunk-4RR3IGJL.mjs";
|