@incajs/cli 0.0.22 → 0.0.24
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 -2229
- 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 -51
- package/dist/devLock.d.mts +0 -11
- package/dist/entry.d.mts +0 -29
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incajs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "Commands to develop, bundle, and package Incarnative.js apps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bundler",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"src/vite/runtime/globals.mts"
|
|
35
35
|
],
|
|
36
36
|
"main": "./dist/index.js",
|
|
37
|
-
"types": "./dist/index.d.
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
38
|
"exports": {
|
|
39
39
|
".": {
|
|
40
|
-
"types": "./dist/index.d.
|
|
40
|
+
"types": "./dist/index.d.ts",
|
|
41
41
|
"import": "./dist/index.js"
|
|
42
42
|
},
|
|
43
43
|
"./config": {
|
|
44
|
-
"types": "./dist/config
|
|
44
|
+
"types": "./dist/config.d.ts",
|
|
45
45
|
"import": "./dist/config.js"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
@@ -52,17 +52,6 @@
|
|
|
52
52
|
"@vitejs/plugin-vue": "^6.0.9",
|
|
53
53
|
"vite": "~8.3.4"
|
|
54
54
|
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@types/node": "^26.6.4",
|
|
57
|
-
"@vue/runtime-core": "^3.5.43",
|
|
58
|
-
"c12": "4.0.0-rc.2",
|
|
59
|
-
"citty": "0.2.2",
|
|
60
|
-
"oxfmt": "^0.72.0",
|
|
61
|
-
"oxlint": "^1.87.0",
|
|
62
|
-
"rolldown": "~1.2.13",
|
|
63
|
-
"ts-dedent": "2.3.0",
|
|
64
|
-
"vue": "^3.5.43"
|
|
65
|
-
},
|
|
66
55
|
"peerDependencies": {
|
|
67
56
|
"vue": "^3.5.43"
|
|
68
57
|
},
|
|
@@ -72,19 +61,12 @@
|
|
|
72
61
|
}
|
|
73
62
|
},
|
|
74
63
|
"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.
|
|
64
|
+
"@incajs/host-darwin-arm64": "0.0.24",
|
|
65
|
+
"@incajs/host-darwin-x64": "0.0.24",
|
|
66
|
+
"@incajs/host-linux-arm64": "0.0.24",
|
|
67
|
+
"@incajs/host-linux-x64": "0.0.24"
|
|
79
68
|
},
|
|
80
69
|
"engines": {
|
|
81
70
|
"node": ">=22.18"
|
|
82
|
-
},
|
|
83
|
-
"scripts": {
|
|
84
|
-
"build": "vite build",
|
|
85
|
-
"test": "vitest run",
|
|
86
|
-
"lint": "oxlint --type-aware",
|
|
87
|
-
"format": "oxfmt --check .",
|
|
88
|
-
"typecheck": "oxlint -A all --type-aware --type-check"
|
|
89
71
|
}
|
|
90
72
|
}
|
package/dist/adapterCore.d.mts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { IncaError } from './error.mts';
|
|
2
|
-
export { bundlerFault } from './log.mts';
|
|
3
|
-
export type * from './types.mts';
|
|
4
|
-
/**
|
|
5
|
-
* The CLI logic the CLI injects into a bundler adapter: the `IncaError`
|
|
6
|
-
* class and `bundlerFault`, which reduces a bundler's error to a printable
|
|
7
|
-
* fault.
|
|
8
|
-
*
|
|
9
|
-
* Also the seam an adapter's own tests pass the real module through.
|
|
10
|
-
*/
|
|
11
|
-
export type AdapterCore = typeof import('./adapterCore.mts');
|
package/dist/build.d.mts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ResolvedBuildConfig, RuntimeConfig } from './config/loader.mts';
|
|
2
|
-
import { Bundler, BuildOutput } from './types.mts';
|
|
3
|
-
export interface BuildAppOptions {
|
|
4
|
-
/** The app's root directory. Defaults to `process.cwd()`. */
|
|
5
|
-
cwd?: string;
|
|
6
|
-
/**
|
|
7
|
-
* The app's entry point. Defaults to resolving it automatically: a
|
|
8
|
-
* committed `src/main.mts`, `src/main.ts` or `src/main.js`, or `src/App.vue` wrapped in a synthesized one.
|
|
9
|
-
*/
|
|
10
|
-
entry?: string;
|
|
11
|
-
/** Overrides the bundler. See {@link defaultBundler} for what's wired in by default. */
|
|
12
|
-
bundler?: Bundler;
|
|
13
|
-
/** An already-resolved config. It lets `packageApp` avoid loading it twice. */
|
|
14
|
-
config?: ResolvedBuildConfig;
|
|
15
|
-
/** Writes `bundle.js.map` beside the bundle. Overrides the config's `sourcemap` when set. */
|
|
16
|
-
sourcemap?: boolean;
|
|
17
|
-
/** What the build carries for `inca-host` to read. Resolved from the app's config when absent. */
|
|
18
|
-
runtimeConfig?: RuntimeConfig;
|
|
19
|
-
/** Where the bundler's own output goes. Defaults to `process.stdout`. */
|
|
20
|
-
stdout?: NodeJS.WritableStream;
|
|
21
|
-
/** Where the bundler's warnings and errors go. Defaults to `process.stderr`. */
|
|
22
|
-
stderr?: NodeJS.WritableStream;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Builds the app once through the same bundler `dev` uses, and returns what
|
|
26
|
-
* it wrote. Rejects on failure.
|
|
27
|
-
*/
|
|
28
|
-
export declare function build(options?: BuildAppOptions): Promise<BuildOutput>;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/confbox@0.3.1/node_modules/confbox/dist/_chunks/libs/detect-indent.mjs
|
|
2
|
-
var e = /^(?:( )+|\t+)/, t = "space";
|
|
3
|
-
function n(e, n, r) {
|
|
4
|
-
return e && n === t && r === 1;
|
|
5
|
-
}
|
|
6
|
-
function r(r, a) {
|
|
7
|
-
let o = /* @__PURE__ */ new Map(), s = 0, c, l;
|
|
8
|
-
for (let u of r.split(/\n/g)) {
|
|
9
|
-
if (!u) continue;
|
|
10
|
-
let r = u.match(e);
|
|
11
|
-
if (r === null) s = 0, c = "";
|
|
12
|
-
else {
|
|
13
|
-
let e = r[0].length, u = r[1] ? t : "tab";
|
|
14
|
-
if (n(a, u, e)) continue;
|
|
15
|
-
u !== c && (s = 0), c = u;
|
|
16
|
-
let d = 1, f = 0, p = e - s;
|
|
17
|
-
if (s = e, p === 0) d = 0, f = 1;
|
|
18
|
-
else {
|
|
19
|
-
let e = Math.abs(p);
|
|
20
|
-
if (n(a, u, e)) continue;
|
|
21
|
-
l = i(u, e);
|
|
22
|
-
}
|
|
23
|
-
let m = o.get(l);
|
|
24
|
-
o.set(l, m === void 0 ? [1, 0] : [m[0] + d, m[1] + f]);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return o;
|
|
28
|
-
}
|
|
29
|
-
function i(e, n) {
|
|
30
|
-
return (e === t ? "s" : "t") + String(n);
|
|
31
|
-
}
|
|
32
|
-
function a(e) {
|
|
33
|
-
return {
|
|
34
|
-
type: e[0] === "s" ? t : "tab",
|
|
35
|
-
amount: Number(e.slice(1))
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function o(e) {
|
|
39
|
-
let t, n = 0, r = 0;
|
|
40
|
-
for (let [i, [a, o]] of e) (a > n || a === n && o > r) && (n = a, r = o, t = i);
|
|
41
|
-
return t;
|
|
42
|
-
}
|
|
43
|
-
function s(e, n) {
|
|
44
|
-
return (e === t ? " " : " ").repeat(n);
|
|
45
|
-
}
|
|
46
|
-
function c(e) {
|
|
47
|
-
if (typeof e != "string") throw TypeError("Expected a string");
|
|
48
|
-
let t = r(e, !0);
|
|
49
|
-
t.size === 0 && (t = r(e, !1));
|
|
50
|
-
let n = o(t), i, c = 0, l = "";
|
|
51
|
-
return n !== void 0 && ({type: i, amount: c} = a(n), l = s(i, c)), {
|
|
52
|
-
amount: c,
|
|
53
|
-
type: i,
|
|
54
|
-
indent: l
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/confbox@0.3.1/node_modules/confbox/dist/_chunks/_format.mjs
|
|
59
|
-
var l = Symbol.for("__confbox_fmt__"), u = /^(\s+)/, d = /(\s+)$/;
|
|
60
|
-
function f(e) {
|
|
61
|
-
return e.charCodeAt(0) === 65279 ? e.slice(1) : e;
|
|
62
|
-
}
|
|
63
|
-
function p(e, t = {}) {
|
|
64
|
-
return {
|
|
65
|
-
sample: t.indent === void 0 && t.preserveIndentation !== !1 && f(e).slice(0, t?.sampleSize || 1024),
|
|
66
|
-
whiteSpace: t.preserveWhitespace === !1 ? void 0 : {
|
|
67
|
-
start: u.exec(e)?.[0] || "",
|
|
68
|
-
end: d.exec(e)?.[0] || ""
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function m(e, t, n) {
|
|
73
|
-
!t || typeof t != "object" || Object.defineProperty(t, l, {
|
|
74
|
-
enumerable: !1,
|
|
75
|
-
configurable: !0,
|
|
76
|
-
writable: !0,
|
|
77
|
-
value: p(e, n)
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
function h(e, t) {
|
|
81
|
-
if (!e || typeof e != "object" || !(l in e)) return {
|
|
82
|
-
indent: t?.indent ?? 2,
|
|
83
|
-
whitespace: {
|
|
84
|
-
start: "",
|
|
85
|
-
end: ""
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
let n = e[l];
|
|
89
|
-
return {
|
|
90
|
-
indent: t?.indent || c(n.sample || "").indent,
|
|
91
|
-
whitespace: n.whiteSpace || {
|
|
92
|
-
start: "",
|
|
93
|
-
end: ""
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
//#endregion
|
|
98
|
-
export { m as n, h as r, f as t };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//#region src/config/defaults.mts
|
|
2
|
-
var e = {
|
|
3
|
-
outDir: "dist",
|
|
4
|
-
sourcemap: !1,
|
|
5
|
-
version: "0.0.0"
|
|
6
|
-
};
|
|
7
|
-
function t(e) {
|
|
8
|
-
let t = e.indexOf("/");
|
|
9
|
-
return e.startsWith("@") && t !== -1 ? e.slice(t + 1) : e;
|
|
10
|
-
}
|
|
11
|
-
var n = "app";
|
|
12
|
-
function r(e) {
|
|
13
|
-
let t = e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
14
|
-
return t === "" ? n : t;
|
|
15
|
-
}
|
|
16
|
-
function i(e) {
|
|
17
|
-
return e ? t(e) : void 0;
|
|
18
|
-
}
|
|
19
|
-
function a(e) {
|
|
20
|
-
return `org.inca.${r(e)}`;
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { r as i, a as n, i as r, e as t };
|