@incajs/cli 0.0.19 → 0.0.20
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/README.md +3 -1
- package/dist/cli.d.mts +1 -1
- package/dist/cli.js +509 -452
- package/dist/printConfig.d.mts +20 -0
- package/package.json +5 -5
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface PrintConfigOptions {
|
|
2
|
+
/** The app's root directory. Defaults to `process.cwd()`. */
|
|
3
|
+
cwd?: string;
|
|
4
|
+
/** Overrides host binary resolution. */
|
|
5
|
+
hostBin?: string;
|
|
6
|
+
/** Receives the settings. Defaults to `process.stdout`. */
|
|
7
|
+
stdout?: NodeJS.WritableStream;
|
|
8
|
+
/** Receives the host's own report when it names no setting. Defaults to `process.stderr`. */
|
|
9
|
+
stderr?: NodeJS.WritableStream;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Prints the settings the host applies to the app as JSON. The host reads the app's config from
|
|
13
|
+
* `node_modules/.inca/config/inca.json`, written as a build writes it beside the bundle.
|
|
14
|
+
*
|
|
15
|
+
* @returns the host's exit code: 0 after printing, non-zero when the host refused the config
|
|
16
|
+
* with a report that names no setting, written to `stderr`
|
|
17
|
+
* @throws if the config can't be loaded, a setting holds a value the host can't use, or the
|
|
18
|
+
* host binary can't be resolved, isn't a file or can't be started
|
|
19
|
+
*/
|
|
20
|
+
export declare function printConfig(options?: PrintConfigOptions): Promise<number>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incajs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "Commands to develop, bundle, and package Incarnative.js apps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
74
|
"optionalDependencies": {
|
|
75
|
-
"@incajs/host-darwin-arm64": "0.0.
|
|
76
|
-
"@incajs/host-darwin-x64": "0.0.
|
|
77
|
-
"@incajs/host-linux-arm64": "0.0.
|
|
78
|
-
"@incajs/host-linux-x64": "0.0.
|
|
75
|
+
"@incajs/host-darwin-arm64": "0.0.20",
|
|
76
|
+
"@incajs/host-darwin-x64": "0.0.20",
|
|
77
|
+
"@incajs/host-linux-arm64": "0.0.20",
|
|
78
|
+
"@incajs/host-linux-x64": "0.0.20"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=22.18"
|