@storm-software/workspace-tools 1.263.0 → 1.263.2
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 +12 -0
- package/README.md +1 -1
- package/dist/{chunk-G6GGPUG7.mjs → chunk-267XQYEI.mjs} +4 -4
- package/dist/{chunk-2WTKQCPA.mjs → chunk-2BPV2XV2.mjs} +1 -1
- package/dist/{chunk-GCN3NUF6.mjs → chunk-3FTFBAIV.mjs} +1 -1
- package/dist/{chunk-OQ32KFGA.mjs → chunk-3PWCELL5.mjs} +2 -2
- package/dist/{chunk-IT3ENPW3.mjs → chunk-3RLLSZI3.mjs} +3 -3
- package/dist/{chunk-K7OAIP34.js → chunk-55IQXVOQ.js} +9 -9
- package/dist/{chunk-XEHJM6RO.mjs → chunk-5CZXBNEE.mjs} +1 -1
- package/dist/{chunk-VOIYJ67D.mjs → chunk-5DWBECCN.mjs} +4 -4
- package/dist/{chunk-GPOYI6OO.mjs → chunk-77KNPIOO.mjs} +3 -3
- package/dist/{chunk-4PDLEPIC.mjs → chunk-7ENGREV2.mjs} +1 -1
- package/dist/{chunk-MNV4E744.mjs → chunk-7W5P2GIE.mjs} +5 -5
- package/dist/{chunk-IGJN2SBZ.mjs → chunk-AD4BVP7F.mjs} +2 -2
- package/dist/{chunk-HASYGI6W.mjs → chunk-ATIBREWM.mjs} +1 -1
- package/dist/{chunk-5JPH5VCU.mjs → chunk-AWKIWCLR.mjs} +2 -2
- package/dist/{chunk-GRU4UEE7.mjs → chunk-BMNXBEWE.mjs} +3 -3
- package/dist/{chunk-BV32SZPV.mjs → chunk-EVQJFIA7.mjs} +3 -3
- package/dist/{chunk-3I74ESKM.mjs → chunk-FIJJTQKT.mjs} +3 -3
- package/dist/{chunk-2PKZRCQJ.mjs → chunk-FR3YQN55.mjs} +2 -2
- package/dist/{chunk-U6DRC3BT.mjs → chunk-G6VTRIV6.mjs} +4 -4
- package/dist/{chunk-STVTZJIX.mjs → chunk-GKFEPODO.mjs} +3 -3
- package/dist/{chunk-6YMGUA6X.mjs → chunk-H5VTYV4U.mjs} +2 -2
- package/dist/{chunk-J53HKGFM.mjs → chunk-HUVBVDJ7.mjs} +1 -1
- package/dist/{chunk-ESRAKU7Y.js → chunk-IFSORSAN.js} +4 -4
- package/dist/{chunk-L6CV744X.mjs → chunk-IXZ3PGBP.mjs} +3 -3
- package/dist/{chunk-GHJGKUBW.mjs → chunk-JIAGNEII.mjs} +1 -1
- package/dist/{chunk-H4RWKANW.mjs → chunk-KTJM6G4K.mjs} +1 -1
- package/dist/{chunk-TAJU54DW.mjs → chunk-LZ4WXOF5.mjs} +3 -3
- package/dist/{chunk-RGZAGFUD.mjs → chunk-MDK5L6VS.mjs} +4 -4
- package/dist/{chunk-3ABED6KX.mjs → chunk-NZAGHP4Q.mjs} +4 -4
- package/dist/{chunk-KMFZVYDQ.mjs → chunk-NZBJ5BJT.mjs} +28 -16
- package/dist/{chunk-W2WAWCCV.js → chunk-OAQP7HGX.js} +33 -21
- package/dist/{chunk-R2BMSX6J.mjs → chunk-RLG36VMZ.mjs} +3 -3
- package/dist/{chunk-XIS3TY42.mjs → chunk-RMNEVFW4.mjs} +4 -4
- package/dist/{chunk-A7OTLU7I.mjs → chunk-TLRZHFVN.mjs} +8 -8
- package/dist/{chunk-3XR4FSEA.mjs → chunk-V4QUJRZH.mjs} +4 -4
- package/dist/{chunk-AOOHLS72.mjs → chunk-VJJBBVYU.mjs} +3 -3
- package/dist/{chunk-OBUTMEEY.mjs → chunk-XB6ATVWM.mjs} +3 -3
- package/dist/{chunk-OVLYU6HE.mjs → chunk-XBRJIYCS.mjs} +2 -2
- package/dist/{chunk-HY43JWZ7.mjs → chunk-XDVGK64G.mjs} +2 -2
- package/dist/{chunk-RULS5ZOT.mjs → chunk-YBDZ7EWU.mjs} +2 -2
- package/dist/{chunk-BGSGM2KX.mjs → chunk-YPUNRGTW.mjs} +3 -3
- package/dist/{chunk-SF477J3B.mjs → chunk-YZLAY7R4.mjs} +3 -3
- package/dist/{chunk-WJTTZD3M.mjs → chunk-ZETTXDZO.mjs} +1 -1
- package/dist/{chunk-DGI7OQYG.mjs → chunk-ZPN57TH7.mjs} +4 -4
- package/dist/{chunk-B5OPGMAP.mjs → chunk-ZUYLHO4U.mjs} +1 -1
- package/dist/executors.js +4 -4
- package/dist/executors.mjs +22 -22
- package/dist/generators.js +2 -2
- package/dist/generators.mjs +18 -18
- package/dist/index.js +6 -6
- package/dist/index.mjs +42 -42
- package/dist/src/base/base-executor.mjs +6 -6
- package/dist/src/base/base-executor.untyped.mjs +1 -1
- package/dist/src/base/base-generator.mjs +6 -6
- package/dist/src/base/base-generator.untyped.mjs +1 -1
- package/dist/src/base/cargo-base-executor.untyped.mjs +1 -1
- package/dist/src/base/index.mjs +10 -10
- package/dist/src/base/typescript-build-executor.untyped.mjs +2 -2
- package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
- package/dist/src/executors/cargo-build/executor.mjs +8 -8
- package/dist/src/executors/cargo-build/untyped.mjs +1 -1
- package/dist/src/executors/cargo-check/executor.mjs +8 -8
- package/dist/src/executors/cargo-check/untyped.mjs +1 -1
- package/dist/src/executors/cargo-clippy/executor.mjs +8 -8
- package/dist/src/executors/cargo-clippy/untyped.mjs +1 -1
- package/dist/src/executors/cargo-doc/executor.mjs +8 -8
- package/dist/src/executors/cargo-doc/untyped.mjs +1 -1
- package/dist/src/executors/cargo-format/executor.mjs +8 -8
- package/dist/src/executors/cargo-format/untyped.mjs +1 -1
- package/dist/src/executors/cargo-publish/executor.mjs +3 -3
- package/dist/src/executors/cargo-publish/untyped.mjs +1 -1
- package/dist/src/executors/clean-package/executor.mjs +6 -6
- package/dist/src/executors/clean-package/untyped.mjs +1 -1
- package/dist/src/executors/esbuild/executor.js +3 -3
- package/dist/src/executors/esbuild/executor.mjs +8 -8
- package/dist/src/executors/esbuild/untyped.mjs +2 -2
- package/dist/src/executors/npm-publish/executor.mjs +4 -4
- package/dist/src/executors/npm-publish/untyped.mjs +1 -1
- package/dist/src/executors/size-limit/executor.mjs +7 -7
- package/dist/src/executors/size-limit/untyped.mjs +1 -1
- package/dist/src/executors/tsdown/executor.js +3 -3
- package/dist/src/executors/tsdown/executor.mjs +8 -8
- package/dist/src/executors/tsdown/untyped.mjs +2 -2
- package/dist/src/executors/typia/executor.mjs +7 -7
- package/dist/src/executors/typia/untyped.mjs +1 -1
- package/dist/src/executors/unbuild/executor.mjs +7 -7
- package/dist/src/executors/unbuild/untyped.mjs +2 -2
- package/dist/src/generators/browser-library/generator.mjs +9 -9
- package/dist/src/generators/browser-library/untyped.mjs +1 -1
- package/dist/src/generators/config-schema/generator.mjs +7 -7
- package/dist/src/generators/config-schema/untyped.mjs +1 -1
- package/dist/src/generators/init/init.mjs +2 -2
- package/dist/src/generators/init/untyped.mjs +1 -1
- package/dist/src/generators/neutral-library/generator.mjs +9 -9
- package/dist/src/generators/neutral-library/untyped.mjs +1 -1
- package/dist/src/generators/node-library/generator.mjs +9 -9
- package/dist/src/generators/node-library/untyped.mjs +1 -1
- package/dist/src/generators/preset/generator.mjs +7 -7
- package/dist/src/generators/preset/untyped.mjs +1 -1
- package/dist/src/generators/release-version/generator.mjs +6 -6
- package/dist/src/generators/release-version/untyped.mjs +1 -1
- package/dist/src/plugins/rust/cargo-toml.mjs +4 -4
- package/dist/src/plugins/rust/index.mjs +4 -4
- package/dist/src/plugins/typescript/index.mjs +4 -4
- package/dist/src/plugins/typescript/project-config.mjs +4 -4
- package/dist/src/plugins/typescript/tsdown.mjs +2 -2
- package/dist/src/plugins/typescript/tsup.mjs +2 -2
- package/dist/src/plugins/typescript/untyped-schema.mjs +2 -2
- package/dist/src/types.mjs +1 -1
- package/dist/src/utils/apply-workspace-tokens.mjs +4 -4
- package/dist/src/utils/cargo.mjs +2 -2
- package/dist/src/utils/create-cli-options.mjs +2 -2
- package/dist/src/utils/get-project-configurations.mjs +4 -4
- package/dist/src/utils/index.mjs +14 -14
- package/dist/src/utils/lock-file.mjs +2 -2
- package/dist/src/utils/package-helpers.mjs +4 -4
- package/dist/src/utils/plugin-helpers.mjs +3 -3
- package/dist/src/utils/pnpm-deps-update.mjs +3 -3
- package/dist/src/utils/project-tags.mjs +2 -2
- package/dist/src/utils/toml.mjs +2 -2
- package/dist/src/utils/typia-transform.mjs +2 -2
- package/dist/src/utils/versions.mjs +1 -1
- package/package.json +1 -1
|
@@ -2,15 +2,14 @@ import {
|
|
|
2
2
|
DEFAULT_COMPILED_BANNER,
|
|
3
3
|
DEFAULT_TARGET,
|
|
4
4
|
addPackageDependencies,
|
|
5
|
-
addPackageJsonExport,
|
|
6
5
|
addWorkspacePackageJsonFields,
|
|
7
6
|
copyAssets,
|
|
8
7
|
getEntryPoints,
|
|
9
8
|
getEnv
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TLRZHFVN.mjs";
|
|
11
10
|
import {
|
|
12
11
|
withRunExecutor
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5DWBECCN.mjs";
|
|
14
13
|
import {
|
|
15
14
|
formatLogMessage,
|
|
16
15
|
getConfig,
|
|
@@ -23,15 +22,15 @@ import {
|
|
|
23
22
|
writeSuccess,
|
|
24
23
|
writeTrace,
|
|
25
24
|
writeWarning
|
|
26
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IXZ3PGBP.mjs";
|
|
27
26
|
import {
|
|
28
27
|
joinPaths
|
|
29
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ATIBREWM.mjs";
|
|
30
29
|
import {
|
|
31
30
|
__dirname,
|
|
32
31
|
__name,
|
|
33
32
|
__require
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
35
34
|
|
|
36
35
|
// ../esbuild/src/build.ts
|
|
37
36
|
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph, writeJsonFile } from "@nx/devkit";
|
|
@@ -514,6 +513,18 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
514
513
|
bundle: true,
|
|
515
514
|
clean: true,
|
|
516
515
|
debug: false,
|
|
516
|
+
resolveExtensions: [
|
|
517
|
+
".tsx",
|
|
518
|
+
".ts",
|
|
519
|
+
".cts",
|
|
520
|
+
".mts",
|
|
521
|
+
".jsx",
|
|
522
|
+
".js",
|
|
523
|
+
".cjs",
|
|
524
|
+
".mjs",
|
|
525
|
+
".css",
|
|
526
|
+
".json"
|
|
527
|
+
],
|
|
517
528
|
loader: {
|
|
518
529
|
".aac": "file",
|
|
519
530
|
".css": "file",
|
|
@@ -748,16 +759,12 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
748
759
|
"module",
|
|
749
760
|
"main"
|
|
750
761
|
],
|
|
751
|
-
resolveExtensions: [
|
|
752
|
-
".ts",
|
|
753
|
-
".js",
|
|
754
|
-
".node"
|
|
755
|
-
],
|
|
756
762
|
...userOptions,
|
|
757
763
|
tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
758
764
|
format: options.format || "cjs",
|
|
759
765
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", userOptions.emitOnAll === true),
|
|
760
766
|
outdir: userOptions.outputPath || joinPaths("dist", projectRoot),
|
|
767
|
+
distDir: userOptions.distDir || "dist",
|
|
761
768
|
plugins: [],
|
|
762
769
|
name: userOptions.name || projectName,
|
|
763
770
|
projectConfigurations,
|
|
@@ -829,7 +836,7 @@ async function generatePackageJson(context2) {
|
|
|
829
836
|
packageJson = await addWorkspacePackageJsonFields(context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
830
837
|
packageJson.exports ??= {};
|
|
831
838
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
832
|
-
packageJson.exports["."] ??=
|
|
839
|
+
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
833
840
|
let entryPoints = [
|
|
834
841
|
{
|
|
835
842
|
in: "./src/index.ts",
|
|
@@ -847,12 +854,15 @@ async function generatePackageJson(context2) {
|
|
|
847
854
|
const split = entryPoint.out.split(".");
|
|
848
855
|
split.pop();
|
|
849
856
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
850
|
-
packageJson.exports[`./${entry}`] ??=
|
|
857
|
+
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
851
858
|
}
|
|
852
859
|
}
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
860
|
+
if (context2.options.format === "esm") {
|
|
861
|
+
packageJson.module = packageJson.type === "module" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.mjs`;
|
|
862
|
+
} else {
|
|
863
|
+
packageJson.main = packageJson.type === "commonjs" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.cjs`;
|
|
864
|
+
}
|
|
865
|
+
packageJson.types = `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.d.ts`;
|
|
856
866
|
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
857
867
|
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
858
868
|
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
@@ -894,6 +904,7 @@ async function executeEsBuild(context2) {
|
|
|
894
904
|
const options = {
|
|
895
905
|
...context2.options
|
|
896
906
|
};
|
|
907
|
+
options.outdir = joinPaths(context2.options.outdir, context2.options.distDir);
|
|
897
908
|
delete options.env;
|
|
898
909
|
delete options.name;
|
|
899
910
|
delete options.assets;
|
|
@@ -904,6 +915,7 @@ async function executeEsBuild(context2) {
|
|
|
904
915
|
delete options.debug;
|
|
905
916
|
delete options.generatePackageJson;
|
|
906
917
|
delete options.emitOnAll;
|
|
918
|
+
delete options.distDir;
|
|
907
919
|
delete options.includeSrc;
|
|
908
920
|
delete options.verbose;
|
|
909
921
|
delete options.projectRoot;
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
var _chunkESRAKU7Yjs = require('./chunk-ESRAKU7Y.js');
|
|
9
|
+
var _chunkIFSORSANjs = require('./chunk-IFSORSAN.js');
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
var _chunkFGMOZZ77js = require('./chunk-FGMOZZ77.js');
|
|
@@ -513,6 +512,18 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
513
512
|
bundle: true,
|
|
514
513
|
clean: true,
|
|
515
514
|
debug: false,
|
|
515
|
+
resolveExtensions: [
|
|
516
|
+
".tsx",
|
|
517
|
+
".ts",
|
|
518
|
+
".cts",
|
|
519
|
+
".mts",
|
|
520
|
+
".jsx",
|
|
521
|
+
".js",
|
|
522
|
+
".cjs",
|
|
523
|
+
".mjs",
|
|
524
|
+
".css",
|
|
525
|
+
".json"
|
|
526
|
+
],
|
|
516
527
|
loader: {
|
|
517
528
|
".aac": "file",
|
|
518
529
|
".css": "file",
|
|
@@ -534,7 +545,7 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
534
545
|
".woff": "file",
|
|
535
546
|
".woff2": "file"
|
|
536
547
|
},
|
|
537
|
-
banner:
|
|
548
|
+
banner: _chunkIFSORSANjs.DEFAULT_COMPILED_BANNER
|
|
538
549
|
};
|
|
539
550
|
|
|
540
551
|
// ../esbuild/src/plugins/deps-check.ts
|
|
@@ -730,12 +741,12 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
730
741
|
}
|
|
731
742
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
732
743
|
options.name ??= `${projectName}-${options.format}`;
|
|
733
|
-
options.target ??=
|
|
744
|
+
options.target ??= _chunkIFSORSANjs.DEFAULT_TARGET;
|
|
734
745
|
const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
735
746
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
736
747
|
throw new Error("Cannot find package.json configuration");
|
|
737
748
|
}
|
|
738
|
-
const env =
|
|
749
|
+
const env = _chunkIFSORSANjs.getEnv.call(void 0, "esbuild", options);
|
|
739
750
|
const result = {
|
|
740
751
|
...options,
|
|
741
752
|
config,
|
|
@@ -747,16 +758,12 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
747
758
|
"module",
|
|
748
759
|
"main"
|
|
749
760
|
],
|
|
750
|
-
resolveExtensions: [
|
|
751
|
-
".ts",
|
|
752
|
-
".js",
|
|
753
|
-
".node"
|
|
754
|
-
],
|
|
755
761
|
...userOptions,
|
|
756
762
|
tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
757
763
|
format: options.format || "cjs",
|
|
758
|
-
entryPoints: await
|
|
764
|
+
entryPoints: await _chunkIFSORSANjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), userOptions.emitOnAll === true),
|
|
759
765
|
outdir: userOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, "dist", projectRoot),
|
|
766
|
+
distDir: userOptions.distDir || "dist",
|
|
760
767
|
plugins: [],
|
|
761
768
|
name: userOptions.name || projectName,
|
|
762
769
|
projectConfigurations,
|
|
@@ -777,8 +784,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
777
784
|
watch: userOptions.watch === true,
|
|
778
785
|
footer: userOptions.footer,
|
|
779
786
|
banner: {
|
|
780
|
-
js: options.banner ||
|
|
781
|
-
css: options.banner ||
|
|
787
|
+
js: options.banner || _chunkIFSORSANjs.DEFAULT_COMPILED_BANNER,
|
|
788
|
+
css: options.banner || _chunkIFSORSANjs.DEFAULT_COMPILED_BANNER
|
|
782
789
|
},
|
|
783
790
|
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
784
791
|
treeShaking: options.format === "esm",
|
|
@@ -824,11 +831,11 @@ async function generatePackageJson(context2) {
|
|
|
824
831
|
if (!packageJson) {
|
|
825
832
|
throw new Error("Cannot find package.json configuration file");
|
|
826
833
|
}
|
|
827
|
-
packageJson = await
|
|
828
|
-
packageJson = await
|
|
834
|
+
packageJson = await _chunkIFSORSANjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
835
|
+
packageJson = await _chunkIFSORSANjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
829
836
|
packageJson.exports ??= {};
|
|
830
837
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
831
|
-
packageJson.exports["."] ??=
|
|
838
|
+
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
832
839
|
let entryPoints = [
|
|
833
840
|
{
|
|
834
841
|
in: "./src/index.ts",
|
|
@@ -846,12 +853,15 @@ async function generatePackageJson(context2) {
|
|
|
846
853
|
const split = entryPoint.out.split(".");
|
|
847
854
|
split.pop();
|
|
848
855
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
849
|
-
packageJson.exports[`./${entry}`] ??=
|
|
856
|
+
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
850
857
|
}
|
|
851
858
|
}
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
859
|
+
if (context2.options.format === "esm") {
|
|
860
|
+
packageJson.module = packageJson.type === "module" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.mjs`;
|
|
861
|
+
} else {
|
|
862
|
+
packageJson.main = packageJson.type === "commonjs" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.cjs`;
|
|
863
|
+
}
|
|
864
|
+
packageJson.types = `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.d.ts`;
|
|
855
865
|
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
856
866
|
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
857
867
|
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
@@ -893,6 +903,7 @@ async function executeEsBuild(context2) {
|
|
|
893
903
|
const options = {
|
|
894
904
|
...context2.options
|
|
895
905
|
};
|
|
906
|
+
options.outdir = _chunkJTAXCQX6js.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
|
|
896
907
|
delete options.env;
|
|
897
908
|
delete options.name;
|
|
898
909
|
delete options.assets;
|
|
@@ -903,6 +914,7 @@ async function executeEsBuild(context2) {
|
|
|
903
914
|
delete options.debug;
|
|
904
915
|
delete options.generatePackageJson;
|
|
905
916
|
delete options.emitOnAll;
|
|
917
|
+
delete options.distDir;
|
|
906
918
|
delete options.includeSrc;
|
|
907
919
|
delete options.verbose;
|
|
908
920
|
delete options.projectRoot;
|
|
@@ -927,7 +939,7 @@ async function copyBuildAssets(context2) {
|
|
|
927
939
|
if (_optionalChain([context2, 'access', _26 => _26.result, 'optionalAccess', _27 => _27.errors, 'access', _28 => _28.length]) === 0) {
|
|
928
940
|
_chunkNG6GE2YZjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
929
941
|
const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
930
|
-
await
|
|
942
|
+
await _chunkIFSORSANjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
931
943
|
stopwatch();
|
|
932
944
|
}
|
|
933
945
|
return context2;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getProjectPlatform
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XBRJIYCS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTagConstants,
|
|
6
6
|
addProjectTag,
|
|
7
7
|
isEqualProjectTag,
|
|
8
8
|
setDefaultProjectTags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HUVBVDJ7.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
13
13
|
|
|
14
14
|
// src/plugins/typescript/project-config.ts
|
|
15
15
|
import { existsSync } from "node:fs";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YZLAY7R4.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZPN57TH7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ATIBREWM.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname,
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
15
15
|
|
|
16
16
|
// src/generators/browser-library/generator.ts
|
|
17
17
|
import { formatFiles, generateFiles, names, offsetFromRoot } from "@nx/devkit";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeDebug,
|
|
3
3
|
writeTrace
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IXZ3PGBP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findWorkspaceRoot
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FR3YQN55.mjs";
|
|
8
8
|
import {
|
|
9
9
|
correctPaths,
|
|
10
10
|
joinPaths
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ATIBREWM.mjs";
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
15
15
|
|
|
16
16
|
// ../build-tools/src/config.ts
|
|
17
|
-
var DEFAULT_COMPILED_BANNER =
|
|
18
|
-
|
|
17
|
+
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
18
|
+
*
|
|
19
19
|
* \u26A1 Built by Storm Software
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
*
|
|
21
|
+
*****************************************/
|
|
22
22
|
`;
|
|
23
23
|
var DEFAULT_ENVIRONMENT = "production";
|
|
24
24
|
var DEFAULT_TARGET = "esnext";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YZLAY7R4.mjs";
|
|
5
5
|
import {
|
|
6
6
|
typesNodeVersion
|
|
7
7
|
} from "./chunk-EK75QNMS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
withRunGenerator
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZPN57TH7.mjs";
|
|
11
11
|
import {
|
|
12
12
|
joinPaths
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ATIBREWM.mjs";
|
|
14
14
|
import {
|
|
15
15
|
__dirname,
|
|
16
16
|
__name
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
18
18
|
|
|
19
19
|
// src/generators/node-library/generator.ts
|
|
20
20
|
import { formatFiles, generateFiles, names, offsetFromRoot } from "@nx/devkit";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cargoMetadata,
|
|
3
3
|
isExternal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JIAGNEII.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ProjectTagConstants,
|
|
7
7
|
addProjectTag,
|
|
8
8
|
setDefaultProjectTags
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HUVBVDJ7.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
13
13
|
|
|
14
14
|
// src/plugins/rust/cargo-toml.ts
|
|
15
15
|
import { createNodesFromFiles, joinPathFragments, readJsonFile, workspaceRoot } from "@nx/devkit";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildCargoCommand,
|
|
3
3
|
cargoCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JIAGNEII.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunExecutor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5DWBECCN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
11
11
|
|
|
12
12
|
// src/executors/cargo-build/executor.ts
|
|
13
13
|
async function cargoBuildExecutor(options, context) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectTagConstants,
|
|
3
3
|
getProjectTag
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HUVBVDJ7.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__name
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
8
8
|
|
|
9
9
|
// src/utils/plugin-helpers.ts
|
|
10
10
|
import { readJsonFile } from "@nx/devkit";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findWorkspaceRoot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FR3YQN55.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
7
7
|
|
|
8
8
|
// src/utils/apply-workspace-tokens.ts
|
|
9
9
|
var applyWorkspaceExecutorTokens = /* @__PURE__ */ __name(async (option, tokenizerOptions) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findWorkspaceRoot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FR3YQN55.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
7
7
|
|
|
8
8
|
// src/utils/get-project-configurations.ts
|
|
9
9
|
import { retrieveProjectConfigurationsWithoutPluginInference } from "nx/src/project-graph/utils/retrieve-workspace-files";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildCargoCommand,
|
|
3
3
|
cargoCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JIAGNEII.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunExecutor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5DWBECCN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
11
11
|
|
|
12
12
|
// src/executors/cargo-clippy/executor.ts
|
|
13
13
|
async function cargoClippyExecutor(options, context) {
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
ProjectTagConstants,
|
|
6
6
|
addProjectTag
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HUVBVDJ7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ATIBREWM.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
14
14
|
|
|
15
15
|
// src/base/typescript-library-generator.ts
|
|
16
16
|
import { addDependenciesToPackageJson, addProjectConfiguration, ensurePackage, formatFiles, names, offsetFromRoot, readJson, updateJson, writeJson } from "@nx/devkit";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceBaseTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AWKIWCLR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig,
|
|
7
7
|
getStopwatch,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
writeInfo,
|
|
12
12
|
writeSuccess,
|
|
13
13
|
writeTrace
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IXZ3PGBP.mjs";
|
|
15
15
|
import {
|
|
16
16
|
findWorkspaceRoot
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FR3YQN55.mjs";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
21
21
|
|
|
22
22
|
// src/base/base-generator.ts
|
|
23
23
|
var withRunGenerator = /* @__PURE__ */ __name((name, generatorFn, generatorOptions = {
|
package/dist/executors.js
CHANGED
|
@@ -10,7 +10,7 @@ var _chunkGJQKCDGCjs = require('./chunk-GJQKCDGC.js');
|
|
|
10
10
|
var _chunkXM4IXZ6Yjs = require('./chunk-XM4IXZ6Y.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk55IQXVOQjs = require('./chunk-55IQXVOQ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunkAXGI5QP4js = require('./chunk-AXGI5QP4.js');
|
|
@@ -22,8 +22,8 @@ var _chunkOVWVVBMFjs = require('./chunk-OVWVVBMF.js');
|
|
|
22
22
|
var _chunkGGGO542Mjs = require('./chunk-GGGO542M.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
require('./chunk-
|
|
25
|
+
var _chunkOAQP7HGXjs = require('./chunk-OAQP7HGX.js');
|
|
26
|
+
require('./chunk-IFSORSAN.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkJJ4G5NGFjs = require('./chunk-JJ4G5NGF.js');
|
|
@@ -58,4 +58,4 @@ require('./chunk-3GQAWCBQ.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.LARGE_BUFFER = _chunkGJQKCDGCjs.LARGE_BUFFER; exports.cargoBuildExecutor = _chunkJJ4G5NGFjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkU6DCH53Ijs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkGBXELUHEjs.cargoClippyExecutor; exports.cargoDocExecutor = _chunkFIRVS3UNjs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkOVWVVBMFjs.cargoFormatExecutor; exports.esbuildExecutorFn =
|
|
61
|
+
exports.LARGE_BUFFER = _chunkGJQKCDGCjs.LARGE_BUFFER; exports.cargoBuildExecutor = _chunkJJ4G5NGFjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkU6DCH53Ijs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkGBXELUHEjs.cargoClippyExecutor; exports.cargoDocExecutor = _chunkFIRVS3UNjs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkOVWVVBMFjs.cargoFormatExecutor; exports.esbuildExecutorFn = _chunkOAQP7HGXjs.esbuildExecutorFn; exports.getRegistryVersion = _chunkGGGO542Mjs.getRegistryVersion; exports.sizeLimitExecutorFn = _chunkXM4IXZ6Yjs.sizeLimitExecutorFn; exports.tsdownExecutorFn = _chunk55IQXVOQjs.tsdownExecutorFn; exports.typiaExecutorFn = _chunkAXGI5QP4js.typiaExecutorFn; exports.unbuildExecutorFn = _chunkKFJJGDFTjs.unbuildExecutorFn;
|
package/dist/executors.mjs
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import "./chunk-V7YZ3666.mjs";
|
|
2
2
|
import {
|
|
3
3
|
unbuildExecutorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-G6VTRIV6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
LARGE_BUFFER
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BMNXBEWE.mjs";
|
|
8
8
|
import {
|
|
9
9
|
sizeLimitExecutorFn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3RLLSZI3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
tsdownExecutorFn
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7W5P2GIE.mjs";
|
|
14
14
|
import {
|
|
15
15
|
typiaExecutorFn
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FIJJTQKT.mjs";
|
|
17
17
|
import {
|
|
18
18
|
cargoFormatExecutor
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GKFEPODO.mjs";
|
|
20
20
|
import {
|
|
21
21
|
getRegistryVersion
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3PWCELL5.mjs";
|
|
23
23
|
import {
|
|
24
24
|
esbuildExecutorFn
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-NZBJ5BJT.mjs";
|
|
26
|
+
import "./chunk-TLRZHFVN.mjs";
|
|
27
27
|
import {
|
|
28
28
|
cargoBuildExecutor
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XB6ATVWM.mjs";
|
|
30
30
|
import {
|
|
31
31
|
cargoCheckExecutor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-EVQJFIA7.mjs";
|
|
33
33
|
import {
|
|
34
34
|
cargoClippyExecutor
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-YPUNRGTW.mjs";
|
|
36
36
|
import {
|
|
37
37
|
cargoDocExecutor
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-77KNPIOO.mjs";
|
|
39
|
+
import "./chunk-AD4BVP7F.mjs";
|
|
40
|
+
import "./chunk-JIAGNEII.mjs";
|
|
41
|
+
import "./chunk-7ENGREV2.mjs";
|
|
42
|
+
import "./chunk-5DWBECCN.mjs";
|
|
43
|
+
import "./chunk-AWKIWCLR.mjs";
|
|
44
|
+
import "./chunk-IXZ3PGBP.mjs";
|
|
45
|
+
import "./chunk-FR3YQN55.mjs";
|
|
46
|
+
import "./chunk-ATIBREWM.mjs";
|
|
47
|
+
import "./chunk-2BPV2XV2.mjs";
|
|
48
48
|
export {
|
|
49
49
|
LARGE_BUFFER,
|
|
50
50
|
cargoBuildExecutor,
|
package/dist/generators.js
CHANGED
|
@@ -13,10 +13,10 @@ var _chunkQ27N3MQOjs = require('./chunk-Q27N3MQO.js');
|
|
|
13
13
|
var _chunkD5NZC2JNjs = require('./chunk-D5NZC2JN.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkXGU4526Mjs = require('./chunk-XGU4526M.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkIC2TARGZjs = require('./chunk-IC2TARGZ.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
var _chunk3IZ3O4OKjs = require('./chunk-3IZ3O4OK.js');
|