@storm-software/workspace-tools 1.230.0 → 1.231.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 +12 -0
- package/README.md +1 -1
- package/dist/{chunk-CT7IVPJY.js → chunk-22DNWOG2.js} +25 -36
- package/dist/{chunk-ESRRKJO5.mjs → chunk-357OS575.mjs} +2 -2
- package/dist/{chunk-WTHELTBU.mjs → chunk-3QS2VXIW.mjs} +2 -2
- package/dist/{chunk-ZCZVVZBX.js → chunk-4KC6BQY6.js} +3 -3
- package/dist/{chunk-B3KIYNGT.mjs → chunk-63CXRJMW.mjs} +1 -1
- package/dist/{chunk-6B6IVIMQ.js → chunk-6G34PMHG.js} +3 -3
- package/dist/{chunk-DLO5NZQI.mjs → chunk-6S33LGZA.mjs} +3 -3
- package/dist/{chunk-DIODSFGH.js → chunk-AEHR536C.js} +41 -41
- package/dist/{chunk-I7OZOKTH.js → chunk-AX2GAIC6.js} +3 -3
- package/dist/{chunk-GV44QHV3.mjs → chunk-BXRWY5YI.mjs} +3 -3
- package/dist/{chunk-NCVJPQSP.js → chunk-CXLDWFA3.js} +15 -15
- package/dist/{chunk-PMDV5GKD.js → chunk-DDDV5CIY.js} +3 -3
- package/dist/{chunk-3GVBGSCQ.js → chunk-DIPIPI7H.js} +2 -2
- package/dist/{chunk-35B5C22H.mjs → chunk-E4RAOLUW.mjs} +2 -2
- package/dist/{chunk-7MZQTO7J.js → chunk-EDHSW6KA.js} +12 -12
- package/dist/{chunk-JEV3GSS7.js → chunk-EI3PUSCC.js} +9 -9
- package/dist/{chunk-W4QV74K2.mjs → chunk-FAD3MJIO.mjs} +1 -1
- package/dist/{chunk-UDAQKEJS.mjs → chunk-GFOMWTSR.mjs} +21 -32
- package/dist/{chunk-ZXT33DDB.js → chunk-I56CGXM6.js} +3 -3
- package/dist/{chunk-FP4PPOO6.js → chunk-IQU4KSXC.js} +3 -3
- package/dist/{chunk-36FMHXUD.js → chunk-IX2EZD3F.js} +4 -4
- package/dist/{chunk-SFT3A33D.mjs → chunk-JXN5JXWD.mjs} +3 -3
- package/dist/{chunk-OA7KWN7D.mjs → chunk-KKDGYFKY.mjs} +3 -3
- package/dist/{chunk-WJ5TU6JU.mjs → chunk-KNXGOGL5.mjs} +4 -4
- package/dist/{chunk-MSENNRAY.js → chunk-LDCPNOWX.js} +19 -19
- package/dist/{chunk-KLEKFCL2.js → chunk-LPWSHG6O.js} +2 -2
- package/dist/{chunk-DB7BVAE7.js → chunk-LXPMDNMJ.js} +58 -86
- package/dist/{chunk-OESA3G7F.mjs → chunk-NZMTUJGQ.mjs} +3 -3
- package/dist/{chunk-PS55UN6T.mjs → chunk-PE2DD2SV.mjs} +1 -1
- package/dist/{chunk-JGTW4AJ7.mjs → chunk-S73VA7HH.mjs} +3 -3
- package/dist/{chunk-OJ3R7YBK.js → chunk-S7QZCTBR.js} +31 -31
- package/dist/{chunk-XSCTGWRG.mjs → chunk-TAJBCIVO.mjs} +3 -3
- package/dist/{chunk-F5WI7VDM.js → chunk-TRTFGC6N.js} +3 -3
- package/dist/{chunk-6267MSX4.mjs → chunk-UENELRBB.mjs} +4 -4
- package/dist/{chunk-MF4RRA4Q.mjs → chunk-UK7LZSMG.mjs} +7 -7
- package/dist/{chunk-QMJ7P54Z.mjs → chunk-VHTLAFRU.mjs} +3 -3
- package/dist/{chunk-T7IVGU7T.mjs → chunk-X7G7IR2C.mjs} +3 -3
- package/dist/{chunk-B7LWGAUI.js → chunk-X7YSSPPZ.js} +5 -5
- package/dist/{chunk-TILR7372.js → chunk-Y2IMY233.js} +5 -5
- package/dist/{chunk-JMWQGXHM.mjs → chunk-YMGOLNMM.mjs} +33 -61
- package/dist/executors.js +17 -17
- package/dist/executors.mjs +18 -18
- package/dist/generators.js +11 -11
- package/dist/generators.mjs +13 -13
- package/dist/index.js +47 -47
- package/dist/index.mjs +64 -64
- package/dist/src/base/base-executor.js +4 -4
- package/dist/src/base/base-executor.mjs +3 -3
- package/dist/src/base/base-generator.js +3 -3
- package/dist/src/base/base-generator.mjs +2 -2
- package/dist/src/base/index.js +12 -12
- package/dist/src/base/index.mjs +14 -14
- package/dist/src/executors/cargo-build/executor.js +6 -6
- package/dist/src/executors/cargo-build/executor.mjs +5 -5
- package/dist/src/executors/cargo-check/executor.js +6 -6
- package/dist/src/executors/cargo-check/executor.mjs +5 -5
- package/dist/src/executors/cargo-clippy/executor.js +6 -6
- package/dist/src/executors/cargo-clippy/executor.mjs +5 -5
- package/dist/src/executors/cargo-doc/executor.js +6 -6
- package/dist/src/executors/cargo-doc/executor.mjs +5 -5
- package/dist/src/executors/cargo-format/executor.js +6 -6
- package/dist/src/executors/cargo-format/executor.mjs +5 -5
- package/dist/src/executors/clean-package/executor.js +6 -6
- package/dist/src/executors/clean-package/executor.mjs +3 -3
- package/dist/src/executors/esbuild/executor.js +6 -6
- package/dist/src/executors/esbuild/executor.mjs +5 -5
- package/dist/src/executors/size-limit/executor.js +5 -5
- package/dist/src/executors/size-limit/executor.mjs +4 -4
- package/dist/src/executors/tsdown/executor.js +6 -6
- package/dist/src/executors/tsdown/executor.mjs +5 -5
- package/dist/src/executors/typia/executor.js +5 -5
- package/dist/src/executors/typia/executor.mjs +4 -4
- package/dist/src/executors/unbuild/executor.js +6 -6
- package/dist/src/executors/unbuild/executor.mjs +5 -5
- package/dist/src/generators/browser-library/generator.js +4 -4
- package/dist/src/generators/browser-library/generator.mjs +3 -3
- package/dist/src/generators/config-schema/generator.js +4 -4
- package/dist/src/generators/config-schema/generator.mjs +3 -3
- package/dist/src/generators/neutral-library/generator.js +4 -4
- package/dist/src/generators/neutral-library/generator.mjs +3 -3
- package/dist/src/generators/node-library/generator.js +4 -4
- package/dist/src/generators/node-library/generator.mjs +3 -3
- package/dist/src/generators/preset/generator.js +4 -4
- package/dist/src/generators/preset/generator.mjs +3 -3
- package/dist/src/generators/release-version/generator.js +3 -3
- package/dist/src/generators/release-version/generator.mjs +2 -2
- package/dist/src/plugins/rust/cargo-toml.js +3 -3
- package/dist/src/plugins/rust/cargo-toml.mjs +2 -2
- package/dist/src/plugins/rust/index.js +3 -3
- package/dist/src/plugins/rust/index.mjs +2 -2
- package/dist/src/utils/index.js +8 -8
- package/dist/src/utils/index.mjs +18 -18
- package/package.json +1 -1
- package/dist/{chunk-XONECYS4.js → chunk-YESI2BBC.js} +2 -2
- package/dist/{chunk-GZPCM2GI.mjs → chunk-Z322IWWR.mjs} +4 -4
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkFBLF4KJFjs = require('./chunk-FBLF4KJF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCXLDWFA3js = require('./chunk-CXLDWFA3.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -42,7 +42,7 @@ async function neutralLibraryGeneratorFn(tree, schema, config) {
|
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
_chunk3GQAWCBQjs.__name.call(void 0, neutralLibraryGeneratorFn, "neutralLibraryGeneratorFn");
|
|
45
|
-
var generator_default =
|
|
45
|
+
var generator_default = _chunkCXLDWFA3js.withRunGenerator.call(void 0, "TypeScript Library Creator (Neutral Platform)", neutralLibraryGeneratorFn, {
|
|
46
46
|
hooks: {
|
|
47
47
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
48
48
|
options.description ??= "A library used by Storm Software to support either browser or NodeJs applications";
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk22DNWOG2js = require('./chunk-22DNWOG2.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkLDCPNOWXjs = require('./chunk-LDCPNOWX.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -18,13 +18,12 @@ var _chunkMSENNRAYjs = require('./chunk-MSENNRAY.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkIX2EZD3Fjs = require('./chunk-IX2EZD3F.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
29
28
|
|
|
30
29
|
// ../unbuild/src/build.ts
|
|
@@ -41,8 +40,8 @@ var _unbuild = require('unbuild');
|
|
|
41
40
|
// ../unbuild/src/clean.ts
|
|
42
41
|
|
|
43
42
|
async function clean(name = "Unbuild", directory, config) {
|
|
44
|
-
|
|
45
|
-
const stopwatch =
|
|
43
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
44
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
46
45
|
await _promises.rm.call(void 0, directory, {
|
|
47
46
|
recursive: true,
|
|
48
47
|
force: true
|
|
@@ -71,7 +70,7 @@ var analyzePlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
71
70
|
renderChunk(source, chunk) {
|
|
72
71
|
const sourceBytes = formatBytes(source.length);
|
|
73
72
|
const fileName = chunk.fileName;
|
|
74
|
-
|
|
73
|
+
_chunkIX2EZD3Fjs.writeInfo.call(void 0, ` - ${fileName} ${sourceBytes}`, resolvedOptions.config);
|
|
75
74
|
}
|
|
76
75
|
};
|
|
77
76
|
}, "analyzePlugin");
|
|
@@ -81,7 +80,7 @@ var onErrorPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (option
|
|
|
81
80
|
name: "storm:on-error",
|
|
82
81
|
buildEnd(error) {
|
|
83
82
|
if (error) {
|
|
84
|
-
|
|
83
|
+
_chunkIX2EZD3Fjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
85
84
|
${error ? error.message : "Unknown build error"}
|
|
86
85
|
|
|
87
86
|
`, resolvedOptions.config);
|
|
@@ -89,7 +88,7 @@ ${error ? error.message : "Unknown build error"}
|
|
|
89
88
|
}
|
|
90
89
|
},
|
|
91
90
|
renderError(error) {
|
|
92
|
-
|
|
91
|
+
_chunkIX2EZD3Fjs.writeError.call(void 0, `The following errors occurred during the build:
|
|
93
92
|
${error ? error.message : "Unknown build error"}
|
|
94
93
|
|
|
95
94
|
`, resolvedOptions.config);
|
|
@@ -97,26 +96,6 @@ ${error ? error.message : "Unknown build error"}
|
|
|
97
96
|
}
|
|
98
97
|
}), "onErrorPlugin");
|
|
99
98
|
|
|
100
|
-
// ../unbuild/src/plugins/swc.ts
|
|
101
|
-
var swcPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options, resolvedOptions) => {
|
|
102
|
-
const { transform } = _chunk3GQAWCBQjs.__require.call(void 0, "@swc/core");
|
|
103
|
-
return {
|
|
104
|
-
name: "storm:swc",
|
|
105
|
-
transform(code, filename) {
|
|
106
|
-
return transform(code, {
|
|
107
|
-
filename,
|
|
108
|
-
jsc: {
|
|
109
|
-
transform: {
|
|
110
|
-
react: {
|
|
111
|
-
runtime: "automatic"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
}, "swcPlugin");
|
|
119
|
-
|
|
120
99
|
// ../unbuild/src/plugins/tsc.ts
|
|
121
100
|
|
|
122
101
|
|
|
@@ -144,16 +123,14 @@ async function createTsCompilerOptions(config, tsConfigPath, projectRoot, depend
|
|
|
144
123
|
declaration: true,
|
|
145
124
|
paths: _buildablelibsutils.computeCompilerOptionsPaths.call(void 0, tsConfig, _nullishCoalesce(dependencies, () => ( [])))
|
|
146
125
|
};
|
|
147
|
-
|
|
126
|
+
_chunkIX2EZD3Fjs.writeTrace.call(void 0, compilerOptions, config);
|
|
148
127
|
return compilerOptions;
|
|
149
128
|
}
|
|
150
129
|
_chunk3GQAWCBQjs.__name.call(void 0, createTsCompilerOptions, "createTsCompilerOptions");
|
|
151
130
|
|
|
152
131
|
// ../unbuild/src/plugins/tsc.ts
|
|
153
132
|
var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, resolvedOptions) => {
|
|
154
|
-
const projectGraph =
|
|
155
|
-
exitOnError: true
|
|
156
|
-
});
|
|
133
|
+
const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
|
|
157
134
|
const result = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, resolvedOptions.config.workspaceRoot, resolvedOptions.projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
158
135
|
let dependencies = result.dependencies;
|
|
159
136
|
const tsLibDependency = _compilerhelperdependency.getHelperDependency.call(void 0, _compilerhelperdependency.HelperDependency.tsc, resolvedOptions.tsconfig, dependencies, projectGraph, true);
|
|
@@ -172,37 +149,39 @@ var tscPlugin = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (opti
|
|
|
172
149
|
|
|
173
150
|
// ../unbuild/src/plugins/type-definitions.ts
|
|
174
151
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
152
|
+
function typeDefinitions(projectRoot) {
|
|
153
|
+
return {
|
|
154
|
+
name: "storm:dts-bundle",
|
|
155
|
+
async generateBundle(_opts, bundle) {
|
|
156
|
+
for (const file of Object.values(bundle)) {
|
|
157
|
+
if (file.type === "asset" || !file.isEntry || file.facadeModuleId == null) {
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
const hasDefaultExport = file.exports.includes("default");
|
|
161
|
+
const entrySourceFileName = _path.relative.call(void 0, projectRoot, file.facadeModuleId);
|
|
162
|
+
const entrySourceDtsName = entrySourceFileName.replace(/\.[cm]?[jt]sx?$/, "");
|
|
163
|
+
const dtsFileName = file.fileName.replace(/\.[cm]?js$/, ".d.ts");
|
|
164
|
+
const relativeSourceDtsName = JSON.stringify("./" + entrySourceDtsName);
|
|
165
|
+
const dtsFileSource = hasDefaultExport ? `
|
|
188
166
|
export * from ${relativeSourceDtsName};
|
|
189
167
|
export { default } from ${relativeSourceDtsName};
|
|
190
168
|
` : `export * from ${relativeSourceDtsName};
|
|
191
169
|
`;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
170
|
+
this.emitFile({
|
|
171
|
+
type: "asset",
|
|
172
|
+
fileName: dtsFileName,
|
|
173
|
+
source: dtsFileSource
|
|
174
|
+
});
|
|
175
|
+
}
|
|
197
176
|
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
_chunk3GQAWCBQjs.__name.call(void 0, typeDefinitions, "typeDefinitions");
|
|
200
180
|
|
|
201
181
|
// ../unbuild/src/config.ts
|
|
202
182
|
var getDefaultBuildPlugins = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, resolvedOptions) => Promise.all([
|
|
203
183
|
analyzePlugin(options, resolvedOptions),
|
|
204
|
-
|
|
205
|
-
typeDefinitions(options, resolvedOptions),
|
|
184
|
+
typeDefinitions(resolvedOptions.projectRoot),
|
|
206
185
|
tscPlugin(options, resolvedOptions),
|
|
207
186
|
onErrorPlugin(options, resolvedOptions)
|
|
208
187
|
].map((plugin) => Promise.resolve(plugin))), "getDefaultBuildPlugins");
|
|
@@ -218,18 +197,16 @@ async function resolveOptions(options) {
|
|
|
218
197
|
if (!workspaceRoot) {
|
|
219
198
|
throw new Error("Cannot find workspace root");
|
|
220
199
|
}
|
|
221
|
-
const config = await
|
|
222
|
-
|
|
223
|
-
const stopwatch =
|
|
200
|
+
const config = await _chunkIX2EZD3Fjs.loadStormConfig.call(void 0, workspaceRoot.dir);
|
|
201
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
202
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, "Build options resolution");
|
|
224
203
|
if (options.configPath) {
|
|
225
204
|
const configFile = await loadConfig(options.configPath);
|
|
226
205
|
if (configFile) {
|
|
227
206
|
options = _defu2.default.call(void 0, options, configFile);
|
|
228
207
|
}
|
|
229
208
|
}
|
|
230
|
-
const projectGraph =
|
|
231
|
-
exitOnError: true
|
|
232
|
-
});
|
|
209
|
+
const projectGraph = _devkit.readCachedProjectGraph.call(void 0, );
|
|
233
210
|
const projectJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, config.workspaceRoot, projectRoot, "project.json");
|
|
234
211
|
if (!_fs.existsSync.call(void 0, projectJsonPath)) {
|
|
235
212
|
throw new Error("Cannot find project.json configuration");
|
|
@@ -257,10 +234,6 @@ async function resolveOptions(options) {
|
|
|
257
234
|
if (!_fs.existsSync.call(void 0, sourceRoot)) {
|
|
258
235
|
throw new Error("Cannot find sourceRoot directory");
|
|
259
236
|
}
|
|
260
|
-
const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
|
|
261
|
-
if (!_optionalChain([projectConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName]])) {
|
|
262
|
-
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.");
|
|
263
|
-
}
|
|
264
237
|
const result = _buildablelibsutils.calculateProjectBuildableDependencies.call(void 0, void 0, projectGraph, workspaceRoot.dir, projectName, process.env.NX_TASK_TARGET_TARGET || "build", process.env.NX_TASK_TARGET_CONFIGURATION || "production", true);
|
|
265
238
|
let dependencies = result.dependencies;
|
|
266
239
|
const tsLibDependency = _js.getHelperDependency.call(void 0, _js.HelperDependency.tsc, tsconfig, dependencies, projectGraph, true);
|
|
@@ -345,7 +318,7 @@ async function resolveOptions(options) {
|
|
|
345
318
|
splitting: options.splitting !== false,
|
|
346
319
|
treeShaking: options.treeShaking !== false,
|
|
347
320
|
color: true,
|
|
348
|
-
logLevel: config.logLevel ===
|
|
321
|
+
logLevel: config.logLevel === _chunkIX2EZD3Fjs.LogLevelLabel.FATAL ? _chunkIX2EZD3Fjs.LogLevelLabel.ERROR : _chunkIX2EZD3Fjs.isVerbose.call(void 0, ) ? "verbose" : config.logLevel
|
|
349
322
|
}
|
|
350
323
|
}
|
|
351
324
|
};
|
|
@@ -382,8 +355,8 @@ async function resolveOptions(options) {
|
|
|
382
355
|
_chunk3GQAWCBQjs.__name.call(void 0, resolveOptions, "resolveOptions");
|
|
383
356
|
async function generatePackageJson(options) {
|
|
384
357
|
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
385
|
-
|
|
386
|
-
const stopwatch =
|
|
358
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
359
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, "Write package.json file");
|
|
387
360
|
const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
388
361
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
389
362
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -393,18 +366,17 @@ async function generatePackageJson(options) {
|
|
|
393
366
|
throw new Error("Cannot find package.json configuration file");
|
|
394
367
|
}
|
|
395
368
|
let packageJson = JSON.parse(packageJsonContent);
|
|
396
|
-
packageJson = await
|
|
397
|
-
packageJson = await
|
|
398
|
-
|
|
399
|
-
await _devkit.writeJsonFile.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
369
|
+
packageJson = await _chunk22DNWOG2js.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
|
|
370
|
+
packageJson = await _chunk22DNWOG2js.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
|
|
371
|
+
await _devkit.writeJsonFile.call(void 0, _chunkXCSSYTCUjs.joinPaths.call(void 0, options.outDir, "package.json"), await _chunk22DNWOG2js.addPackageJsonExports.call(void 0, options.sourceRoot, packageJson));
|
|
400
372
|
stopwatch();
|
|
401
373
|
}
|
|
402
374
|
return options;
|
|
403
375
|
}
|
|
404
376
|
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
405
377
|
async function executeUnbuild(options) {
|
|
406
|
-
|
|
407
|
-
const stopwatch =
|
|
378
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} (${options.projectRoot}) build`, options.config);
|
|
379
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, `${options.name} (${options.projectRoot}) build`);
|
|
408
380
|
try {
|
|
409
381
|
await _unbuild.build.call(void 0, options.projectRoot, false, {
|
|
410
382
|
...options,
|
|
@@ -417,9 +389,9 @@ async function executeUnbuild(options) {
|
|
|
417
389
|
}
|
|
418
390
|
_chunk3GQAWCBQjs.__name.call(void 0, executeUnbuild, "executeUnbuild");
|
|
419
391
|
async function copyBuildAssets(options) {
|
|
420
|
-
|
|
421
|
-
const stopwatch =
|
|
422
|
-
await
|
|
392
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outDir}`, options.config);
|
|
393
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
394
|
+
await _chunk22DNWOG2js.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outDir, options.projectRoot, options.projectName, options.sourceRoot, options.generatePackageJson, options.includeSrc);
|
|
423
395
|
stopwatch();
|
|
424
396
|
return options;
|
|
425
397
|
}
|
|
@@ -432,17 +404,17 @@ async function cleanOutputPath(options) {
|
|
|
432
404
|
}
|
|
433
405
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
434
406
|
async function build(options) {
|
|
435
|
-
|
|
436
|
-
const stopwatch =
|
|
407
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u26A1 Executing Storm Unbuild pipeline`);
|
|
408
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, "Unbuild pipeline");
|
|
437
409
|
try {
|
|
438
410
|
const resolvedOptions = await resolveOptions(options);
|
|
439
411
|
await cleanOutputPath(resolvedOptions);
|
|
440
412
|
await generatePackageJson(resolvedOptions);
|
|
441
413
|
await executeUnbuild(resolvedOptions);
|
|
442
414
|
await copyBuildAssets(resolvedOptions);
|
|
443
|
-
|
|
415
|
+
_chunkIX2EZD3Fjs.writeSuccess.call(void 0, ` \u{1F3C1} The ${resolvedOptions.name} build completed successfully`, resolvedOptions.config);
|
|
444
416
|
} catch (error) {
|
|
445
|
-
|
|
417
|
+
_chunkIX2EZD3Fjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
446
418
|
throw error;
|
|
447
419
|
} finally {
|
|
448
420
|
stopwatch();
|
|
@@ -453,15 +425,15 @@ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
|
|
|
453
425
|
// src/executors/unbuild/executor.ts
|
|
454
426
|
|
|
455
427
|
async function unbuildExecutorFn(options, context, config) {
|
|
456
|
-
|
|
457
|
-
if (!_optionalChain([context, 'access',
|
|
428
|
+
_chunkIX2EZD3Fjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm Unbuild executor on the workspace", config);
|
|
429
|
+
if (!_optionalChain([context, 'access', _ => _.projectsConfigurations, 'optionalAccess', _2 => _2.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'access', _4 => _4.projects, 'access', _5 => _5[context.projectName], 'optionalAccess', _6 => _6.root])) {
|
|
458
430
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
459
431
|
}
|
|
460
432
|
await build(_defu.defu.call(void 0, {
|
|
461
433
|
...options,
|
|
462
|
-
projectRoot: _optionalChain([context, 'access',
|
|
434
|
+
projectRoot: _optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'optionalAccess', _9 => _9[context.projectName], 'access', _10 => _10.root]),
|
|
463
435
|
projectName: context.projectName,
|
|
464
|
-
sourceRoot: _optionalChain([context, 'access',
|
|
436
|
+
sourceRoot: _optionalChain([context, 'access', _11 => _11.projectsConfigurations, 'access', _12 => _12.projects, 'optionalAccess', _13 => _13[context.projectName], 'optionalAccess', _14 => _14.sourceRoot]),
|
|
465
437
|
platform: options.platform,
|
|
466
438
|
name: context.projectName
|
|
467
439
|
}, {
|
|
@@ -496,7 +468,7 @@ async function unbuildExecutorFn(options, context, config) {
|
|
|
496
468
|
};
|
|
497
469
|
}
|
|
498
470
|
_chunk3GQAWCBQjs.__name.call(void 0, unbuildExecutorFn, "unbuildExecutorFn");
|
|
499
|
-
var executor_default =
|
|
471
|
+
var executor_default = _chunkLDCPNOWXjs.withRunExecutor.call(void 0, "TypeScript Unbuild build", unbuildExecutorFn, {
|
|
500
472
|
skipReadingConfig: false,
|
|
501
473
|
hooks: {
|
|
502
474
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-UENELRBB.mjs";
|
|
1
4
|
import {
|
|
2
5
|
buildCargoCommand,
|
|
3
6
|
cargoCommand
|
|
4
7
|
} from "./chunk-QZHIWK5Z.mjs";
|
|
5
|
-
import {
|
|
6
|
-
withRunExecutor
|
|
7
|
-
} from "./chunk-6267MSX4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-UENELRBB.mjs";
|
|
1
4
|
import {
|
|
2
5
|
buildCargoCommand,
|
|
3
6
|
cargoCommand
|
|
4
7
|
} from "./chunk-QZHIWK5Z.mjs";
|
|
5
|
-
import {
|
|
6
|
-
withRunExecutor
|
|
7
|
-
} from "./chunk-6267MSX4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk22DNWOG2js = require('./chunk-22DNWOG2.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkLDCPNOWXjs = require('./chunk-LDCPNOWX.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ var _chunkMSENNRAYjs = require('./chunk-MSENNRAY.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkIX2EZD3Fjs = require('./chunk-IX2EZD3F.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunkXCSSYTCUjs = require('./chunk-XCSSYTCU.js');
|
|
@@ -37,8 +37,8 @@ var _tsdown = require('tsdown');
|
|
|
37
37
|
// ../tsdown/src/clean.ts
|
|
38
38
|
|
|
39
39
|
async function clean(name = "ESBuild", directory, config) {
|
|
40
|
-
|
|
41
|
-
const stopwatch =
|
|
40
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
41
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
42
42
|
await _node.hfs.deleteAll(directory);
|
|
43
43
|
stopwatch();
|
|
44
44
|
}
|
|
@@ -73,9 +73,9 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
73
73
|
if (!workspaceRoot) {
|
|
74
74
|
throw new Error("Cannot find Nx workspace root");
|
|
75
75
|
}
|
|
76
|
-
const config = await
|
|
77
|
-
|
|
78
|
-
const stopwatch =
|
|
76
|
+
const config = await _chunkIX2EZD3Fjs.loadStormConfig.call(void 0, workspaceRoot.dir);
|
|
77
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
78
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, "Build options resolution");
|
|
79
79
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
80
80
|
exitOnError: true
|
|
81
81
|
});
|
|
@@ -91,19 +91,19 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
91
91
|
}
|
|
92
92
|
const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
|
|
93
93
|
options.name ??= `${projectName}-${options.format}`;
|
|
94
|
-
options.target ??=
|
|
94
|
+
options.target ??= _chunk22DNWOG2js.DEFAULT_TARGET;
|
|
95
95
|
const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
96
96
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
97
97
|
throw new Error("Cannot find package.json configuration");
|
|
98
98
|
}
|
|
99
|
-
const env =
|
|
99
|
+
const env = _chunk22DNWOG2js.getEnv.call(void 0, "tsdown", options);
|
|
100
100
|
const result = {
|
|
101
101
|
...options,
|
|
102
102
|
config,
|
|
103
103
|
...userOptions,
|
|
104
104
|
tsconfig: _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
105
105
|
format: options.format || "cjs",
|
|
106
|
-
entryPoints: await
|
|
106
|
+
entryPoints: await _chunk22DNWOG2js.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
|
|
107
107
|
"./src/index.ts"
|
|
108
108
|
], userOptions.emitOnAll),
|
|
109
109
|
outdir: userOptions.outputPath || _chunkXCSSYTCUjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
@@ -114,7 +114,7 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
114
114
|
projectGraph,
|
|
115
115
|
sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkXCSSYTCUjs.joinPaths.call(void 0, projectRoot, "src"),
|
|
116
116
|
minify: userOptions.minify || !userOptions.debug,
|
|
117
|
-
verbose: userOptions.verbose ||
|
|
117
|
+
verbose: userOptions.verbose || _chunkIX2EZD3Fjs.isVerbose.call(void 0, ) || userOptions.debug === true,
|
|
118
118
|
includeSrc: userOptions.includeSrc === true,
|
|
119
119
|
metafile: userOptions.metafile !== false,
|
|
120
120
|
generatePackageJson: userOptions.generatePackageJson !== false,
|
|
@@ -149,8 +149,8 @@ var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async
|
|
|
149
149
|
}, "resolveOptions");
|
|
150
150
|
async function generatePackageJson(options) {
|
|
151
151
|
if (options.generatePackageJson !== false && await _node.hfs.isFile(_chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
152
|
-
|
|
153
|
-
const stopwatch =
|
|
152
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
|
|
153
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, "Write package.json file");
|
|
154
154
|
const packageJsonPath = _chunkXCSSYTCUjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
155
155
|
if (!await _node.hfs.isFile(packageJsonPath)) {
|
|
156
156
|
throw new Error("Cannot find package.json configuration");
|
|
@@ -159,11 +159,11 @@ async function generatePackageJson(options) {
|
|
|
159
159
|
if (!packageJson) {
|
|
160
160
|
throw new Error("Cannot find package.json configuration file");
|
|
161
161
|
}
|
|
162
|
-
packageJson = await
|
|
163
|
-
packageJson = await
|
|
162
|
+
packageJson = await _chunk22DNWOG2js.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
|
|
163
|
+
packageJson = await _chunk22DNWOG2js.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
|
|
164
164
|
packageJson.exports ??= {};
|
|
165
165
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
166
|
-
packageJson.exports["."] ??=
|
|
166
|
+
packageJson.exports["."] ??= _chunk22DNWOG2js.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
|
|
167
167
|
let entryPoints = [
|
|
168
168
|
{
|
|
169
169
|
in: "./src/index.ts",
|
|
@@ -181,7 +181,7 @@ async function generatePackageJson(options) {
|
|
|
181
181
|
const split = entryPoint.out.split(".");
|
|
182
182
|
split.pop();
|
|
183
183
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
184
|
-
packageJson.exports[`./${entry}`] ??=
|
|
184
|
+
packageJson.exports[`./${entry}`] ??= _chunk22DNWOG2js.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
|
|
@@ -200,8 +200,8 @@ async function generatePackageJson(options) {
|
|
|
200
200
|
}
|
|
201
201
|
_chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
|
|
202
202
|
async function executeTSDown(options) {
|
|
203
|
-
|
|
204
|
-
const stopwatch =
|
|
203
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
|
|
204
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, `${options.name} build`);
|
|
205
205
|
await _tsdown.build.call(void 0, {
|
|
206
206
|
...options,
|
|
207
207
|
entry: options.entryPoints,
|
|
@@ -213,15 +213,15 @@ async function executeTSDown(options) {
|
|
|
213
213
|
}
|
|
214
214
|
_chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
|
|
215
215
|
async function copyBuildAssets(options) {
|
|
216
|
-
|
|
217
|
-
const stopwatch =
|
|
218
|
-
await
|
|
216
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
|
|
217
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
218
|
+
await _chunk22DNWOG2js.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.projectName, options.sourceRoot, true, false);
|
|
219
219
|
stopwatch();
|
|
220
220
|
return options;
|
|
221
221
|
}
|
|
222
222
|
_chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
|
|
223
223
|
async function reportResults(options) {
|
|
224
|
-
|
|
224
|
+
_chunkIX2EZD3Fjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
|
|
225
225
|
}
|
|
226
226
|
_chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
|
|
227
227
|
async function cleanOutputPath(options) {
|
|
@@ -232,8 +232,8 @@ async function cleanOutputPath(options) {
|
|
|
232
232
|
}
|
|
233
233
|
_chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
234
234
|
async function build(options) {
|
|
235
|
-
|
|
236
|
-
const stopwatch =
|
|
235
|
+
_chunkIX2EZD3Fjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
|
|
236
|
+
const stopwatch = _chunkIX2EZD3Fjs.getStopwatch.call(void 0, "TSDown pipeline");
|
|
237
237
|
try {
|
|
238
238
|
const opts = Array.isArray(options) ? options : [
|
|
239
239
|
options
|
|
@@ -251,11 +251,11 @@ async function build(options) {
|
|
|
251
251
|
await reportResults(opt);
|
|
252
252
|
}));
|
|
253
253
|
} else {
|
|
254
|
-
|
|
254
|
+
_chunkIX2EZD3Fjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
_chunkIX2EZD3Fjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
|
|
257
257
|
} catch (error) {
|
|
258
|
-
|
|
258
|
+
_chunkIX2EZD3Fjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
|
|
259
259
|
throw error;
|
|
260
260
|
} finally {
|
|
261
261
|
stopwatch();
|
|
@@ -265,7 +265,7 @@ _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
|
|
|
265
265
|
|
|
266
266
|
// src/executors/tsdown/executor.ts
|
|
267
267
|
async function tsdownExecutorFn(options, context, config) {
|
|
268
|
-
|
|
268
|
+
_chunkIX2EZD3Fjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
|
|
269
269
|
if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
|
|
270
270
|
throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
|
|
271
271
|
}
|
|
@@ -282,7 +282,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
284
|
_chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
|
|
285
|
-
var executor_default =
|
|
285
|
+
var executor_default = _chunkLDCPNOWXjs.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
|
|
286
286
|
skipReadingConfig: false,
|
|
287
287
|
hooks: {
|
|
288
288
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
withRunExecutor
|
|
3
|
+
} from "./chunk-UENELRBB.mjs";
|
|
1
4
|
import {
|
|
2
5
|
buildCargoCommand,
|
|
3
6
|
cargoCommand
|
|
4
7
|
} from "./chunk-QZHIWK5Z.mjs";
|
|
5
|
-
import {
|
|
6
|
-
withRunExecutor
|
|
7
|
-
} from "./chunk-6267MSX4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-XUV4U54K.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
2
|
|
|
3
|
+
var _chunkLDCPNOWXjs = require('./chunk-LDCPNOWX.js');
|
|
3
4
|
|
|
4
|
-
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
|
|
@@ -19,7 +19,7 @@ async function cargoDocExecutor(options, context) {
|
|
|
19
19
|
return await _chunkULBTYC2Bjs.cargoCommand.call(void 0, ...command);
|
|
20
20
|
}
|
|
21
21
|
_chunk3GQAWCBQjs.__name.call(void 0, cargoDocExecutor, "cargoDocExecutor");
|
|
22
|
-
var executor_default =
|
|
22
|
+
var executor_default = _chunkLDCPNOWXjs.withRunExecutor.call(void 0, "Cargo Doc", cargoDocExecutor, {
|
|
23
23
|
skipReadingConfig: false,
|
|
24
24
|
hooks: {
|
|
25
25
|
applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (options) => {
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
applyWorkspaceExecutorTokens
|
|
3
|
-
} from "./chunk-FFBZYD6R.mjs";
|
|
4
1
|
import {
|
|
5
2
|
applyWorkspaceTokens
|
|
6
3
|
} from "./chunk-NDDXQD7R.mjs";
|
|
@@ -14,7 +11,10 @@ import {
|
|
|
14
11
|
writeInfo,
|
|
15
12
|
writeSuccess,
|
|
16
13
|
writeTrace
|
|
17
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KNXGOGL5.mjs";
|
|
15
|
+
import {
|
|
16
|
+
applyWorkspaceExecutorTokens
|
|
17
|
+
} from "./chunk-FFBZYD6R.mjs";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot
|
|
20
20
|
} from "./chunk-DMUTOQCB.mjs";
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
modifyCargoTable,
|
|
3
|
-
parseCargoToml,
|
|
4
|
-
parseCargoTomlWithTree,
|
|
5
|
-
stringifyCargoToml
|
|
6
|
-
} from "./chunk-VYH45FO6.mjs";
|
|
7
1
|
import {
|
|
8
2
|
getStopwatch,
|
|
9
3
|
loadStormConfig,
|
|
@@ -13,7 +7,13 @@ import {
|
|
|
13
7
|
writeInfo,
|
|
14
8
|
writeSuccess,
|
|
15
9
|
writeTrace
|
|
16
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KNXGOGL5.mjs";
|
|
11
|
+
import {
|
|
12
|
+
modifyCargoTable,
|
|
13
|
+
parseCargoToml,
|
|
14
|
+
parseCargoTomlWithTree,
|
|
15
|
+
stringifyCargoToml
|
|
16
|
+
} from "./chunk-VYH45FO6.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
19
|
} from "./chunk-DMUTOQCB.mjs";
|