@incajs/cli 0.0.15 → 0.0.17

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 CHANGED
@@ -22,14 +22,14 @@ bootstrapping; it wins outright when both exist.
22
22
 
23
23
  ## Commands
24
24
 
25
- - **`inca dev`** — watches your app and opens a live-reloading window,
25
+ - **`inca dev`**: watches your app and opens a live-reloading window,
26
26
  reloading on every change. `--experimental-hmr` (or
27
27
  `INCA_EXPERIMENTAL_HMR=1`) opts into experimental, module-granular
28
- hot reloading instead — see the
28
+ hot reloading instead. See the
29
29
  [HMR guide](https://incajs.tom96da.com/guide/hmr).
30
- - **`inca build`** — bundles your app for production, once, with no
30
+ - **`inca build`**: bundles your app for production, once, with no
31
31
  window opened.
32
- - **`inca package`** — builds your app, then packages it with a
32
+ - **`inca package`**: builds your app, then packages it with a
33
33
  prebuilt `inca-host` into a distributable application: a `.app` on
34
34
  macOS, a plain directory on Linux (other platforms aren't supported
35
35
  yet).
@@ -61,7 +61,7 @@ once it is packaged.
61
61
  ## Requirements
62
62
 
63
63
  A prebuilt binary is pulled in automatically as a platform-specific
64
- optional dependency — neither Cargo nor Rust are needed. See
64
+ optional dependency. Neither Cargo nor Rust are needed. See
65
65
  [Host binary](https://incajs.tom96da.com/guide/#host-binary) for
66
66
  per-platform support.
67
67
 
@@ -1,5 +1,6 @@
1
1
  export { IncaError } from './error.mts';
2
2
  export { bundlerFault } from './log.mts';
3
+ export type * from './types.mts';
3
4
  /**
4
5
  * The CLI logic the CLI injects into a bundler adapter: the `IncaError`
5
6
  * class and `bundlerFault`, which reduces a bundler's error to a printable
package/dist/build.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { Bundler, BuildOutput } from './adapter/types.mts';
2
1
  import { ResolvedBuildConfig, RuntimeConfig } from './config/loader.mts';
2
+ import { Bundler, BuildOutput } from './types.mts';
3
3
  export interface BuildAppOptions {
4
4
  /** The app's root directory. Defaults to `process.cwd()`. */
5
5
  cwd?: string;
@@ -8,9 +8,9 @@ export interface BuildAppOptions {
8
8
  * committed `src/main.mts`, `src/main.ts` or `src/main.js`, or `src/App.vue` wrapped in a synthesized one.
9
9
  */
10
10
  entry?: string;
11
- /** Overrides the bundler — see {@link defaultBundler} for what's wired in by default. */
11
+ /** Overrides the bundler. See {@link defaultBundler} for what's wired in by default. */
12
12
  bundler?: Bundler;
13
- /** An already-resolved config — lets `packageApp` avoid loading it twice. */
13
+ /** An already-resolved config. It lets `packageApp` avoid loading it twice. */
14
14
  config?: ResolvedBuildConfig;
15
15
  /** Writes `bundle.js.map` beside the bundle. Overrides the config's `sourcemap` when set. */
16
16
  sourcemap?: boolean;
@@ -23,7 +23,6 @@ export interface BuildAppOptions {
23
23
  }
24
24
  /**
25
25
  * Builds the app once through the same bundler `dev` uses, and returns what
26
- * it wrote. Rejects on failure — deciding what that means for the process
27
- * is `cli.mts`'s job.
26
+ * it wrote. Rejects on failure.
28
27
  */
29
28
  export declare function build(options?: BuildAppOptions): Promise<BuildOutput>;