@storm-software/workspace-tools 1.267.8 → 1.267.10
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-WFJXCLAO.js → chunk-3KSB2RUX.js} +168 -110
- package/dist/{chunk-HVXQ3TPV.mjs → chunk-75YODCF7.mjs} +164 -106
- package/dist/executors.js +9 -9
- package/dist/executors.mjs +10 -10
- package/dist/index.js +9 -9
- package/dist/index.mjs +10 -10
- package/dist/src/executors/esbuild/executor.js +2 -2
- package/dist/src/executors/esbuild/executor.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Workspace Tools
|
|
4
4
|
|
|
5
|
+
## [1.267.10](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.267.10) (2025-04-29)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Regenerate README markdown files
|
|
10
|
+
([a85b80f6d](https://github.com/storm-software/storm-ops/commit/a85b80f6d))
|
|
11
|
+
|
|
12
|
+
## [1.267.9](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.267.9) (2025-04-29)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- **esbuild:** Remove unused modules from package
|
|
17
|
+
([e3dc467c8](https://github.com/storm-software/storm-ops/commit/e3dc467c8))
|
|
18
|
+
|
|
19
|
+
### Miscellaneous
|
|
20
|
+
|
|
21
|
+
- **monorepo:** Regenerate README markdown files
|
|
22
|
+
([c12ea4b7b](https://github.com/storm-software/storm-ops/commit/c12ea4b7b))
|
|
23
|
+
|
|
5
24
|
## [1.267.8](https://github.com/storm-software/storm-ops/releases/tag/workspace-tools%401.267.8) (2025-04-29)
|
|
6
25
|
|
|
7
26
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -24,7 +24,8 @@ var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
|
|
|
24
24
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
25
25
|
|
|
26
26
|
// ../esbuild/src/build.ts
|
|
27
|
-
var
|
|
27
|
+
var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
|
|
28
|
+
var _globby = require('globby');
|
|
28
29
|
|
|
29
30
|
// ../build-tools/src/config.ts
|
|
30
31
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
@@ -46,7 +47,7 @@ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
|
46
47
|
var _resolve2 = require('resolve'); var _resolve3 = _interopRequireDefault(_resolve2);
|
|
47
48
|
|
|
48
49
|
// ../build-tools/src/plugins/type-definitions.ts
|
|
49
|
-
|
|
50
|
+
var _devkit = require('@nx/devkit');
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
// ../build-tools/src/utilities/copy-assets.ts
|
|
@@ -245,16 +246,17 @@ var getEnv = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (builder, opti
|
|
|
245
246
|
// ../build-tools/src/utilities/task-graph.ts
|
|
246
247
|
var _createtaskgraph = require('nx/src/tasks-runner/create-task-graph');
|
|
247
248
|
|
|
248
|
-
// ../esbuild/src/
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
249
|
+
// ../esbuild/src/assets.ts
|
|
250
|
+
async function copyBuildAssets(context) {
|
|
251
|
+
if (_optionalChain([context, 'access', _24 => _24.result, 'optionalAccess', _25 => _25.errors, 'access', _26 => _26.length]) === 0) {
|
|
252
|
+
_chunkG4QFSE5Bjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
|
|
253
|
+
const stopwatch = _chunkG4QFSE5Bjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
254
|
+
await copyAssets(context.workspaceConfig, _nullishCoalesce(context.options.assets, () => ( [])), context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
|
|
255
|
+
stopwatch();
|
|
256
|
+
}
|
|
257
|
+
return context;
|
|
258
|
+
}
|
|
259
|
+
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
258
260
|
|
|
259
261
|
// ../esbuild/src/clean.ts
|
|
260
262
|
|
|
@@ -266,6 +268,13 @@ async function cleanDirectories(directory) {
|
|
|
266
268
|
}
|
|
267
269
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanDirectories, "cleanDirectories");
|
|
268
270
|
|
|
271
|
+
// ../esbuild/src/context.ts
|
|
272
|
+
|
|
273
|
+
var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
|
|
277
|
+
|
|
269
278
|
// ../esbuild/src/config.ts
|
|
270
279
|
var DEFAULT_BUILD_OPTIONS = {
|
|
271
280
|
assets: [],
|
|
@@ -311,97 +320,51 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
311
320
|
}
|
|
312
321
|
};
|
|
313
322
|
|
|
314
|
-
// ../esbuild/src/plugins/
|
|
323
|
+
// ../esbuild/src/plugins/resolve-paths.ts
|
|
315
324
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
"
|
|
338
|
-
// these are indirectly used by build
|
|
339
|
-
"buffer"
|
|
340
|
-
];
|
|
341
|
-
var missingIgnore = [
|
|
342
|
-
".prisma",
|
|
343
|
-
"@prisma/client",
|
|
344
|
-
"ts-toolbelt"
|
|
345
|
-
];
|
|
346
|
-
var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bundle) => ({
|
|
347
|
-
name: "storm:deps-check",
|
|
325
|
+
function resolvePathsConfig(options, cwd) {
|
|
326
|
+
if (_optionalChain([options, 'optionalAccess', _27 => _27.compilerOptions, 'optionalAccess', _28 => _28.paths])) {
|
|
327
|
+
const paths = Object.entries(options.compilerOptions.paths);
|
|
328
|
+
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
329
|
+
return [
|
|
330
|
+
key,
|
|
331
|
+
paths2.map((v) => _path2.default.resolve(cwd, v))
|
|
332
|
+
];
|
|
333
|
+
});
|
|
334
|
+
return Object.fromEntries(resolvedPaths);
|
|
335
|
+
}
|
|
336
|
+
if (options.extends) {
|
|
337
|
+
const extendsPath = _path2.default.resolve(cwd, options.extends);
|
|
338
|
+
const extendsDir = _path2.default.dirname(extendsPath);
|
|
339
|
+
const extendsConfig = _chunk3GQAWCBQjs.__require.call(void 0, extendsPath);
|
|
340
|
+
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
341
|
+
}
|
|
342
|
+
return [];
|
|
343
|
+
}
|
|
344
|
+
_chunk3GQAWCBQjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
345
|
+
var resolvePathsPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (context) => ({
|
|
346
|
+
name: "storm:resolve-paths",
|
|
348
347
|
setup(build3) {
|
|
349
|
-
const
|
|
350
|
-
const
|
|
351
|
-
const
|
|
352
|
-
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
353
|
-
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
354
|
-
const dependencies = [
|
|
355
|
-
...regDependencies,
|
|
356
|
-
...bundle ? devDependencies : []
|
|
357
|
-
];
|
|
358
|
-
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
359
|
-
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
348
|
+
const parentTsConfig = build3.initialOptions.tsconfig ? _chunk3GQAWCBQjs.__require.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, build3.initialOptions.tsconfig)) : _chunk3GQAWCBQjs.__require.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
349
|
+
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
|
|
350
|
+
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
360
351
|
build3.onResolve({
|
|
361
|
-
filter:
|
|
352
|
+
filter: packagesRegex
|
|
362
353
|
}, (args) => {
|
|
363
|
-
if (
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}
|
|
368
|
-
const [pkg] = args.path.split("/");
|
|
369
|
-
collectedDependencies.add(pkg);
|
|
370
|
-
}
|
|
354
|
+
if (_optionalChain([build3, 'access', _29 => _29.initialOptions, 'access', _30 => _30.external, 'optionalAccess', _31 => _31.includes, 'call', _32 => _32(args.path)])) {
|
|
355
|
+
return {
|
|
356
|
+
path: args.path,
|
|
357
|
+
external: true
|
|
358
|
+
};
|
|
371
359
|
}
|
|
372
360
|
return {
|
|
373
|
-
|
|
361
|
+
path: `${resolvedTsPaths[args.path][0]}/index.ts`
|
|
374
362
|
};
|
|
375
363
|
});
|
|
376
|
-
build3.onEnd(() => {
|
|
377
|
-
const unusedDependencies = [
|
|
378
|
-
...dependencies
|
|
379
|
-
].filter((dep) => {
|
|
380
|
-
return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
|
|
381
|
-
});
|
|
382
|
-
const missingDependencies = [
|
|
383
|
-
...collectedDependencies
|
|
384
|
-
].filter((dep) => {
|
|
385
|
-
return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
|
|
386
|
-
});
|
|
387
|
-
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
388
|
-
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
389
|
-
});
|
|
390
|
-
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
391
|
-
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
392
|
-
});
|
|
393
|
-
_chunkG4QFSE5Bjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
394
|
-
_chunkG4QFSE5Bjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
395
|
-
if (filteredMissingDeps.length > 0) {
|
|
396
|
-
throw new Error(`Missing dependencies detected - please install them:
|
|
397
|
-
${JSON.stringify(filteredMissingDeps)}
|
|
398
|
-
`);
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
364
|
}
|
|
402
|
-
}), "
|
|
365
|
+
}), "resolvePathsPlugin");
|
|
403
366
|
|
|
404
|
-
// ../esbuild/src/
|
|
367
|
+
// ../esbuild/src/context.ts
|
|
405
368
|
async function resolveContext(userOptions) {
|
|
406
369
|
const projectRoot = userOptions.projectRoot;
|
|
407
370
|
const workspaceRoot = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
|
|
@@ -424,7 +387,7 @@ async function resolveContext(userOptions) {
|
|
|
424
387
|
const projectJson = JSON.parse(projectJsonFile);
|
|
425
388
|
const projectName = projectJson.name || userOptions.name;
|
|
426
389
|
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
427
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess',
|
|
390
|
+
if (!_optionalChain([projectConfigurations, 'optionalAccess', _33 => _33.projects, 'optionalAccess', _34 => _34[projectName]])) {
|
|
428
391
|
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.");
|
|
429
392
|
}
|
|
430
393
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
@@ -455,7 +418,7 @@ async function resolveContext(userOptions) {
|
|
|
455
418
|
}
|
|
456
419
|
};
|
|
457
420
|
stopwatch();
|
|
458
|
-
|
|
421
|
+
const context = {
|
|
459
422
|
options: resolvedOptions,
|
|
460
423
|
clean: userOptions.clean !== false,
|
|
461
424
|
workspaceConfig,
|
|
@@ -466,8 +429,18 @@ async function resolveContext(userOptions) {
|
|
|
466
429
|
outputPath: resolvedOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceConfig.workspaceRoot, "dist", resolvedOptions.projectRoot),
|
|
467
430
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
468
431
|
};
|
|
432
|
+
context.options.esbuildPlugins = [
|
|
433
|
+
resolvePathsPlugin(context),
|
|
434
|
+
..._nullishCoalesce(context.options.esbuildPlugins, () => ( []))
|
|
435
|
+
];
|
|
436
|
+
return context;
|
|
469
437
|
}
|
|
470
438
|
_chunk3GQAWCBQjs.__name.call(void 0, resolveContext, "resolveContext");
|
|
439
|
+
|
|
440
|
+
// ../esbuild/src/package-json.ts
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
471
444
|
async function generatePackageJson(context) {
|
|
472
445
|
if (context.options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, context.options.projectRoot, "package.json"))) {
|
|
473
446
|
_chunkG4QFSE5Bjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
@@ -566,6 +539,99 @@ async function generatePackageJson(context) {
|
|
|
566
539
|
return context;
|
|
567
540
|
}
|
|
568
541
|
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
542
|
+
|
|
543
|
+
// ../esbuild/src/plugins/deps-check.ts
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
var unusedIgnore = [
|
|
547
|
+
// these are our dev dependencies
|
|
548
|
+
/@types\/.*?/,
|
|
549
|
+
/@typescript-eslint.*?/,
|
|
550
|
+
/eslint.*?/,
|
|
551
|
+
"esbuild",
|
|
552
|
+
"husky",
|
|
553
|
+
"is-ci",
|
|
554
|
+
"lint-staged",
|
|
555
|
+
"prettier",
|
|
556
|
+
"typescript",
|
|
557
|
+
"ts-node",
|
|
558
|
+
"ts-jest",
|
|
559
|
+
"@swc/core",
|
|
560
|
+
"@swc/jest",
|
|
561
|
+
"jest",
|
|
562
|
+
// these are missing 3rd party deps
|
|
563
|
+
"spdx-exceptions",
|
|
564
|
+
"spdx-license-ids",
|
|
565
|
+
// type-only, so it is not detected
|
|
566
|
+
"ts-toolbelt",
|
|
567
|
+
// these are indirectly used by build
|
|
568
|
+
"buffer"
|
|
569
|
+
];
|
|
570
|
+
var missingIgnore = [
|
|
571
|
+
".prisma",
|
|
572
|
+
"@prisma/client",
|
|
573
|
+
"ts-toolbelt"
|
|
574
|
+
];
|
|
575
|
+
var depsCheckPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (bundle) => ({
|
|
576
|
+
name: "storm:deps-check",
|
|
577
|
+
setup(build3) {
|
|
578
|
+
const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
|
|
579
|
+
const pkgContents = _chunk3GQAWCBQjs.__require.call(void 0, pkgJsonPath);
|
|
580
|
+
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
581
|
+
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
582
|
+
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
583
|
+
const dependencies = [
|
|
584
|
+
...regDependencies,
|
|
585
|
+
...bundle ? devDependencies : []
|
|
586
|
+
];
|
|
587
|
+
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
588
|
+
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
589
|
+
build3.onResolve({
|
|
590
|
+
filter: onlyPackages
|
|
591
|
+
}, (args) => {
|
|
592
|
+
if (args.importer.includes(process.cwd())) {
|
|
593
|
+
if (args.path[0] === "@") {
|
|
594
|
+
const [org, pkg] = args.path.split("/");
|
|
595
|
+
collectedDependencies.add(`${org}/${pkg}`);
|
|
596
|
+
} else {
|
|
597
|
+
const [pkg] = args.path.split("/");
|
|
598
|
+
collectedDependencies.add(pkg);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
return {
|
|
602
|
+
external: true
|
|
603
|
+
};
|
|
604
|
+
});
|
|
605
|
+
build3.onEnd(() => {
|
|
606
|
+
const unusedDependencies = [
|
|
607
|
+
...dependencies
|
|
608
|
+
].filter((dep) => {
|
|
609
|
+
return !collectedDependencies.has(dep) || _module.builtinModules.includes(dep);
|
|
610
|
+
});
|
|
611
|
+
const missingDependencies = [
|
|
612
|
+
...collectedDependencies
|
|
613
|
+
].filter((dep) => {
|
|
614
|
+
return !dependencies.includes(dep) && !_module.builtinModules.includes(dep);
|
|
615
|
+
});
|
|
616
|
+
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
617
|
+
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
618
|
+
});
|
|
619
|
+
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
620
|
+
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
621
|
+
});
|
|
622
|
+
_chunkG4QFSE5Bjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
623
|
+
_chunkG4QFSE5Bjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
624
|
+
if (filteredMissingDeps.length > 0) {
|
|
625
|
+
throw new Error(`Missing dependencies detected - please install them:
|
|
626
|
+
${JSON.stringify(filteredMissingDeps)}
|
|
627
|
+
`);
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
}), "depsCheckPlugin");
|
|
632
|
+
|
|
633
|
+
// ../esbuild/src/tsup.ts
|
|
634
|
+
var _tsup = require('tsup');
|
|
569
635
|
async function executeTsup(context) {
|
|
570
636
|
_chunkG4QFSE5Bjs.writeDebug.call(void 0, ` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig);
|
|
571
637
|
const stopwatch = _chunkG4QFSE5Bjs.getStopwatch.call(void 0, `${context.options.name} build`);
|
|
@@ -578,23 +644,15 @@ async function executeTsup(context) {
|
|
|
578
644
|
return context;
|
|
579
645
|
}
|
|
580
646
|
_chunk3GQAWCBQjs.__name.call(void 0, executeTsup, "executeTsup");
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
_chunkG4QFSE5Bjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
|
|
584
|
-
const stopwatch = _chunkG4QFSE5Bjs.getStopwatch.call(void 0, `${context.options.name} asset copy`);
|
|
585
|
-
await copyAssets(context.workspaceConfig, _nullishCoalesce(context.options.assets, () => ( [])), context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
|
|
586
|
-
stopwatch();
|
|
587
|
-
}
|
|
588
|
-
return context;
|
|
589
|
-
}
|
|
590
|
-
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
647
|
+
|
|
648
|
+
// ../esbuild/src/build.ts
|
|
591
649
|
async function reportResults(context) {
|
|
592
|
-
if (_optionalChain([context, 'access',
|
|
650
|
+
if (_optionalChain([context, 'access', _35 => _35.result, 'optionalAccess', _36 => _36.errors, 'access', _37 => _37.length]) === 0) {
|
|
593
651
|
if (context.result.warnings.length > 0) {
|
|
594
652
|
_chunkG4QFSE5Bjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`, context.workspaceConfig);
|
|
595
653
|
}
|
|
596
654
|
_chunkG4QFSE5Bjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context.options.name} build completed successfully`, context.workspaceConfig);
|
|
597
|
-
} else if (_optionalChain([context, 'access',
|
|
655
|
+
} else if (_optionalChain([context, 'access', _38 => _38.result, 'optionalAccess', _39 => _39.errors]) && _optionalChain([context, 'access', _40 => _40.result, 'optionalAccess', _41 => _41.errors, 'access', _42 => _42.length]) > 0) {
|
|
598
656
|
_chunkG4QFSE5Bjs.writeError.call(void 0, ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`, context.workspaceConfig);
|
|
599
657
|
throw new Error(`The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`);
|
|
600
658
|
}
|
|
@@ -672,14 +730,14 @@ _chunk3GQAWCBQjs.__name.call(void 0, build2, "build");
|
|
|
672
730
|
// src/executors/esbuild/executor.ts
|
|
673
731
|
async function esbuildExecutorFn(options, context, config) {
|
|
674
732
|
_chunkG4QFSE5Bjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm ESBuild executor on the workspace", config);
|
|
675
|
-
if (!_optionalChain([context, 'access',
|
|
733
|
+
if (!_optionalChain([context, 'access', _43 => _43.projectsConfigurations, 'optionalAccess', _44 => _44.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _45 => _45.projectsConfigurations, 'access', _46 => _46.projects, 'access', _47 => _47[context.projectName], 'optionalAccess', _48 => _48.root])) {
|
|
676
734
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
677
735
|
}
|
|
678
736
|
await build2({
|
|
679
737
|
...options,
|
|
680
|
-
projectRoot: _optionalChain([context, 'access',
|
|
738
|
+
projectRoot: _optionalChain([context, 'access', _49 => _49.projectsConfigurations, 'access', _50 => _50.projects, 'optionalAccess', _51 => _51[context.projectName], 'access', _52 => _52.root]),
|
|
681
739
|
name: context.projectName,
|
|
682
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
740
|
+
sourceRoot: _optionalChain([context, 'access', _53 => _53.projectsConfigurations, 'access', _54 => _54.projects, 'optionalAccess', _55 => _55[context.projectName], 'optionalAccess', _56 => _56.sourceRoot]),
|
|
683
741
|
format: options.format,
|
|
684
742
|
platform: options.format
|
|
685
743
|
});
|
|
@@ -24,7 +24,8 @@ import {
|
|
|
24
24
|
} from "./chunk-NM2XRTN6.mjs";
|
|
25
25
|
|
|
26
26
|
// ../esbuild/src/build.ts
|
|
27
|
-
import
|
|
27
|
+
import * as esbuild from "esbuild";
|
|
28
|
+
import { globbySync } from "globby";
|
|
28
29
|
|
|
29
30
|
// ../build-tools/src/config.ts
|
|
30
31
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
@@ -245,16 +246,17 @@ import { readFile as readFile3 } from "node:fs/promises";
|
|
|
245
246
|
// ../build-tools/src/utilities/task-graph.ts
|
|
246
247
|
import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
|
|
247
248
|
|
|
248
|
-
// ../esbuild/src/
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
249
|
+
// ../esbuild/src/assets.ts
|
|
250
|
+
async function copyBuildAssets(context) {
|
|
251
|
+
if (context.result?.errors.length === 0) {
|
|
252
|
+
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
|
|
253
|
+
const stopwatch = getStopwatch(`${context.options.name} asset copy`);
|
|
254
|
+
await copyAssets(context.workspaceConfig, context.options.assets ?? [], context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
|
|
255
|
+
stopwatch();
|
|
256
|
+
}
|
|
257
|
+
return context;
|
|
258
|
+
}
|
|
259
|
+
__name(copyBuildAssets, "copyBuildAssets");
|
|
258
260
|
|
|
259
261
|
// ../esbuild/src/clean.ts
|
|
260
262
|
import { rm } from "node:fs/promises";
|
|
@@ -266,6 +268,13 @@ async function cleanDirectories(directory) {
|
|
|
266
268
|
}
|
|
267
269
|
__name(cleanDirectories, "cleanDirectories");
|
|
268
270
|
|
|
271
|
+
// ../esbuild/src/context.ts
|
|
272
|
+
import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2 } from "@nx/devkit";
|
|
273
|
+
import defu from "defu";
|
|
274
|
+
import { existsSync as existsSync3 } from "node:fs";
|
|
275
|
+
import hf from "node:fs/promises";
|
|
276
|
+
import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
|
|
277
|
+
|
|
269
278
|
// ../esbuild/src/config.ts
|
|
270
279
|
var DEFAULT_BUILD_OPTIONS = {
|
|
271
280
|
assets: [],
|
|
@@ -311,97 +320,51 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
311
320
|
}
|
|
312
321
|
};
|
|
313
322
|
|
|
314
|
-
// ../esbuild/src/plugins/
|
|
315
|
-
import { builtinModules as builtinModules2 } from "node:module";
|
|
323
|
+
// ../esbuild/src/plugins/resolve-paths.ts
|
|
316
324
|
import path2 from "node:path";
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
"buffer"
|
|
340
|
-
];
|
|
341
|
-
var missingIgnore = [
|
|
342
|
-
".prisma",
|
|
343
|
-
"@prisma/client",
|
|
344
|
-
"ts-toolbelt"
|
|
345
|
-
];
|
|
346
|
-
var depsCheckPlugin = /* @__PURE__ */ __name((bundle) => ({
|
|
347
|
-
name: "storm:deps-check",
|
|
325
|
+
function resolvePathsConfig(options, cwd) {
|
|
326
|
+
if (options?.compilerOptions?.paths) {
|
|
327
|
+
const paths = Object.entries(options.compilerOptions.paths);
|
|
328
|
+
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
329
|
+
return [
|
|
330
|
+
key,
|
|
331
|
+
paths2.map((v) => path2.resolve(cwd, v))
|
|
332
|
+
];
|
|
333
|
+
});
|
|
334
|
+
return Object.fromEntries(resolvedPaths);
|
|
335
|
+
}
|
|
336
|
+
if (options.extends) {
|
|
337
|
+
const extendsPath = path2.resolve(cwd, options.extends);
|
|
338
|
+
const extendsDir = path2.dirname(extendsPath);
|
|
339
|
+
const extendsConfig = __require(extendsPath);
|
|
340
|
+
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
341
|
+
}
|
|
342
|
+
return [];
|
|
343
|
+
}
|
|
344
|
+
__name(resolvePathsConfig, "resolvePathsConfig");
|
|
345
|
+
var resolvePathsPlugin = /* @__PURE__ */ __name((context) => ({
|
|
346
|
+
name: "storm:resolve-paths",
|
|
348
347
|
setup(build3) {
|
|
349
|
-
const
|
|
350
|
-
const
|
|
351
|
-
const
|
|
352
|
-
const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
|
|
353
|
-
const peerDependencies = Object.keys(pkgContents["peerDependencies"] ?? {});
|
|
354
|
-
const dependencies = [
|
|
355
|
-
...regDependencies,
|
|
356
|
-
...bundle ? devDependencies : []
|
|
357
|
-
];
|
|
358
|
-
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
359
|
-
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
348
|
+
const parentTsConfig = build3.initialOptions.tsconfig ? __require(joinPaths(context.workspaceConfig.workspaceRoot, build3.initialOptions.tsconfig)) : __require(joinPaths(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
349
|
+
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot);
|
|
350
|
+
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
360
351
|
build3.onResolve({
|
|
361
|
-
filter:
|
|
352
|
+
filter: packagesRegex
|
|
362
353
|
}, (args) => {
|
|
363
|
-
if (
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}
|
|
368
|
-
const [pkg] = args.path.split("/");
|
|
369
|
-
collectedDependencies.add(pkg);
|
|
370
|
-
}
|
|
354
|
+
if (build3.initialOptions.external?.includes(args.path)) {
|
|
355
|
+
return {
|
|
356
|
+
path: args.path,
|
|
357
|
+
external: true
|
|
358
|
+
};
|
|
371
359
|
}
|
|
372
360
|
return {
|
|
373
|
-
|
|
361
|
+
path: `${resolvedTsPaths[args.path][0]}/index.ts`
|
|
374
362
|
};
|
|
375
363
|
});
|
|
376
|
-
build3.onEnd(() => {
|
|
377
|
-
const unusedDependencies = [
|
|
378
|
-
...dependencies
|
|
379
|
-
].filter((dep) => {
|
|
380
|
-
return !collectedDependencies.has(dep) || builtinModules2.includes(dep);
|
|
381
|
-
});
|
|
382
|
-
const missingDependencies = [
|
|
383
|
-
...collectedDependencies
|
|
384
|
-
].filter((dep) => {
|
|
385
|
-
return !dependencies.includes(dep) && !builtinModules2.includes(dep);
|
|
386
|
-
});
|
|
387
|
-
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
388
|
-
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
389
|
-
});
|
|
390
|
-
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
391
|
-
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
392
|
-
});
|
|
393
|
-
writeWarning(`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
394
|
-
writeError(`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
395
|
-
if (filteredMissingDeps.length > 0) {
|
|
396
|
-
throw new Error(`Missing dependencies detected - please install them:
|
|
397
|
-
${JSON.stringify(filteredMissingDeps)}
|
|
398
|
-
`);
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
364
|
}
|
|
402
|
-
}), "
|
|
365
|
+
}), "resolvePathsPlugin");
|
|
403
366
|
|
|
404
|
-
// ../esbuild/src/
|
|
367
|
+
// ../esbuild/src/context.ts
|
|
405
368
|
async function resolveContext(userOptions) {
|
|
406
369
|
const projectRoot = userOptions.projectRoot;
|
|
407
370
|
const workspaceRoot = findWorkspaceRoot2(projectRoot);
|
|
@@ -455,7 +418,7 @@ async function resolveContext(userOptions) {
|
|
|
455
418
|
}
|
|
456
419
|
};
|
|
457
420
|
stopwatch();
|
|
458
|
-
|
|
421
|
+
const context = {
|
|
459
422
|
options: resolvedOptions,
|
|
460
423
|
clean: userOptions.clean !== false,
|
|
461
424
|
workspaceConfig,
|
|
@@ -466,17 +429,27 @@ async function resolveContext(userOptions) {
|
|
|
466
429
|
outputPath: resolvedOptions.outputPath || joinPaths(workspaceConfig.workspaceRoot, "dist", resolvedOptions.projectRoot),
|
|
467
430
|
minify: resolvedOptions.minify || resolvedOptions.mode === "production"
|
|
468
431
|
};
|
|
432
|
+
context.options.esbuildPlugins = [
|
|
433
|
+
resolvePathsPlugin(context),
|
|
434
|
+
...context.options.esbuildPlugins ?? []
|
|
435
|
+
];
|
|
436
|
+
return context;
|
|
469
437
|
}
|
|
470
438
|
__name(resolveContext, "resolveContext");
|
|
439
|
+
|
|
440
|
+
// ../esbuild/src/package-json.ts
|
|
441
|
+
import { writeJsonFile } from "@nx/devkit";
|
|
442
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
443
|
+
import hf2 from "node:fs/promises";
|
|
471
444
|
async function generatePackageJson(context) {
|
|
472
|
-
if (context.options.generatePackageJson !== false &&
|
|
445
|
+
if (context.options.generatePackageJson !== false && existsSync4(joinPaths(context.options.projectRoot, "package.json"))) {
|
|
473
446
|
writeDebug(" \u270D\uFE0F Writing package.json file", context.workspaceConfig);
|
|
474
447
|
const stopwatch = getStopwatch("Write package.json file");
|
|
475
448
|
const packageJsonPath = joinPaths(context.options.projectRoot, "project.json");
|
|
476
|
-
if (!
|
|
449
|
+
if (!existsSync4(packageJsonPath)) {
|
|
477
450
|
throw new Error("Cannot find package.json configuration");
|
|
478
451
|
}
|
|
479
|
-
const packageJsonFile = await
|
|
452
|
+
const packageJsonFile = await hf2.readFile(joinPaths(context.workspaceConfig.workspaceRoot, context.options.projectRoot, "package.json"), "utf8");
|
|
480
453
|
let packageJson = JSON.parse(packageJsonFile);
|
|
481
454
|
if (!packageJson) {
|
|
482
455
|
throw new Error("Cannot find package.json configuration file");
|
|
@@ -566,6 +539,99 @@ async function generatePackageJson(context) {
|
|
|
566
539
|
return context;
|
|
567
540
|
}
|
|
568
541
|
__name(generatePackageJson, "generatePackageJson");
|
|
542
|
+
|
|
543
|
+
// ../esbuild/src/plugins/deps-check.ts
|
|
544
|
+
import { builtinModules as builtinModules2 } from "node:module";
|
|
545
|
+
import path3 from "node:path";
|
|
546
|
+
var unusedIgnore = [
|
|
547
|
+
// these are our dev dependencies
|
|
548
|
+
/@types\/.*?/,
|
|
549
|
+
/@typescript-eslint.*?/,
|
|
550
|
+
/eslint.*?/,
|
|
551
|
+
"esbuild",
|
|
552
|
+
"husky",
|
|
553
|
+
"is-ci",
|
|
554
|
+
"lint-staged",
|
|
555
|
+
"prettier",
|
|
556
|
+
"typescript",
|
|
557
|
+
"ts-node",
|
|
558
|
+
"ts-jest",
|
|
559
|
+
"@swc/core",
|
|
560
|
+
"@swc/jest",
|
|
561
|
+
"jest",
|
|
562
|
+
// these are missing 3rd party deps
|
|
563
|
+
"spdx-exceptions",
|
|
564
|
+
"spdx-license-ids",
|
|
565
|
+
// type-only, so it is not detected
|
|
566
|
+
"ts-toolbelt",
|
|
567
|
+
// these are indirectly used by build
|
|
568
|
+
"buffer"
|
|
569
|
+
];
|
|
570
|
+
var missingIgnore = [
|
|
571
|
+
".prisma",
|
|
572
|
+
"@prisma/client",
|
|
573
|
+
"ts-toolbelt"
|
|
574
|
+
];
|
|
575
|
+
var depsCheckPlugin = /* @__PURE__ */ __name((bundle) => ({
|
|
576
|
+
name: "storm:deps-check",
|
|
577
|
+
setup(build3) {
|
|
578
|
+
const pkgJsonPath = path3.join(process.cwd(), "package.json");
|
|
579
|
+
const pkgContents = __require(pkgJsonPath);
|
|
580
|
+
const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
|
|
581
|
+
const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
|
|
582
|
+
const peerDependencies = Object.keys(pkgContents["peerDependencies"] ?? {});
|
|
583
|
+
const dependencies = [
|
|
584
|
+
...regDependencies,
|
|
585
|
+
...bundle ? devDependencies : []
|
|
586
|
+
];
|
|
587
|
+
const collectedDependencies = /* @__PURE__ */ new Set();
|
|
588
|
+
const onlyPackages = /^[^./](?!:)|^\.[^./]|^\.\.[^/]/;
|
|
589
|
+
build3.onResolve({
|
|
590
|
+
filter: onlyPackages
|
|
591
|
+
}, (args) => {
|
|
592
|
+
if (args.importer.includes(process.cwd())) {
|
|
593
|
+
if (args.path[0] === "@") {
|
|
594
|
+
const [org, pkg] = args.path.split("/");
|
|
595
|
+
collectedDependencies.add(`${org}/${pkg}`);
|
|
596
|
+
} else {
|
|
597
|
+
const [pkg] = args.path.split("/");
|
|
598
|
+
collectedDependencies.add(pkg);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
return {
|
|
602
|
+
external: true
|
|
603
|
+
};
|
|
604
|
+
});
|
|
605
|
+
build3.onEnd(() => {
|
|
606
|
+
const unusedDependencies = [
|
|
607
|
+
...dependencies
|
|
608
|
+
].filter((dep) => {
|
|
609
|
+
return !collectedDependencies.has(dep) || builtinModules2.includes(dep);
|
|
610
|
+
});
|
|
611
|
+
const missingDependencies = [
|
|
612
|
+
...collectedDependencies
|
|
613
|
+
].filter((dep) => {
|
|
614
|
+
return !dependencies.includes(dep) && !builtinModules2.includes(dep);
|
|
615
|
+
});
|
|
616
|
+
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
617
|
+
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
618
|
+
});
|
|
619
|
+
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
620
|
+
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
621
|
+
});
|
|
622
|
+
writeWarning(`Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
623
|
+
writeError(`Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
624
|
+
if (filteredMissingDeps.length > 0) {
|
|
625
|
+
throw new Error(`Missing dependencies detected - please install them:
|
|
626
|
+
${JSON.stringify(filteredMissingDeps)}
|
|
627
|
+
`);
|
|
628
|
+
}
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
}), "depsCheckPlugin");
|
|
632
|
+
|
|
633
|
+
// ../esbuild/src/tsup.ts
|
|
634
|
+
import { build as tsup } from "tsup";
|
|
569
635
|
async function executeTsup(context) {
|
|
570
636
|
writeDebug(` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig);
|
|
571
637
|
const stopwatch = getStopwatch(`${context.options.name} build`);
|
|
@@ -578,16 +644,8 @@ async function executeTsup(context) {
|
|
|
578
644
|
return context;
|
|
579
645
|
}
|
|
580
646
|
__name(executeTsup, "executeTsup");
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
writeDebug(` \u{1F4CB} Copying asset files to output directory: ${context.outputPath}`, context.workspaceConfig);
|
|
584
|
-
const stopwatch = getStopwatch(`${context.options.name} asset copy`);
|
|
585
|
-
await copyAssets(context.workspaceConfig, context.options.assets ?? [], context.outputPath, context.options.projectRoot, context.sourceRoot, true, false);
|
|
586
|
-
stopwatch();
|
|
587
|
-
}
|
|
588
|
-
return context;
|
|
589
|
-
}
|
|
590
|
-
__name(copyBuildAssets, "copyBuildAssets");
|
|
647
|
+
|
|
648
|
+
// ../esbuild/src/build.ts
|
|
591
649
|
async function reportResults(context) {
|
|
592
650
|
if (context.result?.errors.length === 0) {
|
|
593
651
|
if (context.result.warnings.length > 0) {
|
package/dist/executors.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-7VDOGZYO.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _chunkSUQKASD7js = require('./chunk-SUQKASD7.js');
|
|
5
|
+
|
|
6
|
+
|
|
4
7
|
var _chunkOKW5O5P4js = require('./chunk-OKW5O5P4.js');
|
|
5
8
|
|
|
6
9
|
|
|
@@ -10,13 +13,16 @@ var _chunkICPUM2HSjs = require('./chunk-ICPUM2HS.js');
|
|
|
10
13
|
var _chunkYW4UN25Ujs = require('./chunk-YW4UN25U.js');
|
|
11
14
|
|
|
12
15
|
|
|
16
|
+
var _chunkHOXPAVCLjs = require('./chunk-HOXPAVCL.js');
|
|
17
|
+
|
|
18
|
+
|
|
13
19
|
var _chunkGGGO542Mjs = require('./chunk-GGGO542M.js');
|
|
14
20
|
|
|
15
21
|
|
|
16
|
-
var
|
|
22
|
+
var _chunk3KSB2RUXjs = require('./chunk-3KSB2RUX.js');
|
|
17
23
|
|
|
18
24
|
|
|
19
|
-
var
|
|
25
|
+
var _chunkB3DVFXXDjs = require('./chunk-B3DVFXXD.js');
|
|
20
26
|
|
|
21
27
|
|
|
22
28
|
var _chunkRUKOOSWLjs = require('./chunk-RUKOOSWL.js');
|
|
@@ -26,12 +32,6 @@ var _chunkNSCWEC2Sjs = require('./chunk-NSCWEC2S.js');
|
|
|
26
32
|
|
|
27
33
|
|
|
28
34
|
var _chunkTET4GF3Djs = require('./chunk-TET4GF3D.js');
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var _chunkHOXPAVCLjs = require('./chunk-HOXPAVCL.js');
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var _chunkB3DVFXXDjs = require('./chunk-B3DVFXXD.js');
|
|
35
35
|
require('./chunk-CUPARBOS.js');
|
|
36
36
|
require('./chunk-ULBTYC2B.js');
|
|
37
37
|
require('./chunk-ZMFVKBRM.js');
|
|
@@ -53,4 +53,4 @@ require('./chunk-3GQAWCBQ.js');
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
exports.LARGE_BUFFER = _chunkSUQKASD7js.LARGE_BUFFER; exports.cargoBuildExecutor = _chunkB3DVFXXDjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkRUKOOSWLjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkNSCWEC2Sjs.cargoClippyExecutor; exports.cargoDocExecutor = _chunkTET4GF3Djs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkHOXPAVCLjs.cargoFormatExecutor; exports.esbuildExecutorFn =
|
|
56
|
+
exports.LARGE_BUFFER = _chunkSUQKASD7js.LARGE_BUFFER; exports.cargoBuildExecutor = _chunkB3DVFXXDjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkRUKOOSWLjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkNSCWEC2Sjs.cargoClippyExecutor; exports.cargoDocExecutor = _chunkTET4GF3Djs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkHOXPAVCLjs.cargoFormatExecutor; exports.esbuildExecutorFn = _chunk3KSB2RUXjs.esbuildExecutorFn; exports.getRegistryVersion = _chunkGGGO542Mjs.getRegistryVersion; exports.sizeLimitExecutorFn = _chunkOKW5O5P4js.sizeLimitExecutorFn; exports.typiaExecutorFn = _chunkICPUM2HSjs.typiaExecutorFn; exports.unbuildExecutorFn = _chunkYW4UN25Ujs.unbuildExecutorFn;
|
package/dist/executors.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import "./chunk-BLX5SLPC.mjs";
|
|
2
|
+
import {
|
|
3
|
+
LARGE_BUFFER
|
|
4
|
+
} from "./chunk-4HDB3WW5.mjs";
|
|
2
5
|
import {
|
|
3
6
|
sizeLimitExecutorFn
|
|
4
7
|
} from "./chunk-S3G464AA.mjs";
|
|
@@ -8,15 +11,18 @@ import {
|
|
|
8
11
|
import {
|
|
9
12
|
unbuildExecutorFn
|
|
10
13
|
} from "./chunk-G6XMOJQG.mjs";
|
|
14
|
+
import {
|
|
15
|
+
cargoFormatExecutor
|
|
16
|
+
} from "./chunk-G2TMNVHB.mjs";
|
|
11
17
|
import {
|
|
12
18
|
getRegistryVersion
|
|
13
19
|
} from "./chunk-RXEFIIKB.mjs";
|
|
14
|
-
import {
|
|
15
|
-
LARGE_BUFFER
|
|
16
|
-
} from "./chunk-4HDB3WW5.mjs";
|
|
17
20
|
import {
|
|
18
21
|
esbuildExecutorFn
|
|
19
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-75YODCF7.mjs";
|
|
23
|
+
import {
|
|
24
|
+
cargoBuildExecutor
|
|
25
|
+
} from "./chunk-I6DRAC2X.mjs";
|
|
20
26
|
import {
|
|
21
27
|
cargoCheckExecutor
|
|
22
28
|
} from "./chunk-VZ7BJIVG.mjs";
|
|
@@ -26,12 +32,6 @@ import {
|
|
|
26
32
|
import {
|
|
27
33
|
cargoDocExecutor
|
|
28
34
|
} from "./chunk-7MPHOPRU.mjs";
|
|
29
|
-
import {
|
|
30
|
-
cargoFormatExecutor
|
|
31
|
-
} from "./chunk-G2TMNVHB.mjs";
|
|
32
|
-
import {
|
|
33
|
-
cargoBuildExecutor
|
|
34
|
-
} from "./chunk-I6DRAC2X.mjs";
|
|
35
35
|
import "./chunk-L2YJA3M7.mjs";
|
|
36
36
|
import "./chunk-RN622QNW.mjs";
|
|
37
37
|
import "./chunk-Z3XRWGHF.mjs";
|
package/dist/index.js
CHANGED
|
@@ -48,6 +48,9 @@ var _chunkGKL4BY2Yjs = require('./chunk-GKL4BY2Y.js');
|
|
|
48
48
|
require('./chunk-7VDOGZYO.js');
|
|
49
49
|
|
|
50
50
|
|
|
51
|
+
var _chunkSUQKASD7js = require('./chunk-SUQKASD7.js');
|
|
52
|
+
|
|
53
|
+
|
|
51
54
|
var _chunkOKW5O5P4js = require('./chunk-OKW5O5P4.js');
|
|
52
55
|
|
|
53
56
|
|
|
@@ -57,13 +60,16 @@ var _chunkICPUM2HSjs = require('./chunk-ICPUM2HS.js');
|
|
|
57
60
|
var _chunkYW4UN25Ujs = require('./chunk-YW4UN25U.js');
|
|
58
61
|
|
|
59
62
|
|
|
63
|
+
var _chunkHOXPAVCLjs = require('./chunk-HOXPAVCL.js');
|
|
64
|
+
|
|
65
|
+
|
|
60
66
|
var _chunkGGGO542Mjs = require('./chunk-GGGO542M.js');
|
|
61
67
|
|
|
62
68
|
|
|
63
|
-
var
|
|
69
|
+
var _chunk3KSB2RUXjs = require('./chunk-3KSB2RUX.js');
|
|
64
70
|
|
|
65
71
|
|
|
66
|
-
var
|
|
72
|
+
var _chunkB3DVFXXDjs = require('./chunk-B3DVFXXD.js');
|
|
67
73
|
|
|
68
74
|
|
|
69
75
|
var _chunkRUKOOSWLjs = require('./chunk-RUKOOSWL.js');
|
|
@@ -75,12 +81,6 @@ var _chunkNSCWEC2Sjs = require('./chunk-NSCWEC2S.js');
|
|
|
75
81
|
var _chunkTET4GF3Djs = require('./chunk-TET4GF3D.js');
|
|
76
82
|
|
|
77
83
|
|
|
78
|
-
var _chunkHOXPAVCLjs = require('./chunk-HOXPAVCL.js');
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
var _chunkB3DVFXXDjs = require('./chunk-B3DVFXXD.js');
|
|
82
|
-
|
|
83
|
-
|
|
84
84
|
var _chunkCUPARBOSjs = require('./chunk-CUPARBOS.js');
|
|
85
85
|
|
|
86
86
|
|
|
@@ -282,4 +282,4 @@ require('./chunk-3GQAWCBQ.js');
|
|
|
282
282
|
|
|
283
283
|
|
|
284
284
|
|
|
285
|
-
exports.INVALID_CARGO_ARGS = _chunkULBTYC2Bjs.INVALID_CARGO_ARGS; exports.LARGE_BUFFER = _chunkSUQKASD7js.LARGE_BUFFER; exports.LOCK_FILES = _chunkPK2SUBWIjs.LOCK_FILES; exports.NPM_LOCK_FILE = _chunkPK2SUBWIjs.NPM_LOCK_FILE; exports.NPM_LOCK_PATH = _chunkPK2SUBWIjs.NPM_LOCK_PATH; exports.PNPM_LOCK_FILE = _chunkPK2SUBWIjs.PNPM_LOCK_FILE; exports.PNPM_LOCK_PATH = _chunkPK2SUBWIjs.PNPM_LOCK_PATH; exports.PackageManagerTypes = _chunk7AXFMX2Tjs.PackageManagerTypes; exports.ProjectTagConstants = _chunk7YRW5HNXjs.ProjectTagConstants; exports.ProjectTagDistStyleValue = _chunk4NOLUAQNjs.ProjectTagDistStyleValue; exports.ProjectTagLanguageValue = _chunk4NOLUAQNjs.ProjectTagLanguageValue; exports.ProjectTagPlatformValue = _chunk4NOLUAQNjs.ProjectTagPlatformValue; exports.ProjectTagRegistryValue = _chunk4NOLUAQNjs.ProjectTagRegistryValue; exports.ProjectTagTypeValue = _chunk4NOLUAQNjs.ProjectTagTypeValue; exports.ProjectTagVariant = _chunk4NOLUAQNjs.ProjectTagVariant; exports.YARN_LOCK_FILE = _chunkPK2SUBWIjs.YARN_LOCK_FILE; exports.YARN_LOCK_PATH = _chunkPK2SUBWIjs.YARN_LOCK_PATH; exports.addPluginProjectTag = _chunk7YRW5HNXjs.addPluginProjectTag; exports.addProjectTag = _chunk7YRW5HNXjs.addProjectTag; exports.applyWorkspaceExecutorTokens = _chunkAC5SI4YZjs.applyWorkspaceExecutorTokens; exports.baseExecutorSchema = _chunkI734UVDTjs.base_executor_untyped_default; exports.baseGeneratorSchema = _chunk7CJRMBX3js.base_generator_untyped_default; exports.browserLibraryGeneratorFn = _chunkOQPX75CGjs.browserLibraryGeneratorFn; exports.buildCargoCommand = _chunkULBTYC2Bjs.buildCargoCommand; exports.cargoBaseExecutorSchema = _chunk6QO3KMZAjs.cargo_base_executor_untyped_default; exports.cargoBuildExecutor = _chunkB3DVFXXDjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkRUKOOSWLjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkNSCWEC2Sjs.cargoClippyExecutor; exports.cargoCommand = _chunkULBTYC2Bjs.cargoCommand; exports.cargoCommandSync = _chunkULBTYC2Bjs.cargoCommandSync; exports.cargoDocExecutor = _chunkTET4GF3Djs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkHOXPAVCLjs.cargoFormatExecutor; exports.cargoMetadata = _chunkULBTYC2Bjs.cargoMetadata; exports.cargoRunCommand = _chunkULBTYC2Bjs.cargoRunCommand; exports.childProcess = _chunkULBTYC2Bjs.childProcess; exports.configSchemaGeneratorFn = _chunk6JJB5AYAjs.configSchemaGeneratorFn; exports.createCliOptions = _chunkDHGZTMNDjs.createCliOptions; exports.createProjectTsConfigJson = _chunkRBU35LQWjs.createProjectTsConfigJson; exports.esbuildExecutorFn =
|
|
285
|
+
exports.INVALID_CARGO_ARGS = _chunkULBTYC2Bjs.INVALID_CARGO_ARGS; exports.LARGE_BUFFER = _chunkSUQKASD7js.LARGE_BUFFER; exports.LOCK_FILES = _chunkPK2SUBWIjs.LOCK_FILES; exports.NPM_LOCK_FILE = _chunkPK2SUBWIjs.NPM_LOCK_FILE; exports.NPM_LOCK_PATH = _chunkPK2SUBWIjs.NPM_LOCK_PATH; exports.PNPM_LOCK_FILE = _chunkPK2SUBWIjs.PNPM_LOCK_FILE; exports.PNPM_LOCK_PATH = _chunkPK2SUBWIjs.PNPM_LOCK_PATH; exports.PackageManagerTypes = _chunk7AXFMX2Tjs.PackageManagerTypes; exports.ProjectTagConstants = _chunk7YRW5HNXjs.ProjectTagConstants; exports.ProjectTagDistStyleValue = _chunk4NOLUAQNjs.ProjectTagDistStyleValue; exports.ProjectTagLanguageValue = _chunk4NOLUAQNjs.ProjectTagLanguageValue; exports.ProjectTagPlatformValue = _chunk4NOLUAQNjs.ProjectTagPlatformValue; exports.ProjectTagRegistryValue = _chunk4NOLUAQNjs.ProjectTagRegistryValue; exports.ProjectTagTypeValue = _chunk4NOLUAQNjs.ProjectTagTypeValue; exports.ProjectTagVariant = _chunk4NOLUAQNjs.ProjectTagVariant; exports.YARN_LOCK_FILE = _chunkPK2SUBWIjs.YARN_LOCK_FILE; exports.YARN_LOCK_PATH = _chunkPK2SUBWIjs.YARN_LOCK_PATH; exports.addPluginProjectTag = _chunk7YRW5HNXjs.addPluginProjectTag; exports.addProjectTag = _chunk7YRW5HNXjs.addProjectTag; exports.applyWorkspaceExecutorTokens = _chunkAC5SI4YZjs.applyWorkspaceExecutorTokens; exports.baseExecutorSchema = _chunkI734UVDTjs.base_executor_untyped_default; exports.baseGeneratorSchema = _chunk7CJRMBX3js.base_generator_untyped_default; exports.browserLibraryGeneratorFn = _chunkOQPX75CGjs.browserLibraryGeneratorFn; exports.buildCargoCommand = _chunkULBTYC2Bjs.buildCargoCommand; exports.cargoBaseExecutorSchema = _chunk6QO3KMZAjs.cargo_base_executor_untyped_default; exports.cargoBuildExecutor = _chunkB3DVFXXDjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkRUKOOSWLjs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkNSCWEC2Sjs.cargoClippyExecutor; exports.cargoCommand = _chunkULBTYC2Bjs.cargoCommand; exports.cargoCommandSync = _chunkULBTYC2Bjs.cargoCommandSync; exports.cargoDocExecutor = _chunkTET4GF3Djs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkHOXPAVCLjs.cargoFormatExecutor; exports.cargoMetadata = _chunkULBTYC2Bjs.cargoMetadata; exports.cargoRunCommand = _chunkULBTYC2Bjs.cargoRunCommand; exports.childProcess = _chunkULBTYC2Bjs.childProcess; exports.configSchemaGeneratorFn = _chunk6JJB5AYAjs.configSchemaGeneratorFn; exports.createCliOptions = _chunkDHGZTMNDjs.createCliOptions; exports.createProjectTsConfigJson = _chunkRBU35LQWjs.createProjectTsConfigJson; exports.esbuildExecutorFn = _chunk3KSB2RUXjs.esbuildExecutorFn; exports.eslintVersion = _chunkHI4G4OOGjs.eslintVersion; exports.formatProjectTag = _chunk7YRW5HNXjs.formatProjectTag; exports.getLockFileDependencies = _chunkPK2SUBWIjs.getLockFileDependencies; exports.getLockFileName = _chunkPK2SUBWIjs.getLockFileName; exports.getLockFileNodes = _chunkPK2SUBWIjs.getLockFileNodes; exports.getOutputPath = _chunkRBU35LQWjs.getOutputPath; exports.getPackageInfo = _chunk7AXFMX2Tjs.getPackageInfo; exports.getProjectConfigFromProjectJsonPath = _chunkUF6KFXG5js.getProjectConfigFromProjectJsonPath; exports.getProjectConfigFromProjectRoot = _chunkUF6KFXG5js.getProjectConfigFromProjectRoot; exports.getProjectConfiguration = _chunkGKL4BY2Yjs.getProjectConfiguration; exports.getProjectConfigurations = _chunkGKL4BY2Yjs.getProjectConfigurations; exports.getProjectPlatform = _chunkUF6KFXG5js.getProjectPlatform; exports.getProjectRoot = _chunkUF6KFXG5js.getProjectRoot; exports.getProjectTag = _chunk7YRW5HNXjs.getProjectTag; exports.getRegistryVersion = _chunkGGGO542Mjs.getRegistryVersion; exports.getTypiaTransform = _chunkXITP2BX2js.getTypiaTransform; exports.hasProjectTag = _chunk7YRW5HNXjs.hasProjectTag; exports.initGenerator = _chunk3IZ3O4OKjs.initGenerator; exports.isEqualProjectTag = _chunk7YRW5HNXjs.isEqualProjectTag; exports.isExternal = _chunkULBTYC2Bjs.isExternal; exports.lintStagedVersion = _chunkHI4G4OOGjs.lintStagedVersion; exports.lockFileExists = _chunkPK2SUBWIjs.lockFileExists; exports.modifyCargoNestedTable = _chunkZMFVKBRMjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunkZMFVKBRMjs.modifyCargoTable; exports.neutralLibraryGeneratorFn = _chunk7PRHEOCTjs.neutralLibraryGeneratorFn; exports.nodeLibraryGeneratorFn = _chunk7NNHBZC5js.nodeLibraryGeneratorFn; exports.nodeVersion = _chunkHI4G4OOGjs.nodeVersion; exports.normalizeOptions = _chunkRBU35LQWjs.normalizeOptions; exports.nxVersion = _chunkHI4G4OOGjs.nxVersion; exports.parseCargoToml = _chunkZMFVKBRMjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunkZMFVKBRMjs.parseCargoTomlWithTree; exports.pnpmCatalogUpdate = _chunkCUPARBOSjs.pnpmCatalogUpdate; exports.pnpmVersion = _chunkHI4G4OOGjs.pnpmVersion; exports.presetGeneratorFn = _chunkP4OVFIT6js.presetGeneratorFn; exports.prettierPackageJsonVersion = _chunkHI4G4OOGjs.prettierPackageJsonVersion; exports.prettierPrismaVersion = _chunkHI4G4OOGjs.prettierPrismaVersion; exports.prettierVersion = _chunkHI4G4OOGjs.prettierVersion; exports.releaseVersionGeneratorFn = _chunk4Y6B6JDHjs.releaseVersionGeneratorFn; exports.runProcess = _chunkULBTYC2Bjs.runProcess; exports.semanticReleaseVersion = _chunkHI4G4OOGjs.semanticReleaseVersion; exports.setDefaultProjectTags = _chunk7YRW5HNXjs.setDefaultProjectTags; exports.sizeLimitExecutorFn = _chunkOKW5O5P4js.sizeLimitExecutorFn; exports.stringifyCargoToml = _chunkZMFVKBRMjs.stringifyCargoToml; exports.swcCliVersion = _chunkHI4G4OOGjs.swcCliVersion; exports.swcCoreVersion = _chunkHI4G4OOGjs.swcCoreVersion; exports.swcHelpersVersion = _chunkHI4G4OOGjs.swcHelpersVersion; exports.swcNodeVersion = _chunkHI4G4OOGjs.swcNodeVersion; exports.tsLibVersion = _chunkHI4G4OOGjs.tsLibVersion; exports.tsupVersion = _chunkHI4G4OOGjs.tsupVersion; exports.typeScriptLibraryGeneratorFn = _chunkRBU35LQWjs.typeScriptLibraryGeneratorFn; exports.typesNodeVersion = _chunkHI4G4OOGjs.typesNodeVersion; exports.typescriptBuildExecutorSchema = _chunkIWCQL3AQjs.typescript_build_executor_untyped_default; exports.typescriptLibraryGeneratorSchema = _chunk7O34DHUGjs.typescript_library_generator_untyped_default; exports.typescriptVersion = _chunkHI4G4OOGjs.typescriptVersion; exports.typiaExecutorFn = _chunkICPUM2HSjs.typiaExecutorFn; exports.unbuildExecutorFn = _chunkYW4UN25Ujs.unbuildExecutorFn; exports.verdaccioVersion = _chunkHI4G4OOGjs.verdaccioVersion; exports.withRunExecutor = _chunk6CGAYKQLjs.withRunExecutor; exports.withRunGenerator = _chunkZ4NKRWWJjs.withRunGenerator;
|
package/dist/index.mjs
CHANGED
|
@@ -46,6 +46,9 @@ import {
|
|
|
46
46
|
getProjectConfigurations
|
|
47
47
|
} from "./chunk-MPP5KSJW.mjs";
|
|
48
48
|
import "./chunk-BLX5SLPC.mjs";
|
|
49
|
+
import {
|
|
50
|
+
LARGE_BUFFER
|
|
51
|
+
} from "./chunk-4HDB3WW5.mjs";
|
|
49
52
|
import {
|
|
50
53
|
sizeLimitExecutorFn
|
|
51
54
|
} from "./chunk-S3G464AA.mjs";
|
|
@@ -55,15 +58,18 @@ import {
|
|
|
55
58
|
import {
|
|
56
59
|
unbuildExecutorFn
|
|
57
60
|
} from "./chunk-G6XMOJQG.mjs";
|
|
61
|
+
import {
|
|
62
|
+
cargoFormatExecutor
|
|
63
|
+
} from "./chunk-G2TMNVHB.mjs";
|
|
58
64
|
import {
|
|
59
65
|
getRegistryVersion
|
|
60
66
|
} from "./chunk-RXEFIIKB.mjs";
|
|
61
|
-
import {
|
|
62
|
-
LARGE_BUFFER
|
|
63
|
-
} from "./chunk-4HDB3WW5.mjs";
|
|
64
67
|
import {
|
|
65
68
|
esbuildExecutorFn
|
|
66
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-75YODCF7.mjs";
|
|
70
|
+
import {
|
|
71
|
+
cargoBuildExecutor
|
|
72
|
+
} from "./chunk-I6DRAC2X.mjs";
|
|
67
73
|
import {
|
|
68
74
|
cargoCheckExecutor
|
|
69
75
|
} from "./chunk-VZ7BJIVG.mjs";
|
|
@@ -73,12 +79,6 @@ import {
|
|
|
73
79
|
import {
|
|
74
80
|
cargoDocExecutor
|
|
75
81
|
} from "./chunk-7MPHOPRU.mjs";
|
|
76
|
-
import {
|
|
77
|
-
cargoFormatExecutor
|
|
78
|
-
} from "./chunk-G2TMNVHB.mjs";
|
|
79
|
-
import {
|
|
80
|
-
cargoBuildExecutor
|
|
81
|
-
} from "./chunk-I6DRAC2X.mjs";
|
|
82
82
|
import {
|
|
83
83
|
pnpmCatalogUpdate
|
|
84
84
|
} from "./chunk-L2YJA3M7.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk3KSB2RUXjs = require('../../../chunk-3KSB2RUX.js');
|
|
5
5
|
require('../../../chunk-6CGAYKQL.js');
|
|
6
6
|
require('../../../chunk-UALZJZUK.js');
|
|
7
7
|
require('../../../chunk-G4QFSE5B.js');
|
|
@@ -11,4 +11,4 @@ require('../../../chunk-3GQAWCBQ.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.default =
|
|
14
|
+
exports.default = _chunk3KSB2RUXjs.executor_default; exports.esbuildExecutorFn = _chunk3KSB2RUXjs.esbuildExecutorFn;
|
package/package.json
CHANGED