@storm-software/workspace-tools 1.263.1 → 1.264.0
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 +16 -0
- package/README.md +12 -30
- 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-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-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-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-6QKCP4DS.js → chunk-PD4CDI7L.js} +296 -41
- package/dist/{chunk-R2BMSX6J.mjs → chunk-RLG36VMZ.mjs} +3 -3
- package/dist/{chunk-XIS3TY42.mjs → chunk-RMNEVFW4.mjs} +4 -4
- package/dist/{chunk-3XR4FSEA.mjs → chunk-V4QUJRZH.mjs} +4 -4
- package/dist/{chunk-AOOHLS72.mjs → chunk-VJJBBVYU.mjs} +3 -3
- package/dist/{chunk-EF7U4632.mjs → chunk-VYHRGNJQ.mjs} +306 -51
- 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.d.mts +0 -1
- package/dist/executors.d.ts +0 -1
- package/dist/executors.js +5 -10
- package/dist/executors.mjs +23 -28
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +20 -20
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +10 -15
- package/dist/index.mjs +45 -50
- 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 +2 -3
- package/dist/src/executors/esbuild/executor.mjs +7 -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/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/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/executors.json +0 -5
- package/package.json +3 -6
- package/dist/chunk-55IQXVOQ.js +0 -308
- package/dist/chunk-IFSORSAN.js +0 -304
- package/dist/chunk-SE2XSR7P.mjs +0 -304
- package/dist/chunk-UFPTODUJ.mjs +0 -308
- package/dist/executor-BDvqiAmr.d.ts +0 -144
- package/dist/executor-KAQdKP88.d.mts +0 -144
- package/dist/src/executors/tsdown/executor.d.mts +0 -4
- package/dist/src/executors/tsdown/executor.d.ts +0 -4
- package/dist/src/executors/tsdown/executor.js +0 -15
- package/dist/src/executors/tsdown/executor.mjs +0 -15
- package/dist/src/executors/tsdown/schema.d.ts +0 -135
- package/dist/src/executors/tsdown/schema.json +0 -174
- package/dist/src/executors/tsdown/schema.md +0 -126
- package/dist/src/executors/tsdown/untyped.d.mts +0 -5
- package/dist/src/executors/tsdown/untyped.d.ts +0 -5
- package/dist/src/executors/tsdown/untyped.js +0 -19
- package/dist/src/executors/tsdown/untyped.mjs +0 -19
- package/dist/src/plugins/typescript/tsdown.d.mts +0 -7
- package/dist/src/plugins/typescript/tsdown.d.ts +0 -7
- package/dist/src/plugins/typescript/tsdown.js +0 -159
- package/dist/src/plugins/typescript/tsdown.mjs +0 -159
- package/docs/api/executors/tsdown/schema.md +0 -126
- /package/dist/{chunk-3J53KHVV.js → chunk-7VDOGZYO.js} +0 -0
- /package/dist/{chunk-V7YZ3666.mjs → chunk-BLX5SLPC.mjs} +0 -0
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEFAULT_COMPILED_BANNER,
|
|
3
|
-
DEFAULT_TARGET,
|
|
4
|
-
addPackageDependencies,
|
|
5
|
-
addWorkspacePackageJsonFields,
|
|
6
|
-
copyAssets,
|
|
7
|
-
getEntryPoints,
|
|
8
|
-
getEnv
|
|
9
|
-
} from "./chunk-SE2XSR7P.mjs";
|
|
10
1
|
import {
|
|
11
2
|
withRunExecutor
|
|
12
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5DWBECCN.mjs";
|
|
13
4
|
import {
|
|
14
5
|
formatLogMessage,
|
|
15
6
|
getConfig,
|
|
@@ -22,18 +13,209 @@ import {
|
|
|
22
13
|
writeSuccess,
|
|
23
14
|
writeTrace,
|
|
24
15
|
writeWarning
|
|
25
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-IXZ3PGBP.mjs";
|
|
17
|
+
import {
|
|
18
|
+
findWorkspaceRoot
|
|
19
|
+
} from "./chunk-FR3YQN55.mjs";
|
|
26
20
|
import {
|
|
21
|
+
correctPaths,
|
|
27
22
|
joinPaths
|
|
28
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ATIBREWM.mjs";
|
|
29
24
|
import {
|
|
30
25
|
__dirname,
|
|
31
26
|
__name,
|
|
32
27
|
__require
|
|
33
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2BPV2XV2.mjs";
|
|
34
29
|
|
|
35
30
|
// ../esbuild/src/build.ts
|
|
36
|
-
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph, writeJsonFile } from "@nx/devkit";
|
|
31
|
+
import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2, writeJsonFile } from "@nx/devkit";
|
|
32
|
+
|
|
33
|
+
// ../build-tools/src/config.ts
|
|
34
|
+
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
35
|
+
*
|
|
36
|
+
* \u26A1 Built by Storm Software
|
|
37
|
+
*
|
|
38
|
+
*****************************************/
|
|
39
|
+
`;
|
|
40
|
+
var DEFAULT_ENVIRONMENT = "production";
|
|
41
|
+
var DEFAULT_TARGET = "esnext";
|
|
42
|
+
var DEFAULT_ORGANIZATION = "storm-software";
|
|
43
|
+
|
|
44
|
+
// ../build-tools/src/plugins/swc.ts
|
|
45
|
+
import { transform } from "@swc/core";
|
|
46
|
+
|
|
47
|
+
// ../build-tools/src/plugins/ts-resolve.ts
|
|
48
|
+
import fs from "node:fs";
|
|
49
|
+
import { builtinModules } from "node:module";
|
|
50
|
+
import path from "node:path";
|
|
51
|
+
import _resolve from "resolve";
|
|
52
|
+
|
|
53
|
+
// ../build-tools/src/plugins/type-definitions.ts
|
|
54
|
+
import { stripIndents } from "@nx/devkit";
|
|
55
|
+
import { relative } from "path";
|
|
56
|
+
|
|
57
|
+
// ../build-tools/src/utilities/copy-assets.ts
|
|
58
|
+
import { CopyAssetsHandler } from "@nx/js/src/utils/assets/copy-assets-handler";
|
|
59
|
+
import { glob } from "glob";
|
|
60
|
+
import { readFile, writeFile } from "node:fs/promises";
|
|
61
|
+
var copyAssets = /* @__PURE__ */ __name(async (config, assets, outputPath, projectRoot, sourceRoot, generatePackageJson2 = true, includeSrc = false, banner, footer) => {
|
|
62
|
+
const pendingAssets = Array.from(assets ?? []);
|
|
63
|
+
pendingAssets.push({
|
|
64
|
+
input: projectRoot,
|
|
65
|
+
glob: "*.md",
|
|
66
|
+
output: "."
|
|
67
|
+
});
|
|
68
|
+
pendingAssets.push({
|
|
69
|
+
input: ".",
|
|
70
|
+
glob: "LICENSE",
|
|
71
|
+
output: "."
|
|
72
|
+
});
|
|
73
|
+
if (generatePackageJson2 === false) {
|
|
74
|
+
pendingAssets.push({
|
|
75
|
+
input: projectRoot,
|
|
76
|
+
glob: "package.json",
|
|
77
|
+
output: "."
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
if (includeSrc === true) {
|
|
81
|
+
pendingAssets.push({
|
|
82
|
+
input: sourceRoot,
|
|
83
|
+
glob: "**/{*.ts,*.tsx,*.js,*.jsx}",
|
|
84
|
+
output: "src/"
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
writeTrace(`\u{1F4DD} Copying the following assets to the output directory:
|
|
88
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${joinPaths(outputPath, pendingAsset.output)}`).join("\n")}`, config);
|
|
89
|
+
const assetHandler = new CopyAssetsHandler({
|
|
90
|
+
projectDir: projectRoot,
|
|
91
|
+
rootDir: config.workspaceRoot,
|
|
92
|
+
outputDir: outputPath,
|
|
93
|
+
assets: pendingAssets
|
|
94
|
+
});
|
|
95
|
+
await assetHandler.processAllAssetsOnce();
|
|
96
|
+
if (includeSrc === true) {
|
|
97
|
+
writeDebug(`\u{1F4DD} Adding banner and writing source files: ${joinPaths(outputPath, "src")}`, config);
|
|
98
|
+
const files = await glob([
|
|
99
|
+
joinPaths(config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
100
|
+
joinPaths(config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
101
|
+
joinPaths(config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
102
|
+
joinPaths(config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
103
|
+
]);
|
|
104
|
+
await Promise.allSettled(files.map(async (file) => writeFile(file, `${banner && typeof banner === "string" ? banner.startsWith("//") ? banner : `// ${banner}` : ""}
|
|
105
|
+
|
|
106
|
+
${await readFile(file, "utf8")}
|
|
107
|
+
|
|
108
|
+
${footer && typeof footer === "string" ? footer.startsWith("//") ? footer : `// ${footer}` : ""}`)));
|
|
109
|
+
}
|
|
110
|
+
}, "copyAssets");
|
|
111
|
+
|
|
112
|
+
// ../build-tools/src/utilities/generate-package-json.ts
|
|
113
|
+
import { calculateProjectBuildableDependencies } from "@nx/js/src/utils/buildable-libs-utils";
|
|
114
|
+
import { Glob } from "glob";
|
|
115
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
116
|
+
import { readFile as readFile2 } from "node:fs/promises";
|
|
117
|
+
import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
|
|
118
|
+
var addPackageDependencies = /* @__PURE__ */ __name(async (workspaceRoot, projectRoot, projectName, packageJson) => {
|
|
119
|
+
const projectGraph = readCachedProjectGraph();
|
|
120
|
+
const projectDependencies = calculateProjectBuildableDependencies(void 0, projectGraph, workspaceRoot, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
121
|
+
const localPackages = [];
|
|
122
|
+
for (const project of projectDependencies.dependencies.filter((dep) => dep.node.type === "lib" && dep.node.data.root !== projectRoot && dep.node.data.root !== workspaceRoot)) {
|
|
123
|
+
const projectNode = project.node;
|
|
124
|
+
if (projectNode.data.root) {
|
|
125
|
+
const projectPackageJsonPath = joinPaths(workspaceRoot, projectNode.data.root, "package.json");
|
|
126
|
+
if (existsSync(projectPackageJsonPath)) {
|
|
127
|
+
const projectPackageJsonContent = await readFile2(projectPackageJsonPath, "utf8");
|
|
128
|
+
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
129
|
+
if (projectPackageJson.private !== true) {
|
|
130
|
+
localPackages.push(projectPackageJson);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (localPackages.length > 0) {
|
|
136
|
+
writeTrace(`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`);
|
|
137
|
+
const projectJsonFile = await readFile2(joinPaths(projectRoot, "project.json"), "utf8");
|
|
138
|
+
const projectJson = JSON.parse(projectJsonFile);
|
|
139
|
+
const projectName2 = projectJson.name;
|
|
140
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph(projectGraph);
|
|
141
|
+
if (!projectConfigurations?.projects?.[projectName2]) {
|
|
142
|
+
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.");
|
|
143
|
+
}
|
|
144
|
+
const implicitDependencies = projectConfigurations.projects?.[projectName2].implicitDependencies?.reduce((ret, dep) => {
|
|
145
|
+
if (projectConfigurations.projects?.[dep]) {
|
|
146
|
+
const depPackageJsonPath = joinPaths(workspaceRoot, projectConfigurations.projects[dep].root, "package.json");
|
|
147
|
+
if (existsSync(depPackageJsonPath)) {
|
|
148
|
+
const depPackageJsonContent = readFileSync(depPackageJsonPath, "utf8");
|
|
149
|
+
const depPackageJson = JSON.parse(depPackageJsonContent);
|
|
150
|
+
if (depPackageJson.private !== true && !ret.includes(depPackageJson.name)) {
|
|
151
|
+
ret.push(depPackageJson.name);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return ret;
|
|
156
|
+
}, []);
|
|
157
|
+
packageJson.dependencies = localPackages.reduce((ret, localPackage) => {
|
|
158
|
+
if (!ret[localPackage.name] && !implicitDependencies?.includes(localPackage.name)) {
|
|
159
|
+
ret[localPackage.name] = `>=${localPackage.version || "0.0.1"}`;
|
|
160
|
+
}
|
|
161
|
+
return ret;
|
|
162
|
+
}, packageJson.dependencies ?? {});
|
|
163
|
+
packageJson.devDependencies = localPackages.reduce((ret, localPackage) => {
|
|
164
|
+
if (!ret[localPackage.name] && implicitDependencies?.includes(localPackage.name)) {
|
|
165
|
+
ret[localPackage.name] = localPackage.version || "0.0.1";
|
|
166
|
+
}
|
|
167
|
+
return ret;
|
|
168
|
+
}, packageJson.devDependencies ?? {});
|
|
169
|
+
} else {
|
|
170
|
+
writeTrace("\u{1F4E6} No local packages dependencies to add to package.json");
|
|
171
|
+
}
|
|
172
|
+
return packageJson;
|
|
173
|
+
}, "addPackageDependencies");
|
|
174
|
+
var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
175
|
+
const workspaceRoot = config.workspaceRoot ? config.workspaceRoot : findWorkspaceRoot();
|
|
176
|
+
const workspacePackageJsonContent = await readFile2(joinPaths(workspaceRoot, "package.json"), "utf8");
|
|
177
|
+
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
178
|
+
packageJson.type ??= "module";
|
|
179
|
+
packageJson.sideEffects ??= false;
|
|
180
|
+
if (includeSrc === true) {
|
|
181
|
+
let distSrc = sourceRoot.replace(projectRoot, "");
|
|
182
|
+
if (distSrc.startsWith("/")) {
|
|
183
|
+
distSrc = distSrc.substring(1);
|
|
184
|
+
}
|
|
185
|
+
packageJson.source ??= `${joinPaths(distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
186
|
+
}
|
|
187
|
+
packageJson.files ??= [
|
|
188
|
+
"dist/**/*"
|
|
189
|
+
];
|
|
190
|
+
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
191
|
+
packageJson.files.push("src/**/*");
|
|
192
|
+
}
|
|
193
|
+
packageJson.publishConfig ??= {
|
|
194
|
+
access: "public"
|
|
195
|
+
};
|
|
196
|
+
packageJson.description ??= workspacePackageJson.description;
|
|
197
|
+
packageJson.homepage ??= workspacePackageJson.homepage;
|
|
198
|
+
packageJson.bugs ??= workspacePackageJson.bugs;
|
|
199
|
+
packageJson.license ??= workspacePackageJson.license;
|
|
200
|
+
packageJson.keywords ??= workspacePackageJson.keywords;
|
|
201
|
+
packageJson.funding ??= workspacePackageJson.funding;
|
|
202
|
+
packageJson.author ??= workspacePackageJson.author;
|
|
203
|
+
packageJson.maintainers ??= workspacePackageJson.maintainers;
|
|
204
|
+
if (!packageJson.maintainers && packageJson.author) {
|
|
205
|
+
packageJson.maintainers = [
|
|
206
|
+
packageJson.author
|
|
207
|
+
];
|
|
208
|
+
}
|
|
209
|
+
packageJson.contributors ??= workspacePackageJson.contributors;
|
|
210
|
+
if (!packageJson.contributors && packageJson.author) {
|
|
211
|
+
packageJson.contributors = [
|
|
212
|
+
packageJson.author
|
|
213
|
+
];
|
|
214
|
+
}
|
|
215
|
+
packageJson.repository ??= workspacePackageJson.repository;
|
|
216
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : joinPaths("packages", projectName);
|
|
217
|
+
return packageJson;
|
|
218
|
+
}, "addWorkspacePackageJsonFields");
|
|
37
219
|
|
|
38
220
|
// ../config-tools/src/utilities/run.ts
|
|
39
221
|
import { exec, execSync } from "node:child_process";
|
|
@@ -54,6 +236,78 @@ var run = /* @__PURE__ */ __name((config, command, cwd = config.workspaceRoot ??
|
|
|
54
236
|
});
|
|
55
237
|
}, "run");
|
|
56
238
|
|
|
239
|
+
// ../build-tools/src/utilities/get-entry-points.ts
|
|
240
|
+
import { glob as glob2 } from "glob";
|
|
241
|
+
var getEntryPoints = /* @__PURE__ */ __name(async (config, projectRoot, sourceRoot, entry, emitOnAll = false) => {
|
|
242
|
+
const workspaceRoot = config.workspaceRoot || findWorkspaceRoot();
|
|
243
|
+
const entryPoints = [];
|
|
244
|
+
if (entry) {
|
|
245
|
+
if (typeof entry === "string") {
|
|
246
|
+
entryPoints.push(entry);
|
|
247
|
+
} else if (Array.isArray(entry)) {
|
|
248
|
+
entryPoints.push(...entry);
|
|
249
|
+
} else {
|
|
250
|
+
entryPoints.push(...Object.values(entry));
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
if (emitOnAll) {
|
|
254
|
+
entryPoints.push(joinPaths(workspaceRoot, sourceRoot || projectRoot, "**/*.{ts,tsx}"));
|
|
255
|
+
}
|
|
256
|
+
const results = await Promise.all(entryPoints.map(async (entryPoint) => {
|
|
257
|
+
const paths = [];
|
|
258
|
+
if (entryPoint.includes("*")) {
|
|
259
|
+
const files = await glob2(entryPoint, {
|
|
260
|
+
withFileTypes: true,
|
|
261
|
+
ignore: [
|
|
262
|
+
"**/node_modules/**"
|
|
263
|
+
]
|
|
264
|
+
});
|
|
265
|
+
paths.push(...files.reduce((ret, filePath) => {
|
|
266
|
+
const result = correctPaths(joinPaths(filePath.path, filePath.name).replaceAll(correctPaths(workspaceRoot), "").replaceAll(correctPaths(projectRoot), ""));
|
|
267
|
+
if (result) {
|
|
268
|
+
writeDebug(`Trying to add entry point ${result} at "${joinPaths(filePath.path, filePath.name)}"`, config);
|
|
269
|
+
if (!paths.includes(result)) {
|
|
270
|
+
paths.push(result);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
return ret;
|
|
274
|
+
}, []));
|
|
275
|
+
} else {
|
|
276
|
+
paths.push(entryPoint);
|
|
277
|
+
}
|
|
278
|
+
return paths;
|
|
279
|
+
}));
|
|
280
|
+
return results.filter(Boolean).reduce((ret, result) => {
|
|
281
|
+
result.forEach((res) => {
|
|
282
|
+
if (res && !ret.includes(res)) {
|
|
283
|
+
ret.push(res);
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
return ret;
|
|
287
|
+
}, []);
|
|
288
|
+
}, "getEntryPoints");
|
|
289
|
+
|
|
290
|
+
// ../build-tools/src/utilities/get-env.ts
|
|
291
|
+
var getEnv = /* @__PURE__ */ __name((builder, options) => {
|
|
292
|
+
return {
|
|
293
|
+
STORM_BUILD: builder,
|
|
294
|
+
STORM_ORG: options.orgName || DEFAULT_ORGANIZATION,
|
|
295
|
+
STORM_NAME: options.name,
|
|
296
|
+
STORM_MODE: options.mode || DEFAULT_ENVIRONMENT,
|
|
297
|
+
STORM_PLATFORM: options.platform,
|
|
298
|
+
STORM_FORMAT: JSON.stringify(options.format),
|
|
299
|
+
STORM_TARGET: JSON.stringify(options.target),
|
|
300
|
+
...options.env
|
|
301
|
+
};
|
|
302
|
+
}, "getEnv");
|
|
303
|
+
|
|
304
|
+
// ../build-tools/src/utilities/read-nx-config.ts
|
|
305
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
306
|
+
import { readFile as readFile3 } from "node:fs/promises";
|
|
307
|
+
|
|
308
|
+
// ../build-tools/src/utilities/task-graph.ts
|
|
309
|
+
import { createTaskGraph, mapTargetDefaultsToDependencies } from "nx/src/tasks-runner/create-task-graph";
|
|
310
|
+
|
|
57
311
|
// ../esbuild/src/build.ts
|
|
58
312
|
import { watch as createWatcher } from "chokidar";
|
|
59
313
|
import defu from "defu";
|
|
@@ -61,35 +315,35 @@ import { debounce, flatten } from "es-toolkit";
|
|
|
61
315
|
import { map } from "es-toolkit/compat";
|
|
62
316
|
import * as esbuild2 from "esbuild";
|
|
63
317
|
import { globbySync } from "globby";
|
|
64
|
-
import { existsSync as
|
|
318
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
65
319
|
import hf from "node:fs/promises";
|
|
66
|
-
import { findWorkspaceRoot } from "nx/src/utils/find-workspace-root";
|
|
320
|
+
import { findWorkspaceRoot as findWorkspaceRoot2 } from "nx/src/utils/find-workspace-root";
|
|
67
321
|
|
|
68
322
|
// ../esbuild/src/base/renderer-engine.ts
|
|
69
|
-
import
|
|
323
|
+
import path3 from "node:path";
|
|
70
324
|
import { SourceMapConsumer, SourceMapGenerator } from "source-map";
|
|
71
325
|
|
|
72
326
|
// ../esbuild/src/utilities/output-file.ts
|
|
73
|
-
import
|
|
74
|
-
import
|
|
327
|
+
import fs2 from "node:fs";
|
|
328
|
+
import path2 from "node:path";
|
|
75
329
|
var outputFile = /* @__PURE__ */ __name(async (filepath, data, options) => {
|
|
76
|
-
await
|
|
330
|
+
await fs2.promises.mkdir(path2.dirname(filepath), {
|
|
77
331
|
recursive: true
|
|
78
332
|
});
|
|
79
|
-
await
|
|
333
|
+
await fs2.promises.writeFile(filepath, data, options);
|
|
80
334
|
}, "outputFile");
|
|
81
335
|
|
|
82
336
|
// ../esbuild/src/base/renderer-engine.ts
|
|
83
337
|
var parseSourceMap = /* @__PURE__ */ __name((map2) => {
|
|
84
338
|
return typeof map2 === "string" ? JSON.parse(map2) : map2;
|
|
85
339
|
}, "parseSourceMap");
|
|
86
|
-
var isJS = /* @__PURE__ */ __name((
|
|
87
|
-
var isCSS = /* @__PURE__ */ __name((
|
|
340
|
+
var isJS = /* @__PURE__ */ __name((path6) => /\.(js|mjs|cjs)$/.test(path6), "isJS");
|
|
341
|
+
var isCSS = /* @__PURE__ */ __name((path6) => /\.css$/.test(path6), "isCSS");
|
|
88
342
|
var getSourcemapComment = /* @__PURE__ */ __name((inline, map2, filepath, isCssFile) => {
|
|
89
343
|
if (!map2) return "";
|
|
90
344
|
const prefix = isCssFile ? "/*" : "//";
|
|
91
345
|
const suffix = isCssFile ? " */" : "";
|
|
92
|
-
const url = inline ? `data:application/json;base64,${Buffer.from(typeof map2 === "string" ? map2 : JSON.stringify(map2)).toString("base64")}` : `${
|
|
346
|
+
const url = inline ? `data:application/json;base64,${Buffer.from(typeof map2 === "string" ? map2 : JSON.stringify(map2)).toString("base64")}` : `${path3.basename(filepath)}.map`;
|
|
93
347
|
return `${prefix}# sourceMappingURL=${url}${suffix}`;
|
|
94
348
|
}, "getSourcemapComment");
|
|
95
349
|
var RendererEngine = class {
|
|
@@ -127,7 +381,7 @@ var RendererEngine = class {
|
|
|
127
381
|
async buildFinished({ outputFiles, metafile }) {
|
|
128
382
|
const files = outputFiles.filter((file) => !file.path.endsWith(".map")).map((file) => {
|
|
129
383
|
if (isJS(file.path) || isCSS(file.path)) {
|
|
130
|
-
let relativePath =
|
|
384
|
+
let relativePath = path3.relative(this.getOptions().config.workspaceRoot, file.path);
|
|
131
385
|
if (!relativePath.startsWith("\\\\?\\")) {
|
|
132
386
|
relativePath = relativePath.replace(/\\/g, "/");
|
|
133
387
|
}
|
|
@@ -175,7 +429,7 @@ var RendererEngine = class {
|
|
|
175
429
|
});
|
|
176
430
|
writtenFiles.push({
|
|
177
431
|
get name() {
|
|
178
|
-
return
|
|
432
|
+
return path3.relative(process.cwd(), info.path);
|
|
179
433
|
},
|
|
180
434
|
get size() {
|
|
181
435
|
return contents.length;
|
|
@@ -188,7 +442,7 @@ var RendererEngine = class {
|
|
|
188
442
|
await outputFile(outPath, contents2);
|
|
189
443
|
writtenFiles.push({
|
|
190
444
|
get name() {
|
|
191
|
-
return
|
|
445
|
+
return path3.relative(process.cwd(), outPath);
|
|
192
446
|
},
|
|
193
447
|
get size() {
|
|
194
448
|
return contents2.length;
|
|
@@ -317,8 +571,8 @@ var nodeProtocolPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => {
|
|
|
317
571
|
setup({ onResolve }) {
|
|
318
572
|
onResolve({
|
|
319
573
|
filter: /^node:/
|
|
320
|
-
}, ({ path:
|
|
321
|
-
path:
|
|
574
|
+
}, ({ path: path6 }) => ({
|
|
575
|
+
path: path6.slice(nodeProtocol.length),
|
|
322
576
|
external: true
|
|
323
577
|
}));
|
|
324
578
|
}
|
|
@@ -342,21 +596,21 @@ ${result.errors.map((error) => error.text).join("\n")}
|
|
|
342
596
|
}), "onErrorPlugin");
|
|
343
597
|
|
|
344
598
|
// ../esbuild/src/plugins/resolve-paths.ts
|
|
345
|
-
import
|
|
599
|
+
import path4 from "node:path";
|
|
346
600
|
function resolvePathsConfig(options, cwd) {
|
|
347
601
|
if (options?.compilerOptions?.paths) {
|
|
348
602
|
const paths = Object.entries(options.compilerOptions.paths);
|
|
349
603
|
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
350
604
|
return [
|
|
351
605
|
key,
|
|
352
|
-
paths2.map((v) =>
|
|
606
|
+
paths2.map((v) => path4.resolve(cwd, v))
|
|
353
607
|
];
|
|
354
608
|
});
|
|
355
609
|
return Object.fromEntries(resolvedPaths);
|
|
356
610
|
}
|
|
357
611
|
if (options.extends) {
|
|
358
|
-
const extendsPath =
|
|
359
|
-
const extendsDir =
|
|
612
|
+
const extendsPath = path4.resolve(cwd, options.extends);
|
|
613
|
+
const extendsDir = path4.dirname(extendsPath);
|
|
360
614
|
const extendsConfig = __require(extendsPath);
|
|
361
615
|
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
362
616
|
}
|
|
@@ -387,8 +641,8 @@ var resolvePathsPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
387
641
|
|
|
388
642
|
// ../esbuild/src/plugins/tsc.ts
|
|
389
643
|
import { Extractor, ExtractorConfig } from "@microsoft/api-extractor";
|
|
390
|
-
import { existsSync } from "node:fs";
|
|
391
|
-
import
|
|
644
|
+
import { existsSync as existsSync3 } from "node:fs";
|
|
645
|
+
import fs3 from "node:fs/promises";
|
|
392
646
|
function bundleTypeDefinitions(filename, outfile, externals, options) {
|
|
393
647
|
const { dependencies, peerDependencies, devDependencies } = __require(joinPaths(options.projectRoot, "package.json"));
|
|
394
648
|
const dependenciesKeys = Object.keys(dependencies ?? {}).flatMap((p) => [
|
|
@@ -461,18 +715,18 @@ var tscPlugin = /* @__PURE__ */ __name((options, resolvedOptions) => ({
|
|
|
461
715
|
const entryPoint = resolvedOptions.entryPoints[0].replace(sourceRoot, "").replace(/\.ts$/, "");
|
|
462
716
|
const bundlePath = joinPaths(resolvedOptions.outdir, entryPoint);
|
|
463
717
|
let dtsPath;
|
|
464
|
-
if (
|
|
718
|
+
if (existsSync3(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`))) {
|
|
465
719
|
dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint}.d.ts`);
|
|
466
|
-
} else if (
|
|
720
|
+
} else if (existsSync3(joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`))) {
|
|
467
721
|
dtsPath = joinPaths(resolvedOptions.config.workspaceRoot, typeOutDir, `${entryPoint.replace(/^src\//, "")}.d.ts`);
|
|
468
722
|
}
|
|
469
723
|
const ext = resolvedOptions.format === "esm" ? "d.mts" : "d.ts";
|
|
470
724
|
if (process.env.WATCH !== "true" && process.env.DEV !== "true") {
|
|
471
725
|
bundleTypeDefinitions(dtsPath, bundlePath, resolvedOptions.external ?? [], resolvedOptions);
|
|
472
|
-
const dtsContents = await
|
|
473
|
-
await
|
|
726
|
+
const dtsContents = await fs3.readFile(`${bundlePath}.d.ts`, "utf8");
|
|
727
|
+
await fs3.writeFile(`${bundlePath}.${ext}`, dtsContents);
|
|
474
728
|
} else {
|
|
475
|
-
await
|
|
729
|
+
await fs3.writeFile(`${bundlePath}.${ext}`, `export * from './${entryPoint}'`);
|
|
476
730
|
}
|
|
477
731
|
}
|
|
478
732
|
});
|
|
@@ -550,8 +804,8 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
550
804
|
};
|
|
551
805
|
|
|
552
806
|
// ../esbuild/src/plugins/deps-check.ts
|
|
553
|
-
import { builtinModules } from "node:module";
|
|
554
|
-
import
|
|
807
|
+
import { builtinModules as builtinModules2 } from "node:module";
|
|
808
|
+
import path5 from "node:path";
|
|
555
809
|
var unusedIgnore = [
|
|
556
810
|
// these are our dev dependencies
|
|
557
811
|
/@types\/.*?/,
|
|
@@ -584,7 +838,7 @@ var missingIgnore = [
|
|
|
584
838
|
var depsCheckPlugin = /* @__PURE__ */ __name((bundle) => ({
|
|
585
839
|
name: "storm:deps-check",
|
|
586
840
|
setup(build4) {
|
|
587
|
-
const pkgJsonPath =
|
|
841
|
+
const pkgJsonPath = path5.join(process.cwd(), "package.json");
|
|
588
842
|
const pkgContents = __require(pkgJsonPath);
|
|
589
843
|
const regDependencies = Object.keys(pkgContents["dependencies"] ?? {});
|
|
590
844
|
const devDependencies = Object.keys(pkgContents["devDependencies"] ?? {});
|
|
@@ -615,12 +869,12 @@ var depsCheckPlugin = /* @__PURE__ */ __name((bundle) => ({
|
|
|
615
869
|
const unusedDependencies = [
|
|
616
870
|
...dependencies
|
|
617
871
|
].filter((dep) => {
|
|
618
|
-
return !collectedDependencies.has(dep) ||
|
|
872
|
+
return !collectedDependencies.has(dep) || builtinModules2.includes(dep);
|
|
619
873
|
});
|
|
620
874
|
const missingDependencies = [
|
|
621
875
|
...collectedDependencies
|
|
622
876
|
].filter((dep) => {
|
|
623
|
-
return !dependencies.includes(dep) && !
|
|
877
|
+
return !dependencies.includes(dep) && !builtinModules2.includes(dep);
|
|
624
878
|
});
|
|
625
879
|
const filteredUnusedDeps = unusedDependencies.filter((dep) => {
|
|
626
880
|
return !unusedIgnore.some((pattern) => dep.match(pattern));
|
|
@@ -719,7 +973,7 @@ pipe.async = pipeAsync;
|
|
|
719
973
|
// ../esbuild/src/build.ts
|
|
720
974
|
var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
721
975
|
const projectRoot = userOptions.projectRoot;
|
|
722
|
-
const workspaceRoot =
|
|
976
|
+
const workspaceRoot = findWorkspaceRoot2(projectRoot);
|
|
723
977
|
if (!workspaceRoot) {
|
|
724
978
|
throw new Error("Cannot find Nx workspace root");
|
|
725
979
|
}
|
|
@@ -730,13 +984,13 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
730
984
|
exitOnError: true
|
|
731
985
|
});
|
|
732
986
|
const projectJsonPath = joinPaths(workspaceRoot.dir, projectRoot, "project.json");
|
|
733
|
-
if (!
|
|
987
|
+
if (!existsSync4(projectJsonPath)) {
|
|
734
988
|
throw new Error("Cannot find project.json configuration");
|
|
735
989
|
}
|
|
736
990
|
const projectJsonFile = await hf.readFile(projectJsonPath, "utf8");
|
|
737
991
|
const projectJson = JSON.parse(projectJsonFile);
|
|
738
992
|
const projectName = projectJson.name;
|
|
739
|
-
const projectConfigurations =
|
|
993
|
+
const projectConfigurations = readProjectsConfigurationFromProjectGraph2(projectGraph);
|
|
740
994
|
if (!projectConfigurations?.projects?.[projectName]) {
|
|
741
995
|
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.");
|
|
742
996
|
}
|
|
@@ -744,7 +998,7 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
744
998
|
options.name ??= `${projectName}-${options.format}`;
|
|
745
999
|
options.target ??= DEFAULT_TARGET;
|
|
746
1000
|
const packageJsonPath = joinPaths(workspaceRoot.dir, options.projectRoot, "package.json");
|
|
747
|
-
if (!
|
|
1001
|
+
if (!existsSync4(packageJsonPath)) {
|
|
748
1002
|
throw new Error("Cannot find package.json configuration");
|
|
749
1003
|
}
|
|
750
1004
|
const env = getEnv("esbuild", options);
|
|
@@ -820,11 +1074,11 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
820
1074
|
return result;
|
|
821
1075
|
}, "resolveOptions");
|
|
822
1076
|
async function generatePackageJson(context2) {
|
|
823
|
-
if (context2.options.generatePackageJson !== false &&
|
|
1077
|
+
if (context2.options.generatePackageJson !== false && existsSync4(joinPaths(context2.options.projectRoot, "package.json"))) {
|
|
824
1078
|
writeDebug(" \u270D\uFE0F Writing package.json file", context2.options.config);
|
|
825
1079
|
const stopwatch = getStopwatch("Write package.json file");
|
|
826
1080
|
const packageJsonPath = joinPaths(context2.options.projectRoot, "project.json");
|
|
827
|
-
if (!
|
|
1081
|
+
if (!existsSync4(packageJsonPath)) {
|
|
828
1082
|
throw new Error("Cannot find package.json configuration");
|
|
829
1083
|
}
|
|
830
1084
|
const packageJsonFile = await hf.readFile(joinPaths(context2.options.config.workspaceRoot, context2.options.projectRoot, "package.json"), "utf8");
|
|
@@ -904,6 +1158,7 @@ async function executeEsBuild(context2) {
|
|
|
904
1158
|
const options = {
|
|
905
1159
|
...context2.options
|
|
906
1160
|
};
|
|
1161
|
+
options.outdir = joinPaths(context2.options.outdir, context2.options.distDir);
|
|
907
1162
|
delete options.env;
|
|
908
1163
|
delete options.name;
|
|
909
1164
|
delete options.assets;
|
|
@@ -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 = {
|