@storm-software/pulumi-tools 0.7.68 → 0.7.70
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 +19 -0
- package/README.md +1 -1
- package/dist/{chunk-7WFQPXS2.mjs → chunk-2OV7DBOM.mjs} +1 -1
- package/dist/{chunk-QOEFKFX4.js → chunk-2S7K2YWW.js} +2 -2
- package/dist/{chunk-D72T2MHG.mjs → chunk-5NSLLHDJ.mjs} +1 -1
- package/dist/{chunk-6LKNICCD.mjs → chunk-625N6KG6.mjs} +1 -1
- package/dist/{chunk-VXZZAK4S.js → chunk-776G4NJY.js} +3 -3
- package/dist/{chunk-DSGV54NN.mjs → chunk-ARCRGA64.mjs} +1 -1
- package/dist/{chunk-32323UTI.js → chunk-AY5TW2HS.js} +5 -5
- package/dist/{chunk-7EVSIDDL.js → chunk-DA2A7QKP.js} +2 -2
- package/dist/{chunk-FDY2VOL2.mjs → chunk-FEBGVIEL.mjs} +1 -1
- package/dist/{chunk-G4BW4S4W.js → chunk-FOQYM54M.js} +214 -156
- package/dist/{chunk-LGAEZ5LN.mjs → chunk-KZJVFLZB.mjs} +1 -1
- package/dist/{chunk-D4BUT7VU.js → chunk-PIHBU3AE.js} +2 -2
- package/dist/{chunk-OOSJUREW.mjs → chunk-PLSJAYWB.mjs} +197 -139
- package/dist/{chunk-ZD6FU2BH.js → chunk-PNDI2UTF.js} +2 -2
- package/dist/{chunk-K6N3JZLC.mjs → chunk-WYPP7NRO.mjs} +1 -1
- package/dist/{chunk-2JAMLEZB.js → chunk-YRW4EOWU.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 +1 -1
|
@@ -262,7 +262,7 @@ var COLOR_KEYS = [
|
|
|
262
262
|
// ../config-tools/src/utilities/get-default-config.ts
|
|
263
263
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
264
264
|
var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
|
|
265
|
-
var _path = require('path'); var
|
|
265
|
+
var _path = require('path'); var path4 = _interopRequireWildcard(_path);
|
|
266
266
|
|
|
267
267
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
268
268
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
@@ -276,65 +276,65 @@ _chunk3GQAWCBQjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath
|
|
|
276
276
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
277
277
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
278
278
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
279
|
-
var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(
|
|
280
|
-
if (!
|
|
279
|
+
var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(path5) {
|
|
280
|
+
if (!path5 || path5.length === 0) {
|
|
281
281
|
return ".";
|
|
282
282
|
}
|
|
283
|
-
|
|
284
|
-
const isUNCPath =
|
|
285
|
-
const isPathAbsolute = isAbsolute(
|
|
286
|
-
const trailingSeparator =
|
|
287
|
-
|
|
288
|
-
if (
|
|
283
|
+
path5 = normalizeWindowsPath(path5);
|
|
284
|
+
const isUNCPath = path5.match(_UNC_REGEX);
|
|
285
|
+
const isPathAbsolute = isAbsolute(path5);
|
|
286
|
+
const trailingSeparator = path5[path5.length - 1] === "/";
|
|
287
|
+
path5 = normalizeString(path5, !isPathAbsolute);
|
|
288
|
+
if (path5.length === 0) {
|
|
289
289
|
if (isPathAbsolute) {
|
|
290
290
|
return "/";
|
|
291
291
|
}
|
|
292
292
|
return trailingSeparator ? "./" : ".";
|
|
293
293
|
}
|
|
294
294
|
if (trailingSeparator) {
|
|
295
|
-
|
|
295
|
+
path5 += "/";
|
|
296
296
|
}
|
|
297
|
-
if (_DRIVE_LETTER_RE.test(
|
|
298
|
-
|
|
297
|
+
if (_DRIVE_LETTER_RE.test(path5)) {
|
|
298
|
+
path5 += "/";
|
|
299
299
|
}
|
|
300
300
|
if (isUNCPath) {
|
|
301
301
|
if (!isPathAbsolute) {
|
|
302
|
-
return `//./${
|
|
302
|
+
return `//./${path5}`;
|
|
303
303
|
}
|
|
304
|
-
return `//${
|
|
304
|
+
return `//${path5}`;
|
|
305
305
|
}
|
|
306
|
-
return isPathAbsolute && !isAbsolute(
|
|
306
|
+
return isPathAbsolute && !isAbsolute(path5) ? `/${path5}` : path5;
|
|
307
307
|
}, "correctPaths");
|
|
308
308
|
var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(...segments) {
|
|
309
|
-
let
|
|
309
|
+
let path5 = "";
|
|
310
310
|
for (const seg of segments) {
|
|
311
311
|
if (!seg) {
|
|
312
312
|
continue;
|
|
313
313
|
}
|
|
314
|
-
if (
|
|
315
|
-
const pathTrailing =
|
|
314
|
+
if (path5.length > 0) {
|
|
315
|
+
const pathTrailing = path5[path5.length - 1] === "/";
|
|
316
316
|
const segLeading = seg[0] === "/";
|
|
317
317
|
const both = pathTrailing && segLeading;
|
|
318
318
|
if (both) {
|
|
319
|
-
|
|
319
|
+
path5 += seg.slice(1);
|
|
320
320
|
} else {
|
|
321
|
-
|
|
321
|
+
path5 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
322
322
|
}
|
|
323
323
|
} else {
|
|
324
|
-
|
|
324
|
+
path5 += seg;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
return correctPaths(
|
|
327
|
+
return correctPaths(path5);
|
|
328
328
|
}, "joinPaths");
|
|
329
|
-
function normalizeString(
|
|
329
|
+
function normalizeString(path5, allowAboveRoot) {
|
|
330
330
|
let res = "";
|
|
331
331
|
let lastSegmentLength = 0;
|
|
332
332
|
let lastSlash = -1;
|
|
333
333
|
let dots = 0;
|
|
334
334
|
let char = null;
|
|
335
|
-
for (let index = 0; index <=
|
|
336
|
-
if (index <
|
|
337
|
-
char =
|
|
335
|
+
for (let index = 0; index <= path5.length; ++index) {
|
|
336
|
+
if (index < path5.length) {
|
|
337
|
+
char = path5[index];
|
|
338
338
|
} else if (char === "/") {
|
|
339
339
|
break;
|
|
340
340
|
} else {
|
|
@@ -370,9 +370,9 @@ function normalizeString(path4, allowAboveRoot) {
|
|
|
370
370
|
}
|
|
371
371
|
} else {
|
|
372
372
|
if (res.length > 0) {
|
|
373
|
-
res += `/${
|
|
373
|
+
res += `/${path5.slice(lastSlash + 1, index)}`;
|
|
374
374
|
} else {
|
|
375
|
-
res =
|
|
375
|
+
res = path5.slice(lastSlash + 1, index);
|
|
376
376
|
}
|
|
377
377
|
lastSegmentLength = index - lastSlash - 1;
|
|
378
378
|
}
|
|
@@ -1830,7 +1830,8 @@ var _jtoml = require('@ltd/j-toml'); var _jtoml2 = _interopRequireDefault(_jtoml
|
|
|
1830
1830
|
var LARGE_BUFFER2 = 1024 * 1e6;
|
|
1831
1831
|
|
|
1832
1832
|
// ../esbuild/src/build.ts
|
|
1833
|
-
|
|
1833
|
+
var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
|
|
1834
|
+
var _globby = require('globby');
|
|
1834
1835
|
|
|
1835
1836
|
// ../build-tools/src/config.ts
|
|
1836
1837
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
@@ -2051,16 +2052,17 @@ var getEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (builder, opti
|
|
|
2051
2052
|
// ../build-tools/src/utilities/task-graph.ts
|
|
2052
2053
|
var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
2053
2054
|
|
|
2054
|
-
// ../esbuild/src/
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2055
|
+
// ../esbuild/src/assets.ts
|
|
2056
|
+
async function copyBuildAssets(context) {
|
|
2057
|
+
if (_optionalChain([context, 'access', _121 => _121.result, 'optionalAccess', _122 => _122.errors, 'access', _123 => _123.length]) === 0) {
|
|
2058
|
+
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
|
|
2059
|
+
const stopwatch = getStopwatch(`${context.options.name} asset copy`);
|
|
2060
|
+
await copyAssets(context.workspaceConfig, _nullishCoalesce(context.options.assets, () => ( [])), context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
|
|
2061
|
+
stopwatch();
|
|
2062
|
+
}
|
|
2063
|
+
return context;
|
|
2064
|
+
}
|
|
2065
|
+
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
2064
2066
|
|
|
2065
2067
|
// ../esbuild/src/clean.ts
|
|
2066
2068
|
|
|
@@ -2072,6 +2074,13 @@ async function cleanDirectories(directory) {
|
|
|
2072
2074
|
}
|
|
2073
2075
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanDirectories, "cleanDirectories");
|
|
2074
2076
|
|
|
2077
|
+
// ../esbuild/src/context.ts
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
2083
|
+
|
|
2075
2084
|
// ../esbuild/src/config.ts
|
|
2076
2085
|
var DEFAULT_BUILD_OPTIONS = {
|
|
2077
2086
|
assets: [],
|
|
@@ -2117,97 +2126,51 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
2117
2126
|
}
|
|
2118
2127
|
};
|
|
2119
2128
|
|
|
2120
|
-
// ../esbuild/src/plugins/
|
|
2121
|
-
|
|
2129
|
+
// ../esbuild/src/plugins/resolve-paths.ts
|
|
2122
2130
|
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
"buffer"
|
|
2146
|
-
];
|
|
2147
|
-
var missingIgnore = [
|
|
2148
|
-
".prisma",
|
|
2149
|
-
"@prisma/client",
|
|
2150
|
-
"ts-toolbelt"
|
|
2151
|
-
];
|
|
2152
|
-
var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bundle) => ({
|
|
2153
|
-
name: "storm:deps-check",
|
|
2131
|
+
function resolvePathsConfig(options, cwd) {
|
|
2132
|
+
if (_optionalChain([options, 'optionalAccess', _124 => _124.compilerOptions, 'optionalAccess', _125 => _125.paths])) {
|
|
2133
|
+
const paths = Object.entries(options.compilerOptions.paths);
|
|
2134
|
+
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
2135
|
+
return [
|
|
2136
|
+
key,
|
|
2137
|
+
paths2.map((v) => path4.default.resolve(cwd, v))
|
|
2138
|
+
];
|
|
2139
|
+
});
|
|
2140
|
+
return Object.fromEntries(resolvedPaths);
|
|
2141
|
+
}
|
|
2142
|
+
if (options.extends) {
|
|
2143
|
+
const extendsPath = path4.default.resolve(cwd, options.extends);
|
|
2144
|
+
const extendsDir = path4.default.dirname(extendsPath);
|
|
2145
|
+
const extendsConfig = _chunk3GQAWCBQjs.__require.call(void 0, extendsPath);
|
|
2146
|
+
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
2147
|
+
}
|
|
2148
|
+
return [];
|
|
2149
|
+
}
|
|
2150
|
+
_chunk3GQAWCBQjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
2151
|
+
var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context) => ({
|
|
2152
|
+
name: "storm:resolve-paths",
|
|
2154
2153
|
setup(build3) {
|
|
2155
|
-
const
|
|
2156
|
-
const
|
|
2157
|
-
const
|
|
2158
|
-
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
2159
|
-
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
2160
|
-
const dependencies = [
|
|
2161
|
-
...regDependencies,
|
|
2162
|
-
...bundle ? devDependencies : []
|
|
2163
|
-
];
|
|
2164
|
-
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
2165
|
-
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
2154
|
+
const parentTsConfig = build3.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0, joinPaths(context.workspaceConfig.workspaceRoot, build3.initialOptions.tsconfig)) : _chunk3GQAWCBQjs.__require.call(void 0, joinPaths(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
2155
|
+
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
|
|
2156
|
+
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
2166
2157
|
build3.onResolve({
|
|
2167
|
-
filter:
|
|
2158
|
+
filter: packagesRegex
|
|
2168
2159
|
}, (args) => {
|
|
2169
|
-
if (
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
}
|
|
2174
|
-
const [pkg] = args.path.split("/");
|
|
2175
|
-
collectedDependencies.add(pkg);
|
|
2176
|
-
}
|
|
2160
|
+
if (_optionalChain([build3, 'access', _126 => _126.initialOptions, 'access', _127 => _127.external, 'optionalAccess', _128 => _128.includes, 'call', _129 => _129(args.path)])) {
|
|
2161
|
+
return {
|
|
2162
|
+
path: args.path,
|
|
2163
|
+
external: true
|
|
2164
|
+
};
|
|
2177
2165
|
}
|
|
2178
2166
|
return {
|
|
2179
|
-
|
|
2167
|
+
path: `${resolvedTsPaths[args.path][0]}/index.ts`
|
|
2180
2168
|
};
|
|
2181
2169
|
});
|
|
2182
|
-
build3.onEnd(() => {
|
|
2183
|
-
const unusedDependencies = [
|
|
2184
|
-
...dependencies
|
|
2185
|
-
].filter((dep) => {
|
|
2186
|
-
return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
|
|
2187
|
-
});
|
|
2188
|
-
const missingDependencies = [
|
|
2189
|
-
...collectedDependencies
|
|
2190
|
-
].filter((dep) => {
|
|
2191
|
-
return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
|
|
2192
|
-
});
|
|
2193
|
-
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
2194
|
-
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
2195
|
-
});
|
|
2196
|
-
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
2197
|
-
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
2198
|
-
});
|
|
2199
|
-
writeWarning(`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
2200
|
-
writeError(`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
2201
|
-
if (filteredMissingDeps.length > 0) {
|
|
2202
|
-
throw new Error(`Missing dependencies detected - please install them:
|
|
2203
|
-
${JSON.stringify(filteredMissingDeps)}
|
|
2204
|
-
`);
|
|
2205
|
-
}
|
|
2206
|
-
});
|
|
2207
2170
|
}
|
|
2208
|
-
}), "
|
|
2171
|
+
}), "resolvePathsPlugin");
|
|
2209
2172
|
|
|
2210
|
-
// ../esbuild/src/
|
|
2173
|
+
// ../esbuild/src/context.ts
|
|
2211
2174
|
async function resolveContext(userOptions) {
|
|
2212
2175
|
const projectRoot = userOptions.projectRoot;
|
|
2213
2176
|
const workspaceRoot3 = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
|
|
@@ -2230,7 +2193,7 @@ async function resolveContext(userOptions) {
|
|
|
2230
2193
|
const projectJson = JSON.parse(projectJsonFile);
|
|
2231
2194
|
const projectName = projectJson.name || userOptions.name;
|
|
2232
2195
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
2233
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
2196
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _130 => _130.projects, 'optionalAccess', _131 => _131[projectName]])) {
|
|
2234
2197
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
2235
2198
|
}
|
|
2236
2199
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
@@ -2261,7 +2224,7 @@ async function resolveContext(userOptions) {
|
|
|
2261
2224
|
}
|
|
2262
2225
|
};
|
|
2263
2226
|
stopwatch();
|
|
2264
|
-
|
|
2227
|
+
const context = {
|
|
2265
2228
|
options: resolvedOptions,
|
|
2266
2229
|
clean: userOptions.clean !== false,
|
|
2267
2230
|
workspaceConfig,
|
|
@@ -2272,8 +2235,18 @@ async function resolveContext(userOptions) {
|
|
|
2272
2235
|
outputPath: resolvedOptions.outputPath || joinPaths(workspaceConfig.workspaceRoot, "dist", resolvedOptions.projectRoot),
|
|
2273
2236
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
2274
2237
|
};
|
|
2238
|
+
context.options.esbuildPlugins = [
|
|
2239
|
+
resolvePathsPlugin(context),
|
|
2240
|
+
..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))
|
|
2241
|
+
];
|
|
2242
|
+
return context;
|
|
2275
2243
|
}
|
|
2276
2244
|
_chunk3GQAWCBQjs.__name.call(void 0, resolveContext, "resolveContext");
|
|
2245
|
+
|
|
2246
|
+
// ../esbuild/src/package-json.ts
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
|
|
2277
2250
|
async function generatePackageJson(context) {
|
|
2278
2251
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, joinPaths(context.options.projectRoot, "package.json"))) {
|
|
2279
2252
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
@@ -2372,6 +2345,99 @@ async function generatePackageJson(context) {
|
|
|
2372
2345
|
return context;
|
|
2373
2346
|
}
|
|
2374
2347
|
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
2348
|
+
|
|
2349
|
+
// ../esbuild/src/plugins/deps-check.ts
|
|
2350
|
+
|
|
2351
|
+
|
|
2352
|
+
var unusedIgnore = [
|
|
2353
|
+
// these are our dev dependencies
|
|
2354
|
+
/@types\/.*?/,
|
|
2355
|
+
/@typescript-eslint.*?/,
|
|
2356
|
+
/eslint.*?/,
|
|
2357
|
+
"esbuild",
|
|
2358
|
+
"husky",
|
|
2359
|
+
"is-ci",
|
|
2360
|
+
"lint-staged",
|
|
2361
|
+
"prettier",
|
|
2362
|
+
"typescript",
|
|
2363
|
+
"ts-node",
|
|
2364
|
+
"ts-jest",
|
|
2365
|
+
"@swc/core",
|
|
2366
|
+
"@swc/jest",
|
|
2367
|
+
"jest",
|
|
2368
|
+
// these are missing 3rd party deps
|
|
2369
|
+
"spdx-exceptions",
|
|
2370
|
+
"spdx-license-ids",
|
|
2371
|
+
// type-only, so it is not detected
|
|
2372
|
+
"ts-toolbelt",
|
|
2373
|
+
// these are indirectly used by build
|
|
2374
|
+
"buffer"
|
|
2375
|
+
];
|
|
2376
|
+
var missingIgnore = [
|
|
2377
|
+
".prisma",
|
|
2378
|
+
"@prisma/client",
|
|
2379
|
+
"ts-toolbelt"
|
|
2380
|
+
];
|
|
2381
|
+
var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bundle) => ({
|
|
2382
|
+
name: "storm:deps-check",
|
|
2383
|
+
setup(build3) {
|
|
2384
|
+
const pkgJsonPath = path4.default.join(process.cwd(), "package.json");
|
|
2385
|
+
const pkgContents = _chunk3GQAWCBQjs.__require.call(void 0, pkgJsonPath);
|
|
2386
|
+
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
2387
|
+
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
2388
|
+
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
2389
|
+
const dependencies = [
|
|
2390
|
+
...regDependencies,
|
|
2391
|
+
...bundle ? devDependencies : []
|
|
2392
|
+
];
|
|
2393
|
+
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
2394
|
+
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
2395
|
+
build3.onResolve({
|
|
2396
|
+
filter: onlyPackages
|
|
2397
|
+
}, (args) => {
|
|
2398
|
+
if (args.importer.includes(process.cwd())) {
|
|
2399
|
+
if (args.path[0] === "@") {
|
|
2400
|
+
const [org, pkg] = args.path.split("/");
|
|
2401
|
+
collectedDependencies.add(`${org}/${pkg}`);
|
|
2402
|
+
} else {
|
|
2403
|
+
const [pkg] = args.path.split("/");
|
|
2404
|
+
collectedDependencies.add(pkg);
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
return {
|
|
2408
|
+
external: true
|
|
2409
|
+
};
|
|
2410
|
+
});
|
|
2411
|
+
build3.onEnd(() => {
|
|
2412
|
+
const unusedDependencies = [
|
|
2413
|
+
...dependencies
|
|
2414
|
+
].filter((dep) => {
|
|
2415
|
+
return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
|
|
2416
|
+
});
|
|
2417
|
+
const missingDependencies = [
|
|
2418
|
+
...collectedDependencies
|
|
2419
|
+
].filter((dep) => {
|
|
2420
|
+
return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
|
|
2421
|
+
});
|
|
2422
|
+
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
2423
|
+
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
2424
|
+
});
|
|
2425
|
+
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
2426
|
+
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
2427
|
+
});
|
|
2428
|
+
writeWarning(`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
2429
|
+
writeError(`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
2430
|
+
if (filteredMissingDeps.length > 0) {
|
|
2431
|
+
throw new Error(`Missing dependencies detected - please install them:
|
|
2432
|
+
${JSON.stringify(filteredMissingDeps)}
|
|
2433
|
+
`);
|
|
2434
|
+
}
|
|
2435
|
+
});
|
|
2436
|
+
}
|
|
2437
|
+
}), "depsCheckPlugin");
|
|
2438
|
+
|
|
2439
|
+
// ../esbuild/src/tsup.ts
|
|
2440
|
+
var _tsup = require('tsup');
|
|
2375
2441
|
async function executeTsup(context) {
|
|
2376
2442
|
writeDebug(` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig);
|
|
2377
2443
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
@@ -2384,23 +2450,15 @@ async function executeTsup(context) {
|
|
|
2384
2450
|
return context;
|
|
2385
2451
|
}
|
|
2386
2452
|
_chunk3GQAWCBQjs.__name.call(void 0, executeTsup, "executeTsup");
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
|
|
2390
|
-
const stopwatch = getStopwatch(`${context.options.name} asset copy`);
|
|
2391
|
-
await copyAssets(context.workspaceConfig, _nullishCoalesce(context.options.assets, () => ( [])), context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
|
|
2392
|
-
stopwatch();
|
|
2393
|
-
}
|
|
2394
|
-
return context;
|
|
2395
|
-
}
|
|
2396
|
-
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
2453
|
+
|
|
2454
|
+
// ../esbuild/src/build.ts
|
|
2397
2455
|
async function reportResults(context) {
|
|
2398
|
-
if (_optionalChain([context, 'access',
|
|
2456
|
+
if (_optionalChain([context, 'access', _132 => _132.result, 'optionalAccess', _133 => _133.errors, 'access', _134 => _134.length]) === 0) {
|
|
2399
2457
|
if (context.result.warnings.length > 0) {
|
|
2400
2458
|
writeWarning(` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`, context.workspaceConfig);
|
|
2401
2459
|
}
|
|
2402
2460
|
writeSuccess(` \u{1F4E6} The ${context.options.name} build completed successfully`, context.workspaceConfig);
|
|
2403
|
-
} else if (_optionalChain([context, 'access',
|
|
2461
|
+
} else if (_optionalChain([context, 'access', _135 => _135.result, 'optionalAccess', _136 => _136.errors]) && _optionalChain([context, 'access', _137 => _137.result, 'optionalAccess', _138 => _138.errors, 'access', _139 => _139.length]) > 0) {
|
|
2404
2462
|
writeError(` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`, context.workspaceConfig);
|
|
2405
2463
|
throw new Error(`The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`);
|
|
2406
2464
|
}
|
|
@@ -2478,14 +2536,14 @@ _chunk3GQAWCBQjs.__name.call(void 0, build2, "build");
|
|
|
2478
2536
|
// ../workspace-tools/src/executors/esbuild/executor.ts
|
|
2479
2537
|
async function esbuildExecutorFn(options, context, config) {
|
|
2480
2538
|
writeInfo("\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
2481
|
-
if (!_optionalChain([context, 'access',
|
|
2539
|
+
if (!_optionalChain([context, 'access', _140 => _140.projectsConfigurations, 'optionalAccess', _141 => _141.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _142 => _142.projectsConfigurations, 'access', _143 => _143.projects, 'access', _144 => _144[context.projectName], 'optionalAccess', _145 => _145.root])) {
|
|
2482
2540
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
2483
2541
|
}
|
|
2484
2542
|
await build2({
|
|
2485
2543
|
...options,
|
|
2486
|
-
projectRoot: _optionalChain([context, 'access',
|
|
2544
|
+
projectRoot: _optionalChain([context, 'access', _146 => _146.projectsConfigurations, 'access', _147 => _147.projects, 'optionalAccess', _148 => _148[context.projectName], 'access', _149 => _149.root]),
|
|
2487
2545
|
name: context.projectName,
|
|
2488
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
2546
|
+
sourceRoot: _optionalChain([context, 'access', _150 => _150.projectsConfigurations, 'access', _151 => _151.projects, 'optionalAccess', _152 => _152[context.projectName], 'optionalAccess', _153 => _153.sourceRoot]),
|
|
2489
2547
|
format: options.format,
|
|
2490
2548
|
platform: options.format
|
|
2491
2549
|
});
|
|
@@ -2528,7 +2586,7 @@ var _esbuildwhy = require('@size-limit/esbuild-why'); var _esbuildwhy2 = _intero
|
|
|
2528
2586
|
var _file = require('@size-limit/file'); var _file2 = _interopRequireDefault(_file);
|
|
2529
2587
|
var _sizelimit = require('size-limit'); var _sizelimit2 = _interopRequireDefault(_sizelimit);
|
|
2530
2588
|
async function sizeLimitExecutorFn(options, context, config) {
|
|
2531
|
-
if (!_optionalChain([context, 'optionalAccess',
|
|
2589
|
+
if (!_optionalChain([context, 'optionalAccess', _154 => _154.projectName]) || !_optionalChain([context, 'access', _155 => _155.projectsConfigurations, 'optionalAccess', _156 => _156.projects]) || !context.projectsConfigurations.projects[context.projectName]) {
|
|
2532
2590
|
throw new Error("The Size-Limit process failed because the context is not valid. Please run this command from a workspace.");
|
|
2533
2591
|
}
|
|
2534
2592
|
writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
|
|
@@ -2537,7 +2595,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
2537
2595
|
_esbuild3.default,
|
|
2538
2596
|
_esbuildwhy2.default
|
|
2539
2597
|
], {
|
|
2540
|
-
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access',
|
|
2598
|
+
checks: _nullishCoalesce(_nullishCoalesce(options.entry, () => ( _optionalChain([context, 'access', _157 => _157.projectsConfigurations, 'access', _158 => _158.projects, 'access', _159 => _159[context.projectName], 'optionalAccess', _160 => _160.sourceRoot]))), () => ( _devkit.joinPathFragments.call(void 0, _nullishCoalesce(_optionalChain([context, 'access', _161 => _161.projectsConfigurations, 'access', _162 => _162.projects, 'access', _163 => _163[context.projectName], 'optionalAccess', _164 => _164.root]), () => ( "./")), "src")))
|
|
2541
2599
|
}).then((result) => {
|
|
2542
2600
|
writeInfo(`\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`, config);
|
|
2543
2601
|
});
|
|
@@ -2596,7 +2654,7 @@ var executor_default8 = withRunExecutor("Typia runtime validation generator", ty
|
|
|
2596
2654
|
var _jiti = require('jiti');
|
|
2597
2655
|
async function unbuildExecutorFn(options, context, config) {
|
|
2598
2656
|
writeInfo("\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
2599
|
-
if (!_optionalChain([context, 'access',
|
|
2657
|
+
if (!_optionalChain([context, 'access', _165 => _165.projectsConfigurations, 'optionalAccess', _166 => _166.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
2600
2658
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace root directory.");
|
|
2601
2659
|
}
|
|
2602
2660
|
if (!context.projectsConfigurations.projects[context.projectName].root) {
|
|
@@ -2808,15 +2866,15 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2808
2866
|
_devkit.addProjectConfiguration.call(void 0, tree, normalized.name, projectConfig);
|
|
2809
2867
|
let repository = {
|
|
2810
2868
|
type: "github",
|
|
2811
|
-
url: _optionalChain([config, 'optionalAccess',
|
|
2869
|
+
url: _optionalChain([config, 'optionalAccess', _167 => _167.repository]) || `https://github.com/${_optionalChain([config, 'optionalAccess', _168 => _168.organization]) || "storm-software"}/${_optionalChain([config, 'optionalAccess', _169 => _169.namespace]) || _optionalChain([config, 'optionalAccess', _170 => _170.name]) || "repository"}.git`
|
|
2812
2870
|
};
|
|
2813
2871
|
let description = options.description || "A package developed by Storm Software used to create modern, scalable web applications.";
|
|
2814
2872
|
if (tree.exists("package.json")) {
|
|
2815
2873
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2816
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2874
|
+
if (_optionalChain([packageJson, 'optionalAccess', _171 => _171.repository])) {
|
|
2817
2875
|
repository = packageJson.repository;
|
|
2818
2876
|
}
|
|
2819
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2877
|
+
if (_optionalChain([packageJson, 'optionalAccess', _172 => _172.description])) {
|
|
2820
2878
|
description = packageJson.description;
|
|
2821
2879
|
}
|
|
2822
2880
|
}
|
|
@@ -2871,9 +2929,9 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2871
2929
|
_devkit.updateJson.call(void 0, tree, "package.json", (json) => ({
|
|
2872
2930
|
...json,
|
|
2873
2931
|
pnpm: {
|
|
2874
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2932
|
+
..._optionalChain([json, 'optionalAccess', _173 => _173.pnpm]),
|
|
2875
2933
|
overrides: {
|
|
2876
|
-
..._optionalChain([json, 'optionalAccess',
|
|
2934
|
+
..._optionalChain([json, 'optionalAccess', _174 => _174.pnpm, 'optionalAccess', _175 => _175.overrides]),
|
|
2877
2935
|
[_nullishCoalesce(normalized.importPath, () => ( ""))]: "workspace:*"
|
|
2878
2936
|
}
|
|
2879
2937
|
}
|
|
@@ -2887,10 +2945,10 @@ async function typeScriptLibraryGeneratorFn(tree, options, config) {
|
|
|
2887
2945
|
]);
|
|
2888
2946
|
if (tree.exists("package.json")) {
|
|
2889
2947
|
const packageJson = _devkit.readJson.call(void 0, tree, "package.json");
|
|
2890
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2948
|
+
if (_optionalChain([packageJson, 'optionalAccess', _176 => _176.repository])) {
|
|
2891
2949
|
repository = packageJson.repository;
|
|
2892
2950
|
}
|
|
2893
|
-
if (_optionalChain([packageJson, 'optionalAccess',
|
|
2951
|
+
if (_optionalChain([packageJson, 'optionalAccess', _177 => _177.description])) {
|
|
2894
2952
|
description = packageJson.description;
|
|
2895
2953
|
}
|
|
2896
2954
|
}
|
|
@@ -2938,24 +2996,24 @@ _chunk3GQAWCBQjs.__name.call(void 0, getOutputPath, "getOutputPath");
|
|
|
2938
2996
|
function createProjectTsConfigJson(tree, options) {
|
|
2939
2997
|
const tsconfig = {
|
|
2940
2998
|
extends: options.rootProject ? void 0 : _js.getRelativePathToRootTsConfig.call(void 0, tree, options.projectRoot),
|
|
2941
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
2999
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _178 => _178.tsconfigOptions]), () => ( {})),
|
|
2942
3000
|
compilerOptions: {
|
|
2943
3001
|
...options.rootProject ? _js.tsConfigBaseOptions : {},
|
|
2944
3002
|
outDir: joinPaths(_devkit.offsetFromRoot.call(void 0, options.projectRoot), "dist/out-tsc"),
|
|
2945
3003
|
noEmit: true,
|
|
2946
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3004
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _179 => _179.tsconfigOptions, 'optionalAccess', _180 => _180.compilerOptions]), () => ( {}))
|
|
2947
3005
|
},
|
|
2948
3006
|
files: [
|
|
2949
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3007
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _181 => _181.tsconfigOptions, 'optionalAccess', _182 => _182.files]), () => ( []))
|
|
2950
3008
|
],
|
|
2951
3009
|
include: [
|
|
2952
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3010
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _183 => _183.tsconfigOptions, 'optionalAccess', _184 => _184.include]), () => ( [])),
|
|
2953
3011
|
"src/**/*.ts",
|
|
2954
3012
|
"src/**/*.js",
|
|
2955
3013
|
"bin/**/*"
|
|
2956
3014
|
],
|
|
2957
3015
|
exclude: [
|
|
2958
|
-
..._nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
3016
|
+
..._nullishCoalesce(_optionalChain([options, 'optionalAccess', _185 => _185.tsconfigOptions, 'optionalAccess', _186 => _186.exclude]), () => ( [])),
|
|
2959
3017
|
"jest.config.ts",
|
|
2960
3018
|
"src/**/*.spec.ts",
|
|
2961
3019
|
"src/**/*.test.ts"
|
|
@@ -2966,8 +3024,8 @@ function createProjectTsConfigJson(tree, options) {
|
|
|
2966
3024
|
_chunk3GQAWCBQjs.__name.call(void 0, createProjectTsConfigJson, "createProjectTsConfigJson");
|
|
2967
3025
|
async function normalizeOptions(tree, options, config) {
|
|
2968
3026
|
let importPath = options.importPath;
|
|
2969
|
-
if (!importPath && _optionalChain([config, 'optionalAccess',
|
|
2970
|
-
importPath = `@${_optionalChain([config, 'optionalAccess',
|
|
3027
|
+
if (!importPath && _optionalChain([config, 'optionalAccess', _187 => _187.namespace])) {
|
|
3028
|
+
importPath = `@${_optionalChain([config, 'optionalAccess', _188 => _188.namespace])}/${options.name}`;
|
|
2971
3029
|
}
|
|
2972
3030
|
if (options.publishable) {
|
|
2973
3031
|
if (!importPath) {
|
|
@@ -3099,7 +3157,7 @@ async function configSchemaGeneratorFn(tree, options, config) {
|
|
|
3099
3157
|
name: "StormWorkspaceConfiguration"
|
|
3100
3158
|
});
|
|
3101
3159
|
writeTrace(jsonSchema, config);
|
|
3102
|
-
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess',
|
|
3160
|
+
const outputPath = options.outputFile.replaceAll("{workspaceRoot}", "").replaceAll(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _189 => _189.workspaceRoot]), () => ( findWorkspaceRoot())), _optionalChain([options, 'access', _190 => _190.outputFile, 'optionalAccess', _191 => _191.startsWith, 'call', _192 => _192("./")]) ? "" : "./");
|
|
3103
3161
|
writeTrace(`\u{1F4DD} Writing Storm Configuration JSON Schema to "${outputPath}"`, config);
|
|
3104
3162
|
_devkit.writeJson.call(void 0, tree, outputPath, jsonSchema, {
|
|
3105
3163
|
spaces: 2
|
|
@@ -3360,7 +3418,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
3360
3418
|
};
|
|
3361
3419
|
return json;
|
|
3362
3420
|
});
|
|
3363
|
-
_devkit.generateFiles.call(void 0, tree,
|
|
3421
|
+
_devkit.generateFiles.call(void 0, tree, path4.join(__dirname, "files"), projectRoot, {
|
|
3364
3422
|
...options,
|
|
3365
3423
|
pnpmVersion,
|
|
3366
3424
|
nodeVersion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk776G4NJYjs = require('./chunk-776G4NJY.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/up/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunk776G4NJYjs.withPulumiExecutor.call(void 0, "up", (options) => [
|
|
7
7
|
"--suppress-progress",
|
|
8
8
|
options.stack && `--stack=${options.stack}`,
|
|
9
9
|
options.skipPreview && "--skip-preview",
|