@storm-software/workspace-tools 1.293.1 → 1.293.3
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 +65 -0
- package/README.md +69 -7
- package/dist/{chunk-XYDGMWNM.js → chunk-2HWYXG2K.js} +7 -7
- package/dist/{chunk-IVAHNQZP.js → chunk-322ASCCN.js} +3 -3
- package/dist/{chunk-HP36FVRU.mjs → chunk-3UGFRM4O.mjs} +1 -1
- package/dist/chunk-4EA2KL6D.js +124 -0
- package/dist/{chunk-DSDE2UL5.js → chunk-4ROGNJIP.js} +29 -29
- package/dist/{chunk-MYFQ64WE.js → chunk-5EA2N2AH.js} +22 -22
- package/dist/{chunk-ZM7BQH6Q.mjs → chunk-6F75AWBB.mjs} +3 -3
- package/dist/{chunk-QITMVWVJ.mjs → chunk-6IHCTXPW.mjs} +1 -1
- package/dist/{chunk-IUDAADGV.js → chunk-6XDX3W4C.js} +2 -2
- package/dist/{chunk-IIDQ2ITD.mjs → chunk-BELCG4XM.mjs} +1 -1
- package/dist/{chunk-5N7GGHPM.js → chunk-BOC6RTAX.js} +2 -2
- package/dist/{chunk-4HV5G4DT.js → chunk-COIQ4U46.js} +13 -13
- package/dist/{chunk-G2L3EEEO.js → chunk-CQDBLKPF.js} +44 -1
- package/dist/{chunk-REKF65PT.mjs → chunk-DBNK7FLL.mjs} +3 -3
- package/dist/{chunk-SVSX2DDY.js → chunk-DUHZQGVB.js} +2 -2
- package/dist/{chunk-HT7FNLPL.mjs → chunk-DUZOZEUA.mjs} +1 -1
- package/dist/{chunk-6A7OOTO2.js → chunk-EGVBKE43.js} +7 -7
- package/dist/{chunk-CDBRCMR4.mjs → chunk-GIVVWGKW.mjs} +1 -1
- package/dist/{chunk-VGJEUOUN.mjs → chunk-GSZ2BO7G.mjs} +1 -1
- package/dist/{chunk-NXWRHUNL.mjs → chunk-IT3RQADI.mjs} +4 -4
- package/dist/{chunk-BCXNBLCP.mjs → chunk-KFRGKGAD.mjs} +1 -1
- package/dist/{chunk-6JX3VJQY.mjs → chunk-KSUWYBUX.mjs} +1 -1
- package/dist/{chunk-W4IH547O.js → chunk-L5WX3FSM.js} +2 -2
- package/dist/{chunk-K5XMGL6Y.mjs → chunk-L6LJBWJ7.mjs} +3 -3
- package/dist/{chunk-TCC635LO.js → chunk-L7OQTUBA.js} +7 -7
- package/dist/{chunk-EECJXHDA.js → chunk-MF2R2GZF.js} +20 -20
- package/dist/{chunk-F3NQOV2M.mjs → chunk-MFRKH3QL.mjs} +2 -2
- package/dist/{chunk-LA2KY2TQ.js → chunk-ML2VHRB6.js} +2 -2
- package/dist/{chunk-NOTQLVZP.mjs → chunk-NQOA6WGC.mjs} +2 -2
- package/dist/{chunk-T5BI42AO.js → chunk-O5JT5GOM.js} +7 -7
- package/dist/{chunk-YNZUCZH3.js → chunk-OF7BAS3P.js} +5 -5
- package/dist/{chunk-YMZQ7GGX.js → chunk-OGE2WFDW.js} +7 -7
- package/dist/{chunk-EYRX4NM6.mjs → chunk-P2QPOCDL.mjs} +1 -1
- package/dist/{chunk-GEP246CJ.mjs → chunk-P6JV6ABK.mjs} +1 -1
- package/dist/chunk-PQ2ED6U2.mjs +124 -0
- package/dist/{chunk-76SRFTZ2.mjs → chunk-QYHQD375.mjs} +1 -1
- package/dist/{chunk-3Q7VPB75.js → chunk-R5MXU5BG.js} +2 -2
- package/dist/{chunk-MBO4Z5AV.js → chunk-RGRRXFFX.js} +7 -7
- package/dist/{chunk-QEGJ4PKW.js → chunk-ROI6N5XU.js} +2 -2
- package/dist/{chunk-2NHKQWQ5.js → chunk-RVGLZSRS.js} +2 -2
- package/dist/{chunk-ADWXA4ZQ.js → chunk-RYUO22WK.js} +25 -25
- package/dist/{chunk-LXOTH243.js → chunk-RZDOMICP.js} +2 -2
- package/dist/{chunk-332US6XA.mjs → chunk-T3WEFC55.mjs} +1 -1
- package/dist/{chunk-ZP4B44CQ.js → chunk-TAG2PULI.js} +2 -2
- package/dist/{chunk-C26A6BXG.mjs → chunk-TBW5MCN6.mjs} +44 -1
- package/dist/{chunk-FSYURQ5X.js → chunk-TYJZD5KJ.js} +15 -15
- package/dist/{chunk-OOR7HG4P.mjs → chunk-UETG5X2Z.mjs} +4 -4
- package/dist/{chunk-ALFDHMDV.mjs → chunk-UKKUUGK5.mjs} +1 -1
- package/dist/{chunk-J3WZEN2U.js → chunk-VF2LXW3B.js} +2 -2
- package/dist/{chunk-TMUZX6IO.mjs → chunk-VGWI2FQE.mjs} +3 -3
- package/dist/{chunk-TCGF4GS7.js → chunk-VGXI3J3C.js} +2 -2
- package/dist/{chunk-FML2FBSG.mjs → chunk-WHGUOK37.mjs} +1 -1
- package/dist/{chunk-JGFRV7ZL.mjs → chunk-WS5PLNBP.mjs} +3 -3
- package/dist/{chunk-ZTFZJPOM.mjs → chunk-XLZWHFV7.mjs} +3 -3
- package/dist/{chunk-6PVCCKX4.mjs → chunk-Y25P6YPV.mjs} +1 -1
- package/dist/{chunk-YJXVS5UQ.mjs → chunk-YJT4F4GN.mjs} +2 -2
- package/dist/{chunk-32G4OHA3.mjs → chunk-YOM5ZK63.mjs} +5 -5
- package/dist/{chunk-KLUJ3GE7.js → chunk-YXJ3YDLQ.js} +2 -2
- package/dist/{chunk-TJRQRM4Z.mjs → chunk-ZGMVPA2H.mjs} +1 -1
- package/dist/{chunk-5C7DI3NF.js → chunk-ZOUMLMH4.js} +2 -2
- package/dist/{executor-DKkrAhWH.d.ts → executor-B71Pg3y0.d.ts} +9 -0
- package/dist/{executor-BH3B5WW0.d.mts → executor-DQSroBR3.d.mts} +9 -0
- package/dist/executors.d.mts +1 -1
- package/dist/executors.d.ts +1 -1
- package/dist/executors.js +20 -20
- package/dist/executors.mjs +19 -19
- package/dist/generators.js +12 -12
- package/dist/generators.mjs +11 -11
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +31 -31
- package/dist/index.mjs +30 -30
- package/dist/src/base/base-executor.js +6 -6
- package/dist/src/base/base-executor.mjs +5 -5
- package/dist/src/base/base-generator.js +6 -6
- package/dist/src/base/base-generator.mjs +5 -5
- package/dist/src/base/index.js +8 -8
- package/dist/src/base/index.mjs +7 -7
- package/dist/src/executors/cargo-build/executor.js +7 -7
- package/dist/src/executors/cargo-build/executor.mjs +6 -6
- package/dist/src/executors/cargo-check/executor.js +7 -7
- package/dist/src/executors/cargo-check/executor.mjs +6 -6
- package/dist/src/executors/cargo-clippy/executor.js +7 -7
- package/dist/src/executors/cargo-clippy/executor.mjs +6 -6
- package/dist/src/executors/cargo-doc/executor.js +7 -7
- package/dist/src/executors/cargo-doc/executor.mjs +6 -6
- package/dist/src/executors/cargo-format/executor.js +7 -7
- package/dist/src/executors/cargo-format/executor.mjs +6 -6
- package/dist/src/executors/clean-package/executor.js +7 -7
- package/dist/src/executors/clean-package/executor.mjs +5 -5
- package/dist/src/executors/esbuild/executor.js +8 -8
- package/dist/src/executors/esbuild/executor.mjs +7 -7
- package/dist/src/executors/napi/executor.d.mts +1 -1
- package/dist/src/executors/napi/executor.d.ts +1 -1
- package/dist/src/executors/napi/executor.js +7 -7
- package/dist/src/executors/napi/executor.mjs +6 -6
- package/dist/src/executors/napi/schema.d.ts +1 -0
- package/dist/src/executors/napi/schema.json +3 -1
- package/dist/src/executors/napi/untyped.js +2 -1
- package/dist/src/executors/napi/untyped.mjs +2 -1
- package/dist/src/executors/npm-publish/executor.js +6 -6
- package/dist/src/executors/npm-publish/executor.mjs +5 -5
- package/dist/src/executors/size-limit/executor.js +7 -7
- package/dist/src/executors/size-limit/executor.mjs +6 -6
- package/dist/src/executors/tsdown/executor.js +8 -8
- package/dist/src/executors/tsdown/executor.mjs +7 -7
- package/dist/src/executors/typia/executor.js +7 -7
- package/dist/src/executors/typia/executor.mjs +6 -6
- package/dist/src/executors/unbuild/executor.js +7 -7
- package/dist/src/executors/unbuild/executor.mjs +6 -6
- package/dist/src/generators/browser-library/generator.js +8 -8
- package/dist/src/generators/browser-library/generator.mjs +7 -7
- package/dist/src/generators/config-schema/generator.js +7 -7
- package/dist/src/generators/config-schema/generator.mjs +6 -6
- package/dist/src/generators/neutral-library/generator.js +8 -8
- package/dist/src/generators/neutral-library/generator.mjs +7 -7
- package/dist/src/generators/node-library/generator.js +8 -8
- package/dist/src/generators/node-library/generator.mjs +7 -7
- package/dist/src/generators/preset/generator.js +7 -7
- package/dist/src/generators/preset/generator.mjs +6 -6
- package/dist/src/release/index.js +6 -6
- package/dist/src/release/index.mjs +5 -5
- package/dist/src/release/js-version-actions.js +5 -5
- package/dist/src/release/js-version-actions.mjs +4 -4
- package/dist/src/release/rust-version-actions.js +5 -5
- package/dist/src/release/rust-version-actions.mjs +4 -4
- package/dist/src/utils/apply-workspace-tokens.js +4 -4
- package/dist/src/utils/apply-workspace-tokens.mjs +3 -3
- package/dist/src/utils/get-project-configurations.js +4 -4
- package/dist/src/utils/get-project-configurations.mjs +3 -3
- package/dist/src/utils/index.js +6 -6
- package/dist/src/utils/index.mjs +5 -5
- package/dist/src/utils/package-helpers.js +3 -3
- package/dist/src/utils/package-helpers.mjs +2 -2
- package/docs/api/executors/napi/schema.md +1 -0
- package/package.json +8 -8
- package/dist/chunk-6CBCLVUS.mjs +0 -71
- package/dist/chunk-6FRCSY35.js +0 -71
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkTYJZD5KJjs = require('./chunk-TYJZD5KJ.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkL7OQTUBAjs = require('./chunk-L7OQTUBA.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk4ROGNJIPjs = require('./chunk-4ROGNJIP.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -22,10 +22,10 @@ var _chunkDSDE2UL5js = require('./chunk-DSDE2UL5.js');
|
|
|
22
22
|
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk322ASCCNjs = require('./chunk-322ASCCN.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
29
29
|
|
|
30
30
|
// ../tsdown/src/build.ts
|
|
31
31
|
|
|
@@ -75,11 +75,11 @@ function toTSDownFormat(format) {
|
|
|
75
75
|
// ../tsdown/src/build.ts
|
|
76
76
|
var resolveOptions = async (userOptions) => {
|
|
77
77
|
const options = getDefaultOptions(userOptions);
|
|
78
|
-
const workspaceRoot =
|
|
78
|
+
const workspaceRoot = _chunk322ASCCNjs.findWorkspaceRoot.call(void 0, options.projectRoot);
|
|
79
79
|
if (!workspaceRoot) {
|
|
80
80
|
throw new Error("Cannot find Nx workspace root");
|
|
81
81
|
}
|
|
82
|
-
const workspaceConfig = await
|
|
82
|
+
const workspaceConfig = await _chunk4ROGNJIPjs.getWorkspaceConfig.call(void 0, options.debug === true, {
|
|
83
83
|
workspaceRoot
|
|
84
84
|
});
|
|
85
85
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", workspaceConfig);
|
|
@@ -87,7 +87,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
87
87
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
88
88
|
exitOnError: true
|
|
89
89
|
});
|
|
90
|
-
const projectJsonPath =
|
|
90
|
+
const projectJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
91
91
|
workspaceRoot,
|
|
92
92
|
options.projectRoot,
|
|
93
93
|
"project.json"
|
|
@@ -104,7 +104,7 @@ var resolveOptions = async (userOptions) => {
|
|
|
104
104
|
"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."
|
|
105
105
|
);
|
|
106
106
|
}
|
|
107
|
-
const packageJsonPath =
|
|
107
|
+
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
108
108
|
workspaceRoot,
|
|
109
109
|
options.projectRoot,
|
|
110
110
|
"package.json"
|
|
@@ -113,13 +113,13 @@ var resolveOptions = async (userOptions) => {
|
|
|
113
113
|
throw new Error("Cannot find package.json configuration");
|
|
114
114
|
}
|
|
115
115
|
const debug = _nullishCoalesce(options.debug, () => ( (options.mode || workspaceConfig.mode) === "development"));
|
|
116
|
-
const sourceRoot = projectJson.sourceRoot ||
|
|
116
|
+
const sourceRoot = projectJson.sourceRoot || _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "src");
|
|
117
117
|
const result = {
|
|
118
118
|
name: projectName,
|
|
119
119
|
mode: "production",
|
|
120
|
-
target:
|
|
120
|
+
target: _chunkTYJZD5KJjs.DEFAULT_TARGET,
|
|
121
121
|
generatePackageJson: true,
|
|
122
|
-
outDir:
|
|
122
|
+
outDir: _chunkCQDBLKPFjs.joinPaths.call(void 0, "dist", options.projectRoot),
|
|
123
123
|
minify: !debug,
|
|
124
124
|
plugins: [],
|
|
125
125
|
assets: [],
|
|
@@ -131,12 +131,12 @@ var resolveOptions = async (userOptions) => {
|
|
|
131
131
|
clean: false,
|
|
132
132
|
fixedExtension: true,
|
|
133
133
|
nodeProtocol: true,
|
|
134
|
-
tsconfig:
|
|
134
|
+
tsconfig: _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "tsconfig.json"),
|
|
135
135
|
debug,
|
|
136
136
|
sourceRoot,
|
|
137
137
|
cwd: workspaceConfig.workspaceRoot,
|
|
138
138
|
entry: {
|
|
139
|
-
["index"]:
|
|
139
|
+
["index"]: _chunkCQDBLKPFjs.joinPaths.call(void 0, sourceRoot, "index.ts")
|
|
140
140
|
},
|
|
141
141
|
workspace: true,
|
|
142
142
|
...options,
|
|
@@ -149,21 +149,21 @@ var resolveOptions = async (userOptions) => {
|
|
|
149
149
|
};
|
|
150
150
|
result.env = _defu2.default.call(void 0,
|
|
151
151
|
options.env,
|
|
152
|
-
|
|
152
|
+
_chunkTYJZD5KJjs.getEnv.call(void 0, "tsdown", result)
|
|
153
153
|
);
|
|
154
154
|
stopwatch();
|
|
155
155
|
return result;
|
|
156
156
|
};
|
|
157
157
|
async function generatePackageJson(options) {
|
|
158
|
-
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0,
|
|
158
|
+
if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
|
|
159
159
|
_chunk2CDSXWFAjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.workspaceConfig);
|
|
160
160
|
const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, "Write package.json file");
|
|
161
|
-
const packageJsonPath =
|
|
161
|
+
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0, options.projectRoot, "project.json");
|
|
162
162
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
163
163
|
throw new Error("Cannot find package.json configuration");
|
|
164
164
|
}
|
|
165
165
|
const packageJsonFile = await _promises2.default.readFile(
|
|
166
|
-
|
|
166
|
+
_chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
167
167
|
options.workspaceConfig.workspaceRoot,
|
|
168
168
|
options.projectRoot,
|
|
169
169
|
"package.json"
|
|
@@ -174,13 +174,13 @@ async function generatePackageJson(options) {
|
|
|
174
174
|
throw new Error("Cannot find package.json configuration file");
|
|
175
175
|
}
|
|
176
176
|
let packageJson = JSON.parse(packageJsonFile);
|
|
177
|
-
packageJson = await
|
|
177
|
+
packageJson = await _chunkTYJZD5KJjs.addPackageDependencies.call(void 0,
|
|
178
178
|
options.workspaceConfig.workspaceRoot,
|
|
179
179
|
options.projectRoot,
|
|
180
180
|
options.projectName,
|
|
181
181
|
packageJson
|
|
182
182
|
);
|
|
183
|
-
packageJson = await
|
|
183
|
+
packageJson = await _chunkTYJZD5KJjs.addWorkspacePackageJsonFields.call(void 0,
|
|
184
184
|
options.workspaceConfig,
|
|
185
185
|
options.projectRoot,
|
|
186
186
|
options.sourceRoot,
|
|
@@ -190,7 +190,7 @@ async function generatePackageJson(options) {
|
|
|
190
190
|
);
|
|
191
191
|
packageJson.exports ??= {};
|
|
192
192
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
193
|
-
packageJson.exports["."] ??=
|
|
193
|
+
packageJson.exports["."] ??= _chunkTYJZD5KJjs.addPackageJsonExport.call(void 0,
|
|
194
194
|
"index",
|
|
195
195
|
packageJson.type,
|
|
196
196
|
options.sourceRoot
|
|
@@ -206,7 +206,7 @@ async function generatePackageJson(options) {
|
|
|
206
206
|
const split = entryPoint.out.split(".");
|
|
207
207
|
split.pop();
|
|
208
208
|
const entry2 = split.join(".").replaceAll("\\", "/");
|
|
209
|
-
packageJson.exports[`./${entry2}`] ??=
|
|
209
|
+
packageJson.exports[`./${entry2}`] ??= _chunkTYJZD5KJjs.addPackageJsonExport.call(void 0,
|
|
210
210
|
entry2,
|
|
211
211
|
options.fixedExtension ? "fixed" : packageJson.type,
|
|
212
212
|
options.sourceRoot
|
|
@@ -225,7 +225,7 @@ async function generatePackageJson(options) {
|
|
|
225
225
|
},
|
|
226
226
|
packageJson.exports
|
|
227
227
|
);
|
|
228
|
-
await _devkit.writeJsonFile.call(void 0,
|
|
228
|
+
await _devkit.writeJsonFile.call(void 0, _chunkCQDBLKPFjs.joinPaths.call(void 0, options.outDir, "package.json"), packageJson);
|
|
229
229
|
stopwatch();
|
|
230
230
|
}
|
|
231
231
|
return options;
|
|
@@ -247,7 +247,7 @@ async function copyBuildAssets(options) {
|
|
|
247
247
|
options.workspaceConfig
|
|
248
248
|
);
|
|
249
249
|
const stopwatch = _chunk2CDSXWFAjs.getStopwatch.call(void 0, `${options.name} asset copy`);
|
|
250
|
-
await
|
|
250
|
+
await _chunkTYJZD5KJjs.copyAssets.call(void 0,
|
|
251
251
|
options.workspaceConfig,
|
|
252
252
|
_nullishCoalesce(options.assets, () => ( [])),
|
|
253
253
|
options.outDir,
|
|
@@ -341,7 +341,7 @@ async function tsdownExecutorFn(options, context, config) {
|
|
|
341
341
|
success: true
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
var executor_default =
|
|
344
|
+
var executor_default = _chunkL7OQTUBAjs.withRunExecutor.call(void 0,
|
|
345
345
|
"Storm TSDown build",
|
|
346
346
|
tsdownExecutorFn,
|
|
347
347
|
{
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
var _chunkD2PV33E5js = require('./chunk-D2PV33E5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkL7OQTUBAjs = require('./chunk-L7OQTUBA.js');
|
|
8
8
|
|
|
9
9
|
// src/executors/cargo-check/executor.ts
|
|
10
10
|
async function cargoCheckExecutor(options, context) {
|
|
11
11
|
const command = _chunkD2PV33E5js.buildCargoCommand.call(void 0, "check", options, context);
|
|
12
12
|
return await _chunkD2PV33E5js.cargoCommand.call(void 0, context.root, ...command);
|
|
13
13
|
}
|
|
14
|
-
var executor_default =
|
|
14
|
+
var executor_default = _chunkL7OQTUBAjs.withRunExecutor.call(void 0,
|
|
15
15
|
"Cargo - Check",
|
|
16
16
|
cargoCheckExecutor,
|
|
17
17
|
{
|
|
@@ -7,7 +7,7 @@ var _chunkJWFGGMYQjs = require('./chunk-JWFGGMYQ.js');
|
|
|
7
7
|
var _chunkAX3RSZT7js = require('./chunk-AX3RSZT7.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
11
11
|
|
|
12
12
|
// src/utils/package-helpers.ts
|
|
13
13
|
|
|
@@ -48,7 +48,7 @@ var getPackageInfo = (project) => {
|
|
|
48
48
|
return null;
|
|
49
49
|
};
|
|
50
50
|
async function addPackageJsonGitHead(packageRoot) {
|
|
51
|
-
const packageJsonPath =
|
|
51
|
+
const packageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0, packageRoot, "package.json");
|
|
52
52
|
if (!packageJsonPath) {
|
|
53
53
|
throw new Error(
|
|
54
54
|
"No file path provided. Please provide a valid path to the package.json file."
|
|
@@ -9,6 +9,7 @@ function normalizeWindowsPath(input = "") {
|
|
|
9
9
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
10
10
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
11
11
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
12
|
+
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
12
13
|
var correctPaths = function(path) {
|
|
13
14
|
if (!path || path.length === 0) {
|
|
14
15
|
return ".";
|
|
@@ -59,6 +60,30 @@ var joinPaths = function(...segments) {
|
|
|
59
60
|
}
|
|
60
61
|
return correctPaths(path);
|
|
61
62
|
};
|
|
63
|
+
function cwd() {
|
|
64
|
+
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
65
|
+
return process.cwd().replace(/\\/g, "/");
|
|
66
|
+
}
|
|
67
|
+
return "/";
|
|
68
|
+
}
|
|
69
|
+
var resolve = function(...arguments_) {
|
|
70
|
+
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
71
|
+
let resolvedPath = "";
|
|
72
|
+
let resolvedAbsolute = false;
|
|
73
|
+
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
74
|
+
const path = index >= 0 ? arguments_[index] : cwd();
|
|
75
|
+
if (!path || path.length === 0) {
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
resolvedPath = `${path}/${resolvedPath}`;
|
|
79
|
+
resolvedAbsolute = isAbsolute(path);
|
|
80
|
+
}
|
|
81
|
+
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
82
|
+
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
83
|
+
return `/${resolvedPath}`;
|
|
84
|
+
}
|
|
85
|
+
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
86
|
+
};
|
|
62
87
|
function normalizeString(path, allowAboveRoot) {
|
|
63
88
|
let res = "";
|
|
64
89
|
let lastSegmentLength = 0;
|
|
@@ -122,8 +147,26 @@ function normalizeString(path, allowAboveRoot) {
|
|
|
122
147
|
var isAbsolute = function(p) {
|
|
123
148
|
return _IS_ABSOLUTE_RE.test(p);
|
|
124
149
|
};
|
|
150
|
+
var relative = function(from, to) {
|
|
151
|
+
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
152
|
+
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
153
|
+
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
154
|
+
return _to.join("/");
|
|
155
|
+
}
|
|
156
|
+
const _fromCopy = [..._from];
|
|
157
|
+
for (const segment of _fromCopy) {
|
|
158
|
+
if (_to[0] !== segment) {
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
_from.shift();
|
|
162
|
+
_to.shift();
|
|
163
|
+
}
|
|
164
|
+
return [..._from.map(() => ".."), ..._to].join("/");
|
|
165
|
+
};
|
|
125
166
|
|
|
126
167
|
export {
|
|
127
168
|
correctPaths,
|
|
128
|
-
joinPaths
|
|
169
|
+
joinPaths,
|
|
170
|
+
isAbsolute,
|
|
171
|
+
relative
|
|
129
172
|
};
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk322ASCCNjs = require('./chunk-322ASCCN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkCQDBLKPFjs = require('./chunk-CQDBLKPF.js');
|
|
11
11
|
|
|
12
12
|
// ../build-tools/src/config.ts
|
|
13
13
|
var DEFAULT_COMPILED_BANNER = `/*****************************************
|
|
@@ -52,7 +52,7 @@ var copyAssets = async (config, assets, outputPath, projectRoot, sourceRoot, gen
|
|
|
52
52
|
}
|
|
53
53
|
_chunk2CDSXWFAjs.writeTrace.call(void 0,
|
|
54
54
|
`\u{1F4DD} Copying the following assets to the output directory:
|
|
55
|
-
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${
|
|
55
|
+
${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${pendingAsset} -> ${outputPath}` : ` - ${pendingAsset.input}/${pendingAsset.glob} -> ${_chunkCQDBLKPFjs.joinPaths.call(void 0, outputPath, pendingAsset.output)}`).join("\n")}`,
|
|
56
56
|
config
|
|
57
57
|
);
|
|
58
58
|
const assetHandler = new (0, _copyassetshandler.CopyAssetsHandler)({
|
|
@@ -65,17 +65,17 @@ ${pendingAssets.map((pendingAsset) => typeof pendingAsset === "string" ? ` - ${p
|
|
|
65
65
|
_chunk2CDSXWFAjs.writeTrace.call(void 0, "Completed copying assets to the output directory", config);
|
|
66
66
|
if (includeSrc === true) {
|
|
67
67
|
_chunk2CDSXWFAjs.writeDebug.call(void 0,
|
|
68
|
-
`\u{1F4DD} Adding banner and writing source files: ${
|
|
68
|
+
`\u{1F4DD} Adding banner and writing source files: ${_chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
69
69
|
outputPath,
|
|
70
70
|
"src"
|
|
71
71
|
)}`,
|
|
72
72
|
config
|
|
73
73
|
);
|
|
74
74
|
const files = await _glob.glob.call(void 0, [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
_chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.ts"),
|
|
76
|
+
_chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.tsx"),
|
|
77
|
+
_chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.js"),
|
|
78
|
+
_chunkCQDBLKPFjs.joinPaths.call(void 0, config.workspaceRoot, outputPath, "src/**/*.jsx")
|
|
79
79
|
]);
|
|
80
80
|
await Promise.allSettled(
|
|
81
81
|
files.map(
|
|
@@ -130,7 +130,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
130
130
|
)) {
|
|
131
131
|
const projectNode = project.node;
|
|
132
132
|
if (projectNode.data.root) {
|
|
133
|
-
const projectPackageJsonPath =
|
|
133
|
+
const projectPackageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
134
134
|
workspaceRoot,
|
|
135
135
|
projectNode.data.root,
|
|
136
136
|
"package.json"
|
|
@@ -152,7 +152,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
152
152
|
`\u{1F4E6} Adding local packages to package.json: ${localPackages.map((p) => p.name).join(", ")}`
|
|
153
153
|
);
|
|
154
154
|
const projectJsonFile = await _promises.readFile.call(void 0,
|
|
155
|
-
|
|
155
|
+
_chunkCQDBLKPFjs.joinPaths.call(void 0, projectRoot, "project.json"),
|
|
156
156
|
"utf8"
|
|
157
157
|
);
|
|
158
158
|
const projectJson = JSON.parse(projectJsonFile);
|
|
@@ -165,7 +165,7 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
165
165
|
}
|
|
166
166
|
const implicitDependencies = _optionalChain([projectConfigurations, 'access', _9 => _9.projects, 'optionalAccess', _10 => _10[projectName2], 'access', _11 => _11.implicitDependencies, 'optionalAccess', _12 => _12.reduce, 'call', _13 => _13((ret, dep) => {
|
|
167
167
|
if (_optionalChain([projectConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[dep]])) {
|
|
168
|
-
const depPackageJsonPath =
|
|
168
|
+
const depPackageJsonPath = _chunkCQDBLKPFjs.joinPaths.call(void 0,
|
|
169
169
|
workspaceRoot,
|
|
170
170
|
projectConfigurations.projects[dep].root,
|
|
171
171
|
"package.json"
|
|
@@ -201,9 +201,9 @@ var addPackageDependencies = async (workspaceRoot, projectRoot, projectName, pac
|
|
|
201
201
|
return packageJson;
|
|
202
202
|
};
|
|
203
203
|
var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceRoot, projectName, includeSrc = false, packageJson) => {
|
|
204
|
-
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot :
|
|
204
|
+
const workspaceRoot = workspaceConfig.workspaceRoot ? workspaceConfig.workspaceRoot : _chunk322ASCCNjs.findWorkspaceRoot.call(void 0, );
|
|
205
205
|
const workspacePackageJsonContent = await _promises.readFile.call(void 0,
|
|
206
|
-
|
|
206
|
+
_chunkCQDBLKPFjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
|
|
207
207
|
"utf8"
|
|
208
208
|
);
|
|
209
209
|
const workspacePackageJson = JSON.parse(workspacePackageJsonContent);
|
|
@@ -214,7 +214,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
214
214
|
if (distSrc.startsWith("/")) {
|
|
215
215
|
distSrc = distSrc.substring(1);
|
|
216
216
|
}
|
|
217
|
-
packageJson.source ??= `${
|
|
217
|
+
packageJson.source ??= `${_chunkCQDBLKPFjs.joinPaths.call(void 0, distSrc, "index.ts").replaceAll("\\", "/")}`;
|
|
218
218
|
}
|
|
219
219
|
packageJson.files ??= ["dist/**/*"];
|
|
220
220
|
if (includeSrc === true && !packageJson.files.includes("src")) {
|
|
@@ -239,7 +239,7 @@ var addWorkspacePackageJsonFields = async (workspaceConfig, projectRoot, sourceR
|
|
|
239
239
|
packageJson.contributors = [packageJson.author];
|
|
240
240
|
}
|
|
241
241
|
packageJson.repository ??= workspacePackageJson.repository;
|
|
242
|
-
packageJson.repository.directory ??= projectRoot ? projectRoot :
|
|
242
|
+
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkCQDBLKPFjs.joinPaths.call(void 0, "packages", projectName);
|
|
243
243
|
return packageJson;
|
|
244
244
|
};
|
|
245
245
|
var addPackageJsonExport = (file, type = "module", sourceRoot) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addPackageJsonGitHead
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y25P6YPV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NQOA6WGC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
findWorkspaceRoot
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GSZ2BO7G.mjs";
|
|
10
10
|
import {
|
|
11
11
|
joinPaths
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TBW5MCN6.mjs";
|
|
13
13
|
|
|
14
14
|
// ../npm-tools/src/helpers/get-registry.ts
|
|
15
15
|
import { exec } from "node:child_process";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkSZWM7COVjs = require('./chunk-SZWM7COV.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2HWYXG2Kjs = require('./chunk-2HWYXG2K.js');
|
|
8
8
|
|
|
9
9
|
// src/generators/preset/generator.ts
|
|
10
10
|
|
|
@@ -239,7 +239,7 @@ async function presetGeneratorFn(tree, options) {
|
|
|
239
239
|
);
|
|
240
240
|
return null;
|
|
241
241
|
}
|
|
242
|
-
var generator_default =
|
|
242
|
+
var generator_default = _chunk2HWYXG2Kjs.withRunGenerator.call(void 0,
|
|
243
243
|
"Storm Workspace Preset Generator",
|
|
244
244
|
presetGeneratorFn
|
|
245
245
|
);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeOptions,
|
|
3
3
|
typeScriptLibraryGeneratorFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3UGFRM4O.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withRunGenerator
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WS5PLNBP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
joinPaths
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TBW5MCN6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
__dirname
|
|
13
13
|
} from "./chunk-6TYMSSXV.mjs";
|
|
@@ -8,7 +8,7 @@ var _chunkANHKV7HZjs = require('./chunk-ANHKV7HZ.js');
|
|
|
8
8
|
var _chunkJWFGGMYQjs = require('./chunk-JWFGGMYQ.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk4ROGNJIPjs = require('./chunk-4ROGNJIP.js');
|
|
12
12
|
|
|
13
13
|
// src/release/rust-version-actions.ts
|
|
14
14
|
|
|
@@ -36,7 +36,7 @@ var StormRustVersionActions = (_class = class extends _release.VersionActions {
|
|
|
36
36
|
* @params tree - The file system tree to read from.
|
|
37
37
|
*/
|
|
38
38
|
async init(tree) {
|
|
39
|
-
this.workspaceConfig = await
|
|
39
|
+
this.workspaceConfig = await _chunk4ROGNJIPjs.getWorkspaceConfig.call(void 0, );
|
|
40
40
|
return super.init(tree);
|
|
41
41
|
}
|
|
42
42
|
async readCurrentVersionFromSourceManifest(tree) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceBaseTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QYHQD375.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NQOA6WGC.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getStopwatch,
|
|
10
10
|
writeDebug,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-V44DYGWX.mjs";
|
|
17
17
|
import {
|
|
18
18
|
findWorkspaceRoot
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GSZ2BO7G.mjs";
|
|
20
20
|
|
|
21
21
|
// src/base/base-generator.ts
|
|
22
22
|
var withRunGenerator = (name, generatorFn, generatorOptions = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyWorkspaceProjectTokens,
|
|
3
3
|
applyWorkspaceTokens
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QYHQD375.mjs";
|
|
5
5
|
import {
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NQOA6WGC.mjs";
|
|
8
8
|
import {
|
|
9
9
|
formatLogMessage,
|
|
10
10
|
getStopwatch,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-V44DYGWX.mjs";
|
|
18
18
|
import {
|
|
19
19
|
findWorkspaceRoot
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GSZ2BO7G.mjs";
|
|
21
21
|
|
|
22
22
|
// src/base/base-executor.ts
|
|
23
23
|
import { defu } from "defu";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withRunExecutor
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XLZWHFV7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
writeInfo
|
|
6
6
|
} from "./chunk-V44DYGWX.mjs";
|
|
7
7
|
import {
|
|
8
8
|
joinPaths
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TBW5MCN6.mjs";
|
|
10
10
|
|
|
11
11
|
// src/executors/unbuild/executor.ts
|
|
12
12
|
import { defu } from "defu";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
addWorkspacePackageJsonFields,
|
|
6
6
|
copyAssets,
|
|
7
7
|
getEnv
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MFRKH3QL.mjs";
|
|
9
9
|
import {
|
|
10
10
|
withRunExecutor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XLZWHFV7.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getWorkspaceConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NQOA6WGC.mjs";
|
|
15
15
|
import {
|
|
16
16
|
getStopwatch,
|
|
17
17
|
writeDebug,
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
} from "./chunk-V44DYGWX.mjs";
|
|
23
23
|
import {
|
|
24
24
|
findWorkspaceRoot
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GSZ2BO7G.mjs";
|
|
26
26
|
import {
|
|
27
27
|
joinPaths
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-TBW5MCN6.mjs";
|
|
29
29
|
|
|
30
30
|
// ../tsdown/src/build.ts
|
|
31
31
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk322ASCCNjs = require('./chunk-322ASCCN.js');
|
|
4
4
|
|
|
5
5
|
// src/utils/apply-workspace-tokens.ts
|
|
6
6
|
var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
|
|
@@ -51,7 +51,7 @@ var applyWorkspaceExecutorTokens = async (option, tokenizerOptions) => {
|
|
|
51
51
|
if (result.includes("{workspaceRoot}")) {
|
|
52
52
|
result = result.replaceAll(
|
|
53
53
|
"{workspaceRoot}",
|
|
54
|
-
_nullishCoalesce(tokenizerOptions.workspaceRoot, () => (
|
|
54
|
+
_nullishCoalesce(tokenizerOptions.workspaceRoot, () => ( _chunk322ASCCNjs.findWorkspaceRoot.call(void 0, )))
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
return result;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkL7OQTUBAjs = require('./chunk-L7OQTUBA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunk2CDSXWFAjs = require('./chunk-2CDSXWFA.js');
|
|
@@ -33,7 +33,7 @@ async function sizeLimitExecutorFn(options, context, config) {
|
|
|
33
33
|
success: true
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var executor_default =
|
|
36
|
+
var executor_default = _chunkL7OQTUBAjs.withRunExecutor.call(void 0,
|
|
37
37
|
"Size-Limit Performance Test Executor",
|
|
38
38
|
sizeLimitExecutorFn,
|
|
39
39
|
{
|
|
@@ -10,6 +10,7 @@ interface NapiExecutorSchema {
|
|
|
10
10
|
*
|
|
11
11
|
* The path to the output directory
|
|
12
12
|
*
|
|
13
|
+
* @default "{sourceRoot}"
|
|
13
14
|
*
|
|
14
15
|
* @format path
|
|
15
16
|
*/
|
|
@@ -282,6 +283,14 @@ interface NapiExecutorSchema {
|
|
|
282
283
|
noDefaultFeatures?: boolean,
|
|
283
284
|
}
|
|
284
285
|
|
|
286
|
+
/**
|
|
287
|
+
* Build N-API bindings using NAPI-RS
|
|
288
|
+
*
|
|
289
|
+
* @param options - Executor options
|
|
290
|
+
* @param context - Executor context
|
|
291
|
+
* @param config - Storm workspace config
|
|
292
|
+
* @returns Executor result
|
|
293
|
+
*/
|
|
285
294
|
declare function napiExecutor(options: NapiExecutorSchema, context: ExecutorContext, config: StormWorkspaceConfig): Promise<{
|
|
286
295
|
success: boolean;
|
|
287
296
|
terminalOutput?: undefined;
|