@nanobpm/nano-ide-ext-types 1.0.1 → 1.1.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/dist/index.d.ts +27 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,12 +8,37 @@ export interface FileType {
|
|
|
8
8
|
export interface Toolchain {
|
|
9
9
|
/** Probe argv proving the toolchain is installed (e.g. ["cargo","--version"]). */
|
|
10
10
|
detect?: string[];
|
|
11
|
-
/** argv to run the project (cwd = project dir). Empty => built-in Deno runner.
|
|
11
|
+
/** argv to run the project (cwd = project dir). Empty => built-in Deno runner.
|
|
12
|
+
* Serves as a fallback when the active run config's `run` argv is empty. */
|
|
12
13
|
run?: string[];
|
|
13
|
-
/** argv to compile the project. Empty => Deno compile.
|
|
14
|
+
/** argv to compile the project. Empty => Deno compile. Serves as a fallback
|
|
15
|
+
* when the active run config's `compile` argv is empty. */
|
|
14
16
|
compile?: string[];
|
|
15
17
|
/** Cross-compile target triples this toolchain offers. */
|
|
16
18
|
targets?: string[];
|
|
19
|
+
/** Named run configurations the console surfaces in a Run/Target dropdown.
|
|
20
|
+
* When set, the supervisor prefers the active one (pinned →
|
|
21
|
+
* `default: true` → first) over the flat `run`/`compile`. */
|
|
22
|
+
runConfigs?: RunConfig[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* One named run/compile combo a pack exposes — e.g. an example that swaps
|
|
26
|
+
* transports or build profiles. The console persists the picked id in the
|
|
27
|
+
* project's `nanobpm.project.json` as `toolchain.activeRunConfig`.
|
|
28
|
+
*/
|
|
29
|
+
export interface RunConfig {
|
|
30
|
+
/** Stable id, unique within the pack (e.g. "stock-grpc"). */
|
|
31
|
+
id: string;
|
|
32
|
+
/** Human-facing label shown in the Run dropdown. */
|
|
33
|
+
label: string;
|
|
34
|
+
/** When no id is pinned by the user, this entry is picked; else the first. */
|
|
35
|
+
default?: boolean;
|
|
36
|
+
/** argv override for this config. Empty => fall back to `Toolchain.run`. */
|
|
37
|
+
run?: string[];
|
|
38
|
+
/** argv override for this config. Empty => fall back to `Toolchain.compile`. */
|
|
39
|
+
compile?: string[];
|
|
40
|
+
/** Env vars layered on top of the base spawn env (last wins on key clash). */
|
|
41
|
+
env?: Record<string, string>;
|
|
17
42
|
}
|
|
18
43
|
export interface TemplateSpec {
|
|
19
44
|
id: string;
|