@incajs/cli 0.0.10 → 0.0.11
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 +1 -1
- package/dist/adapter/vite/build.d.mts +1 -1
- package/dist/adapter/vite/config.d.mts +5 -3
- package/dist/adapter/vite/createBundler.d.mts +6 -2
- package/dist/adapter/vite/hmr.d.mts +1 -1
- package/dist/adapter/vite/watch.d.mts +1 -1
- package/dist/build.d.mts +1 -1
- package/dist/chunks/defaults-TOBTBbDy.js +22 -0
- package/dist/chunks/dist-Bc5Uk6dY.js +733 -0
- package/dist/chunks/{dist-AuwuGWnE.js → dist-Bp_FYhnk.js} +20 -20
- package/dist/cli.js +929 -417
- package/dist/config/index.d.mts +1 -1
- package/dist/config/loader.d.mts +2 -1
- package/dist/config/types.d.mts +3 -2
- package/dist/config.js +3 -3
- package/dist/defaultBundler.d.mts +2 -1
- package/dist/dev.d.mts +1 -1
- package/dist/entry.d.mts +9 -3
- package/dist/package.d.mts +1 -1
- package/dist/watchForEdit.d.mts +1 -1
- package/package.json +5 -5
- package/dist/chunks/defaults-CKuLLRFh.js +0 -1262
- /package/dist/{dev-lock.d.mts → devLock.d.mts} +0 -0
- /package/dist/{macos-app.d.mts → macosApp.d.mts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e, c as t, o as n, r, s as i, t as a } from "./dist-Bc5Uk6dY.js";
|
|
2
2
|
import { n as o, t as s } from "./_format-BKs7bsc4.js";
|
|
3
3
|
import { t as c } from "./jsonc-BDHXk_1o.js";
|
|
4
4
|
import { promises as l, statSync as u } from "node:fs";
|
|
@@ -21,29 +21,29 @@ var p = {
|
|
|
21
21
|
} catch {}
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
async function m(e,
|
|
25
|
-
let
|
|
24
|
+
async function m(e, r = {}) {
|
|
25
|
+
let i = Array.isArray(e) ? e : [e], a = {
|
|
26
26
|
...p,
|
|
27
|
-
...
|
|
28
|
-
}, o =
|
|
29
|
-
if (
|
|
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
30
|
s && (c[0] = "/" + c[0]);
|
|
31
|
-
let l = c.findIndex((e) => e.match(
|
|
32
|
-
if (l === -1 && (l = 0),
|
|
33
|
-
let
|
|
34
|
-
if (await
|
|
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
35
|
}
|
|
36
|
-
else for (let e = c.length; e > l; e--) for (let t of
|
|
37
|
-
let
|
|
38
|
-
if (await
|
|
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
39
|
}
|
|
40
|
-
throw Error(`Cannot find matching ${e} in ${
|
|
40
|
+
throw Error(`Cannot find matching ${e} in ${a.startingFrom} or parent directories`);
|
|
41
41
|
}
|
|
42
42
|
function h(e, t = {}) {
|
|
43
43
|
return m(e, t);
|
|
44
44
|
}
|
|
45
|
-
function g(
|
|
46
|
-
return
|
|
45
|
+
function g(t, n = {}) {
|
|
46
|
+
return t instanceof URL || t.startsWith("file://") ? i(d(t)) : e(t) ? i(t) : a(t, {
|
|
47
47
|
...n,
|
|
48
48
|
from: n.from || n.parent || n.url
|
|
49
49
|
});
|
|
@@ -86,10 +86,10 @@ async function S(e = process.cwd(), t = {}) {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
var C = {
|
|
89
|
-
workspaceFile: (
|
|
90
|
-
gitConfig: (e) => m(".git/config", e).then((e) =>
|
|
91
|
-
lockFile: (
|
|
92
|
-
packageJson: (
|
|
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
93
|
};
|
|
94
94
|
async function w(e = process.cwd(), t = {}) {
|
|
95
95
|
let n = g(e, t), r = t.tests || [
|