@incajs/cli 0.0.21 → 0.0.23
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 +5 -6
- package/dist/chunks/_format-CFy6_BQd.js +1 -0
- package/dist/chunks/defaults-DfHXv1fN.js +1 -0
- package/dist/chunks/dist-B-B_PlmU.js +1 -0
- package/dist/chunks/dist-BTWvruNB.js +1 -0
- package/dist/chunks/json5-BcF68iGq.js +14 -0
- package/dist/chunks/jsonc-DJWoCi14.js +4 -0
- package/dist/chunks/ohash-DUMW2FP0.js +1 -0
- package/dist/chunks/rolldown-runtime-DT7IzrpZ.js +1 -0
- package/dist/chunks/toml-n3nLqi2g.js +5 -0
- package/dist/chunks/types-Dz2aIWaI.d.ts +84 -0
- package/dist/chunks/yaml-DtBxpt6z.js +38 -0
- package/dist/{cli.d.mts → cli.d.ts} +1 -1
- package/dist/cli.js +22 -2181
- package/dist/config.d.ts +35 -0
- package/dist/config.js +1 -5
- package/dist/index.d.ts +27 -0
- package/dist/index.js +1 -0
- package/dist/vite-runtime.d.ts +28 -0
- package/dist/vite-runtime.js +7 -1179
- package/package.json +8 -26
- package/dist/adapterCore.d.mts +0 -11
- package/dist/build.d.mts +0 -28
- package/dist/chunks/__vite-optional-peer-dep_dotenv_c12-CxKvRg9-.js +0 -3
- package/dist/chunks/__vite-optional-peer-dep_giget_c12-BYcrHYBM.js +0 -5
- package/dist/chunks/__vite-optional-peer-dep_jiti_c12-DZVJNj6v.js +0 -5
- package/dist/chunks/_format-BKs7bsc4.js +0 -98
- package/dist/chunks/defaults-Ct95BSBl.js +0 -23
- package/dist/chunks/dist-C64iuQVW.js +0 -730
- package/dist/chunks/dist-DrnNGO2a.js +0 -114
- package/dist/chunks/json5-RapVXICN.js +0 -711
- package/dist/chunks/jsonc-BDHXk_1o.js +0 -40
- package/dist/chunks/ohash-Cc4pJh84.js +0 -231
- package/dist/chunks/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/chunks/toml-CgS7wGvD.js +0 -416
- package/dist/chunks/yaml-U_oPOIGK.js +0 -2123
- package/dist/config/defaults.d.mts +0 -45
- package/dist/config/index.d.mts +0 -18
- package/dist/config/loader.d.mts +0 -82
- package/dist/config/types.d.mts +0 -73
- package/dist/defaultBundler.d.mts +0 -7
- package/dist/dev-client/hostBin.d.mts +0 -15
- package/dist/dev-client/hostClient.d.mts +0 -70
- package/dist/dev-client/hostError.d.mts +0 -6
- package/dist/dev-client/index.d.mts +0 -4
- package/dist/dev-client/protocol.d.mts +0 -39
- package/dist/dev.d.mts +0 -45
- package/dist/devLock.d.mts +0 -11
- package/dist/entry.d.mts +0 -23
- package/dist/error.d.mts +0 -15
- package/dist/index.d.mts +0 -1
- package/dist/log.d.mts +0 -36
- package/dist/macosApp.d.mts +0 -47
- package/dist/package.d.mts +0 -50
- package/dist/plist.d.mts +0 -4
- package/dist/printConfig.d.mts +0 -20
- package/dist/retryOnEdit.d.mts +0 -32
- package/dist/types.d.mts +0 -136
- package/dist/vite/build.d.mts +0 -6
- package/dist/vite/captureOutput.d.mts +0 -17
- package/dist/vite/config.d.mts +0 -45
- package/dist/vite/createBundler.d.mts +0 -7
- package/dist/vite/emitConfig.d.mts +0 -17
- package/dist/vite/hmr.d.mts +0 -37
- package/dist/vite/index.d.mts +0 -1
- package/dist/vite/logger.d.mts +0 -8
- package/dist/vite/unsupported.d.mts +0 -24
- package/dist/vite/watch.d.mts +0 -7
- package/dist/watchForEdit.d.mts +0 -27
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { n as IncaConfig, t as DevConfig } from "./chunks/types-Dz2aIWaI.js";
|
|
2
|
+
/**
|
|
3
|
+
* The `IncaConfig` fields whose default is a fixed value rather than one
|
|
4
|
+
* derived from `package.json` or the filesystem. Importable alongside
|
|
5
|
+
* `defineConfig` for an app that wants to inherit or reference them.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import { defaultConfig, defineConfig } from "@incajs/cli/config";
|
|
10
|
+
*
|
|
11
|
+
* export default defineConfig({
|
|
12
|
+
* ...defaultConfig,
|
|
13
|
+
* outDir: "build",
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const defaultConfig: Required<Pick<IncaConfig, "outDir" | "sourcemap" | "version">> & {
|
|
18
|
+
dev: Required<DevConfig>;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Type-completion helper for `inca.config.ts`. An identity function at
|
|
22
|
+
* runtime.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* import { defineConfig } from "@incajs/cli/config";
|
|
27
|
+
*
|
|
28
|
+
* export default defineConfig({
|
|
29
|
+
* productName: "Click Counter",
|
|
30
|
+
* identifier: "com.example.click-counter",
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const defineConfig: (config: IncaConfig) => IncaConfig;
|
|
35
|
+
export type { DevConfig, IncaConfig };
|
package/dist/config.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region src/config/index.mts
|
|
3
|
-
var t = (e) => e;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { e as defaultConfig, t as defineConfig };
|
|
1
|
+
import{t as e}from"./chunks/defaults-DfHXv1fN.js";const t=e=>e;export{e as defaultConfig,t as defineConfig};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { r as WindowConfig, t as DevConfig } from "./chunks/types-Dz2aIWaI.js";
|
|
2
|
+
/** `entry`/`outDir` only: what `build()`/`dev()` need, with no `package.json` requirement. */
|
|
3
|
+
interface ResolvedBuildConfig {
|
|
4
|
+
/** Absolute path, if `inca.config.ts` set one. */
|
|
5
|
+
entry?: string;
|
|
6
|
+
/** Absolute path. */
|
|
7
|
+
outDir: string;
|
|
8
|
+
/** Whether `build`/`package` write `bundle.js.map`. */
|
|
9
|
+
sourcemap: boolean;
|
|
10
|
+
}
|
|
11
|
+
/** An app's full config, as `inca package` needs it. */
|
|
12
|
+
interface ResolvedAppConfig extends ResolvedBuildConfig {
|
|
13
|
+
productName: string;
|
|
14
|
+
identifier: string;
|
|
15
|
+
/** True when `identifier` was generated rather than set explicitly. */
|
|
16
|
+
identifierIsDefault: boolean;
|
|
17
|
+
version: string;
|
|
18
|
+
/** Absolute path, if the app declared one. */
|
|
19
|
+
icon?: string;
|
|
20
|
+
/** What the app declared about its window, if anything. */
|
|
21
|
+
window?: WindowConfig;
|
|
22
|
+
/** What only `inca dev` applies, with each member resolved. */
|
|
23
|
+
dev: Required<DevConfig>;
|
|
24
|
+
/** package.json's `"inca"` key is deprecated; callers warn when this is true. */
|
|
25
|
+
usedPackageJsonKey: boolean;
|
|
26
|
+
}
|
|
27
|
+
export type { ResolvedAppConfig };
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds a `ModuleRunner` wired to the app's `__inca_dev__` channel and
|
|
3
|
+
* imports `entryId` through it.
|
|
4
|
+
*
|
|
5
|
+
* Sets each of `globals` on `globalThis` before the first import, so the app
|
|
6
|
+
* reads them while it loads.
|
|
7
|
+
*
|
|
8
|
+
* A failed import is retried after the next `file-changed` payload, until
|
|
9
|
+
* one succeeds. A failure the development server reported stays silent. Any
|
|
10
|
+
* other failure is rethrown as an unhandled rejection.
|
|
11
|
+
* `__inca_dev__.setLoadFailed(true)` follows a failed attempt and
|
|
12
|
+
* `setLoadFailed(false)` precedes each retry.
|
|
13
|
+
*
|
|
14
|
+
* Every inlined module runs through `__inca_dev__.compile`; the import fails
|
|
15
|
+
* when the host lacks it.
|
|
16
|
+
*
|
|
17
|
+
* `sourcemapInterceptor: false` is required: the interceptor reads V8
|
|
18
|
+
* `CallSite` objects off `Error.stack`, and this engine's `Error.stack` is a
|
|
19
|
+
* plain string. The host remaps the frames it reports through each module's
|
|
20
|
+
* inline source map.
|
|
21
|
+
*
|
|
22
|
+
* `hmr.logger` is fully muted: the development server already reports each
|
|
23
|
+
* update, and a failed one, on its own. See `hmr.mts`'s `onError`.
|
|
24
|
+
* @param entryId - the module id the development server serves the entry under
|
|
25
|
+
* @param globals - the values to set on `globalThis` before the first import
|
|
26
|
+
* @returns the entry's exports, once an import succeeds
|
|
27
|
+
*/
|
|
28
|
+
export declare function start(entryId: string, globals?: Record<string, unknown>): Promise<unknown>;
|