@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
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { a as e, c as t, o as n, r, s as i, t as a } from "./dist-C64iuQVW.js";
|
|
2
|
-
import { n as o, t as s } from "./_format-BKs7bsc4.js";
|
|
3
|
-
import { t as c } from "./jsonc-BDHXk_1o.js";
|
|
4
|
-
import { promises as l, statSync as u } from "node:fs";
|
|
5
|
-
import "node:fs/promises";
|
|
6
|
-
import { fileURLToPath as d } from "node:url";
|
|
7
|
-
//#region ../../node_modules/.pnpm/confbox@0.3.1/node_modules/confbox/dist/json.mjs
|
|
8
|
-
function f(e, t) {
|
|
9
|
-
let n = JSON.parse(s(e), t?.reviver);
|
|
10
|
-
return o(e, n, t), n;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region ../../node_modules/.pnpm/pkg-types@2.3.3/node_modules/pkg-types/dist/index.mjs
|
|
14
|
-
var p = {
|
|
15
|
-
startingFrom: ".",
|
|
16
|
-
rootPattern: /^node_modules$/,
|
|
17
|
-
reverse: !1,
|
|
18
|
-
test: (e) => {
|
|
19
|
-
try {
|
|
20
|
-
if (u(e).isFile()) return !0;
|
|
21
|
-
} catch {}
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
async function m(e, r = {}) {
|
|
25
|
-
let i = Array.isArray(e) ? e : [e], a = {
|
|
26
|
-
...p,
|
|
27
|
-
...r
|
|
28
|
-
}, o = t(a.startingFrom), s = o[0] === "/", c = o.split("/").filter(Boolean);
|
|
29
|
-
if (i.includes(c.at(-1)) && await a.test(o)) return o;
|
|
30
|
-
s && (c[0] = "/" + c[0]);
|
|
31
|
-
let l = c.findIndex((e) => e.match(a.rootPattern));
|
|
32
|
-
if (l === -1 && (l = 0), a.reverse) for (let e = l + 1; e <= c.length; e++) for (let t of i) {
|
|
33
|
-
let r = n(...c.slice(0, e), t);
|
|
34
|
-
if (await a.test(r)) return r;
|
|
35
|
-
}
|
|
36
|
-
else for (let e = c.length; e > l; e--) for (let t of i) {
|
|
37
|
-
let r = n(...c.slice(0, e), t);
|
|
38
|
-
if (await a.test(r)) return r;
|
|
39
|
-
}
|
|
40
|
-
throw Error(`Cannot find matching ${e} in ${a.startingFrom} or parent directories`);
|
|
41
|
-
}
|
|
42
|
-
function h(e, t = {}) {
|
|
43
|
-
return m(e, t);
|
|
44
|
-
}
|
|
45
|
-
function g(t, n = {}) {
|
|
46
|
-
return t instanceof URL || t.startsWith("file://") ? i(d(t)) : e(t) ? i(t) : a(t, {
|
|
47
|
-
...n,
|
|
48
|
-
from: n.from || n.parent || n.url
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
var _ = [
|
|
52
|
-
"yarn.lock",
|
|
53
|
-
"package-lock.json",
|
|
54
|
-
"pnpm-lock.yaml",
|
|
55
|
-
"npm-shrinkwrap.json",
|
|
56
|
-
"bun.lockb",
|
|
57
|
-
"bun.lock",
|
|
58
|
-
"deno.lock"
|
|
59
|
-
], v = [
|
|
60
|
-
"package.json",
|
|
61
|
-
"package.json5",
|
|
62
|
-
"package.yaml"
|
|
63
|
-
], y = [
|
|
64
|
-
"pnpm-workspace.yaml",
|
|
65
|
-
"lerna.json",
|
|
66
|
-
"turbo.json",
|
|
67
|
-
"rush.json",
|
|
68
|
-
"deno.json",
|
|
69
|
-
"deno.jsonc"
|
|
70
|
-
], b = /* #__PURE__ */ new Map();
|
|
71
|
-
async function x(e, t = {}) {
|
|
72
|
-
let n = await S(e, t), r = t.cache && typeof t.cache != "boolean" ? t.cache : b;
|
|
73
|
-
if (t.cache && r.has(n)) return r.get(n);
|
|
74
|
-
let i = await l.readFile(n, "utf8"), a;
|
|
75
|
-
try {
|
|
76
|
-
a = f(i);
|
|
77
|
-
} catch {
|
|
78
|
-
a = c(i);
|
|
79
|
-
}
|
|
80
|
-
return r.set(n, a), a;
|
|
81
|
-
}
|
|
82
|
-
async function S(e = process.cwd(), t = {}) {
|
|
83
|
-
return h("package.json", {
|
|
84
|
-
...t,
|
|
85
|
-
startingFrom: g(e, t)
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
var C = {
|
|
89
|
-
workspaceFile: (e) => m(y, e).then((e) => r(e)),
|
|
90
|
-
gitConfig: (e) => m(".git/config", e).then((e) => t(e, "../..")),
|
|
91
|
-
lockFile: (e) => m(_, e).then((e) => r(e)),
|
|
92
|
-
packageJson: (e) => m(v, e).then((e) => r(e))
|
|
93
|
-
};
|
|
94
|
-
async function w(e = process.cwd(), t = {}) {
|
|
95
|
-
let n = g(e, t), r = t.tests || [
|
|
96
|
-
"workspaceFile",
|
|
97
|
-
"gitConfig",
|
|
98
|
-
"lockFile",
|
|
99
|
-
"packageJson"
|
|
100
|
-
];
|
|
101
|
-
for (let e of r) {
|
|
102
|
-
let r = C[e];
|
|
103
|
-
if (t[e] === !1 || !r) continue;
|
|
104
|
-
let i = t[e] || (e === "gitConfig" ? "closest" : "furthest"), a = await r({
|
|
105
|
-
...t,
|
|
106
|
-
startingFrom: n,
|
|
107
|
-
reverse: i === "furthest"
|
|
108
|
-
}).catch(() => {});
|
|
109
|
-
if (a) return a;
|
|
110
|
-
}
|
|
111
|
-
throw Error(`Cannot detect workspace root from ${e}`);
|
|
112
|
-
}
|
|
113
|
-
//#endregion
|
|
114
|
-
export { w as findWorkspaceDir, x as readPackageJSON };
|