@batijs/cli 0.0.433 → 0.0.435
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/dist/boilerplates/@batijs/auth0/files/$.env.js +6 -6
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +2 -2
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/express/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +11 -11
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +5 -5
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/react/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/react/files/$package.json.js +10 -10
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +5 -5
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +5 -5
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +4 -4
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/shared/files/package.json +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +8 -8
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +2 -2
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +2 -2
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +12 -12
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +2 -2
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +2 -2
- package/dist/boilerplates/@batijs/vue/files/pages/+onCreateApp.ts +5 -6
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +6 -6
- package/dist/{chunk-QY4H25CP.js → chunk-V7W2TXCE.js} +2 -2
- package/dist/{chunk-EECDILJA.js → chunk-VSQM6ILT.js} +19009 -19004
- package/dist/index.js +182 -173
- package/dist/{jiti-4VHEHEJ6-X7AEWOPQ.js → jiti-M7FFFMJY-RVXB3PI2.js} +12 -12
- package/dist/{prompt-AQUZNUSD.js → prompt-HBAIF7ML.js} +4 -3
- package/dist/{src-UC4KONXL-DCTKC73Q.js → src-C44KL7DE-XYL3IAQY.js} +7 -7
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -4,13 +4,13 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
Bvs,
|
|
7
|
-
|
|
8
|
-
Pfs,
|
|
7
|
+
GQr,
|
|
9
8
|
export_which,
|
|
10
|
-
|
|
9
|
+
nRe,
|
|
10
|
+
wfs,
|
|
11
11
|
zit
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-VSQM6ILT.js";
|
|
13
|
+
import "./chunk-V7W2TXCE.js";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
16
16
|
__require,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
var require_yoctocolors_cjs = __commonJS({
|
|
22
22
|
"../../node_modules/.pnpm/yoctocolors-cjs@2.1.2/node_modules/yoctocolors-cjs/index.js"(exports, module) {
|
|
23
23
|
"use strict";
|
|
24
|
-
var tty3 = __require("
|
|
24
|
+
var tty3 = __require("tty");
|
|
25
25
|
var hasColors = tty3?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
26
26
|
var format = (open, close) => {
|
|
27
27
|
if (!hasColors) {
|
|
@@ -11272,13 +11272,13 @@ var require_main = __commonJS({
|
|
|
11272
11272
|
});
|
|
11273
11273
|
|
|
11274
11274
|
// index.ts
|
|
11275
|
-
import { existsSync as existsSync2, rmSync } from "
|
|
11276
|
-
import { execSync } from "
|
|
11277
|
-
import { access, constants, lstat, readdir, readFile as readFile2 } from "
|
|
11278
|
-
import { dirname, join, parse as parse2 } from "
|
|
11279
|
-
import { fileURLToPath } from "
|
|
11275
|
+
import { existsSync as existsSync2, rmSync } from "fs";
|
|
11276
|
+
import { execSync } from "child_process";
|
|
11277
|
+
import { access, constants, lstat, readdir, readFile as readFile2 } from "fs/promises";
|
|
11278
|
+
import { dirname, join, parse as parse2 } from "path";
|
|
11279
|
+
import { fileURLToPath } from "url";
|
|
11280
11280
|
|
|
11281
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11281
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
11282
11282
|
var isUpKey = (key) => (
|
|
11283
11283
|
// The up key
|
|
11284
11284
|
key.name === "up" || // Vim keybinding
|
|
@@ -11296,7 +11296,7 @@ var isBackspaceKey = (key) => key.name === "backspace";
|
|
|
11296
11296
|
var isNumberKey = (key) => "1234567890".includes(key.name);
|
|
11297
11297
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
11298
11298
|
|
|
11299
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11299
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
11300
11300
|
var AbortPromptError = class extends Error {
|
|
11301
11301
|
name = "AbortPromptError";
|
|
11302
11302
|
message = "Prompt was aborted";
|
|
@@ -11319,11 +11319,11 @@ var ValidationError = class extends Error {
|
|
|
11319
11319
|
name = "ValidationError";
|
|
11320
11320
|
};
|
|
11321
11321
|
|
|
11322
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11323
|
-
import { AsyncResource as AsyncResource2 } from "
|
|
11322
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
11323
|
+
import { AsyncResource as AsyncResource2 } from "async_hooks";
|
|
11324
11324
|
|
|
11325
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11326
|
-
import { AsyncLocalStorage, AsyncResource } from "
|
|
11325
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
11326
|
+
import { AsyncLocalStorage, AsyncResource } from "async_hooks";
|
|
11327
11327
|
var hookStorage = new AsyncLocalStorage();
|
|
11328
11328
|
function createStore(rl) {
|
|
11329
11329
|
const store = {
|
|
@@ -11428,25 +11428,25 @@ var effectScheduler = {
|
|
|
11428
11428
|
}
|
|
11429
11429
|
};
|
|
11430
11430
|
|
|
11431
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11431
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
11432
11432
|
function useState(defaultValue) {
|
|
11433
11433
|
return withPointer((pointer) => {
|
|
11434
|
-
const
|
|
11434
|
+
const setState = AsyncResource2.bind(function setState2(newValue) {
|
|
11435
11435
|
if (pointer.get() !== newValue) {
|
|
11436
11436
|
pointer.set(newValue);
|
|
11437
11437
|
handleChange();
|
|
11438
11438
|
}
|
|
11439
|
-
};
|
|
11439
|
+
});
|
|
11440
11440
|
if (pointer.initialized) {
|
|
11441
|
-
return [pointer.get(),
|
|
11441
|
+
return [pointer.get(), setState];
|
|
11442
11442
|
}
|
|
11443
11443
|
const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
11444
11444
|
pointer.set(value);
|
|
11445
|
-
return [value,
|
|
11445
|
+
return [value, setState];
|
|
11446
11446
|
});
|
|
11447
11447
|
}
|
|
11448
11448
|
|
|
11449
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11449
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
11450
11450
|
function useEffect(cb, depArray) {
|
|
11451
11451
|
withPointer((pointer) => {
|
|
11452
11452
|
const oldDeps = pointer.get();
|
|
@@ -11458,11 +11458,11 @@ function useEffect(cb, depArray) {
|
|
|
11458
11458
|
});
|
|
11459
11459
|
}
|
|
11460
11460
|
|
|
11461
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11461
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
11462
11462
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
|
11463
11463
|
|
|
11464
|
-
// ../../node_modules/.pnpm/@inquirer+figures@1.0.
|
|
11465
|
-
import process2 from "
|
|
11464
|
+
// ../../node_modules/.pnpm/@inquirer+figures@1.0.12/node_modules/@inquirer/figures/dist/esm/index.js
|
|
11465
|
+
import process2 from "process";
|
|
11466
11466
|
function isUnicodeSupported() {
|
|
11467
11467
|
if (process2.platform !== "win32") {
|
|
11468
11468
|
return process2.env["TERM"] !== "linux";
|
|
@@ -11750,7 +11750,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
11750
11750
|
var esm_default = figures;
|
|
11751
11751
|
var replacements = Object.entries(specialMainSymbols);
|
|
11752
11752
|
|
|
11753
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11753
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
11754
11754
|
var defaultTheme = {
|
|
11755
11755
|
prefix: {
|
|
11756
11756
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
|
@@ -11772,7 +11772,7 @@ var defaultTheme = {
|
|
|
11772
11772
|
}
|
|
11773
11773
|
};
|
|
11774
11774
|
|
|
11775
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11775
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
11776
11776
|
function isPlainObject(value) {
|
|
11777
11777
|
if (typeof value !== "object" || value === null)
|
|
11778
11778
|
return false;
|
|
@@ -11800,7 +11800,7 @@ function makeTheme(...themes) {
|
|
|
11800
11800
|
return deepMerge(...themesToMerge);
|
|
11801
11801
|
}
|
|
11802
11802
|
|
|
11803
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11803
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
11804
11804
|
function usePrefix({ status = "idle", theme }) {
|
|
11805
11805
|
const [showLoader, setShowLoader] = useState(false);
|
|
11806
11806
|
const [tick, setTick] = useState(0);
|
|
@@ -11809,13 +11809,13 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
11809
11809
|
if (status === "loading") {
|
|
11810
11810
|
let tickInterval;
|
|
11811
11811
|
let inc = -1;
|
|
11812
|
-
const delayTimeout = setTimeout(
|
|
11812
|
+
const delayTimeout = setTimeout(() => {
|
|
11813
11813
|
setShowLoader(true);
|
|
11814
|
-
tickInterval = setInterval(
|
|
11814
|
+
tickInterval = setInterval(() => {
|
|
11815
11815
|
inc = inc + 1;
|
|
11816
11816
|
setTick(inc % spinner.frames.length);
|
|
11817
|
-
}
|
|
11818
|
-
}
|
|
11817
|
+
}, spinner.interval);
|
|
11818
|
+
}, 300);
|
|
11819
11819
|
return () => {
|
|
11820
11820
|
clearTimeout(delayTimeout);
|
|
11821
11821
|
clearInterval(tickInterval);
|
|
@@ -11831,7 +11831,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
11831
11831
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
11832
11832
|
}
|
|
11833
11833
|
|
|
11834
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11834
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
11835
11835
|
function useMemo(fn, dependencies) {
|
|
11836
11836
|
return withPointer((pointer) => {
|
|
11837
11837
|
const prev = pointer.get();
|
|
@@ -11844,12 +11844,12 @@ function useMemo(fn, dependencies) {
|
|
|
11844
11844
|
});
|
|
11845
11845
|
}
|
|
11846
11846
|
|
|
11847
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11847
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
11848
11848
|
function useRef(val) {
|
|
11849
11849
|
return useState({ current: val })[0];
|
|
11850
11850
|
}
|
|
11851
11851
|
|
|
11852
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11852
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
11853
11853
|
function useKeypress(userHandler) {
|
|
11854
11854
|
const signal = useRef(userHandler);
|
|
11855
11855
|
signal.current = userHandler;
|
|
@@ -11868,7 +11868,7 @@ function useKeypress(userHandler) {
|
|
|
11868
11868
|
}, []);
|
|
11869
11869
|
}
|
|
11870
11870
|
|
|
11871
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11871
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
11872
11872
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
11873
11873
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
|
11874
11874
|
function breakLines(content, width) {
|
|
@@ -11878,98 +11878,99 @@ function readlineWidth() {
|
|
|
11878
11878
|
return (0, import_cli_width.default)({ defaultWidth: 80, output: readline().output });
|
|
11879
11879
|
}
|
|
11880
11880
|
|
|
11881
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11882
|
-
function
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
const
|
|
11888
|
-
return [...items.slice(offset), ...items.slice(0, offset)];
|
|
11889
|
-
}
|
|
11890
|
-
function lines({ items, width, renderItem, active, position: requested, pageSize }) {
|
|
11891
|
-
const layouts = items.map((item, index) => ({
|
|
11892
|
-
item,
|
|
11893
|
-
index,
|
|
11894
|
-
isActive: index === active
|
|
11895
|
-
}));
|
|
11896
|
-
const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
|
|
11897
|
-
const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split(renderItem(layoutsInPage[index]), width);
|
|
11898
|
-
const pageBuffer = Array.from({ length: pageSize });
|
|
11899
|
-
const activeItem = renderItemAt(requested).slice(0, pageSize);
|
|
11900
|
-
const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
|
|
11901
|
-
pageBuffer.splice(position, activeItem.length, ...activeItem);
|
|
11902
|
-
let bufferPointer = position + activeItem.length;
|
|
11903
|
-
let layoutPointer = requested + 1;
|
|
11904
|
-
while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
|
|
11905
|
-
for (const line of renderItemAt(layoutPointer)) {
|
|
11906
|
-
pageBuffer[bufferPointer++] = line;
|
|
11907
|
-
if (bufferPointer >= pageSize)
|
|
11908
|
-
break;
|
|
11909
|
-
}
|
|
11910
|
-
layoutPointer++;
|
|
11911
|
-
}
|
|
11912
|
-
bufferPointer = position - 1;
|
|
11913
|
-
layoutPointer = requested - 1;
|
|
11914
|
-
while (bufferPointer >= 0 && layoutPointer >= 0) {
|
|
11915
|
-
for (const line of renderItemAt(layoutPointer).reverse()) {
|
|
11916
|
-
pageBuffer[bufferPointer--] = line;
|
|
11917
|
-
if (bufferPointer < 0)
|
|
11918
|
-
break;
|
|
11919
|
-
}
|
|
11920
|
-
layoutPointer--;
|
|
11921
|
-
}
|
|
11922
|
-
return pageBuffer.filter((line) => typeof line === "string");
|
|
11923
|
-
}
|
|
11924
|
-
|
|
11925
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.87/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
|
|
11926
|
-
function finite({ active, pageSize, total }) {
|
|
11881
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
11882
|
+
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
|
11883
|
+
const state = useRef({
|
|
11884
|
+
lastPointer: active,
|
|
11885
|
+
lastActive: void 0
|
|
11886
|
+
});
|
|
11887
|
+
const { lastPointer, lastActive } = state.current;
|
|
11927
11888
|
const middle = Math.floor(pageSize / 2);
|
|
11928
|
-
|
|
11929
|
-
|
|
11930
|
-
|
|
11931
|
-
|
|
11932
|
-
|
|
11933
|
-
|
|
11934
|
-
|
|
11935
|
-
|
|
11936
|
-
|
|
11937
|
-
|
|
11938
|
-
|
|
11889
|
+
const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
|
|
11890
|
+
const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
|
|
11891
|
+
let pointer = defaultPointerPosition;
|
|
11892
|
+
if (renderedLength > pageSize) {
|
|
11893
|
+
if (loop) {
|
|
11894
|
+
pointer = lastPointer;
|
|
11895
|
+
if (
|
|
11896
|
+
// First render, skip this logic.
|
|
11897
|
+
lastActive != null && // Only move the pointer down when the user moves down.
|
|
11898
|
+
lastActive < active && // Check user didn't move up across page boundary.
|
|
11899
|
+
active - lastActive < pageSize
|
|
11900
|
+
) {
|
|
11901
|
+
pointer = Math.min(
|
|
11902
|
+
// Furthest allowed position for the pointer is the middle of the list
|
|
11903
|
+
middle,
|
|
11904
|
+
Math.abs(active - lastActive) === 1 ? Math.min(
|
|
11905
|
+
// Move the pointer at most the height of the last active item.
|
|
11906
|
+
lastPointer + (renderedItems[lastActive]?.length ?? 0),
|
|
11907
|
+
// If the user moved by one item, move the pointer to the natural position of the active item as
|
|
11908
|
+
// long as it doesn't move the cursor up.
|
|
11909
|
+
Math.max(defaultPointerPosition, lastPointer)
|
|
11910
|
+
) : (
|
|
11911
|
+
// Otherwise, move the pointer down by the difference between the active and last active item.
|
|
11912
|
+
lastPointer + active - lastActive
|
|
11913
|
+
)
|
|
11914
|
+
);
|
|
11915
|
+
}
|
|
11916
|
+
} else {
|
|
11917
|
+
const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
|
|
11918
|
+
pointer = spaceUnderActive < pageSize - middle ? (
|
|
11919
|
+
// If the active item is near the end of the list, progressively move the cursor towards the end.
|
|
11920
|
+
pageSize - spaceUnderActive
|
|
11921
|
+
) : (
|
|
11922
|
+
// Otherwise, progressively move the pointer to the middle of the list.
|
|
11923
|
+
Math.min(defaultPointerPosition, middle)
|
|
11924
|
+
);
|
|
11925
|
+
}
|
|
11939
11926
|
}
|
|
11927
|
+
state.current.lastPointer = pointer;
|
|
11928
|
+
state.current.lastActive = active;
|
|
11940
11929
|
return pointer;
|
|
11941
11930
|
}
|
|
11942
|
-
|
|
11943
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.10_@types+node@18.19.87/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
11944
11931
|
function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
11945
|
-
const
|
|
11946
|
-
const
|
|
11947
|
-
|
|
11948
|
-
|
|
11949
|
-
|
|
11950
|
-
|
|
11951
|
-
pointer: state.current.position
|
|
11952
|
-
}) : finite({
|
|
11953
|
-
active,
|
|
11954
|
-
total: items.length,
|
|
11955
|
-
pageSize
|
|
11932
|
+
const width = readlineWidth();
|
|
11933
|
+
const bound = (num) => (num % items.length + items.length) % items.length;
|
|
11934
|
+
const renderedItems = items.map((item, index) => {
|
|
11935
|
+
if (item == null)
|
|
11936
|
+
return [];
|
|
11937
|
+
return breakLines(renderItem({ item, index, isActive: index === active }), width).split("\n");
|
|
11956
11938
|
});
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11939
|
+
const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
|
|
11940
|
+
const renderItemAtIndex = (index) => renderedItems[index] ?? [];
|
|
11941
|
+
const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
|
|
11942
|
+
const activeItem = renderItemAtIndex(active).slice(0, pageSize);
|
|
11943
|
+
const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
|
|
11944
|
+
const pageBuffer = Array.from({ length: pageSize });
|
|
11945
|
+
pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
|
|
11946
|
+
const itemVisited = /* @__PURE__ */ new Set([active]);
|
|
11947
|
+
let bufferPointer = activeItemPosition + activeItem.length;
|
|
11948
|
+
let itemPointer = bound(active + 1);
|
|
11949
|
+
while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
|
|
11950
|
+
const lines = renderItemAtIndex(itemPointer);
|
|
11951
|
+
const linesToAdd = lines.slice(0, pageSize - bufferPointer);
|
|
11952
|
+
pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
|
|
11953
|
+
itemVisited.add(itemPointer);
|
|
11954
|
+
bufferPointer += linesToAdd.length;
|
|
11955
|
+
itemPointer = bound(itemPointer + 1);
|
|
11956
|
+
}
|
|
11957
|
+
bufferPointer = activeItemPosition - 1;
|
|
11958
|
+
itemPointer = bound(active - 1);
|
|
11959
|
+
while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
|
|
11960
|
+
const lines = renderItemAtIndex(itemPointer);
|
|
11961
|
+
const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
|
|
11962
|
+
pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
|
|
11963
|
+
itemVisited.add(itemPointer);
|
|
11964
|
+
bufferPointer -= linesToAdd.length;
|
|
11965
|
+
itemPointer = bound(itemPointer - 1);
|
|
11966
|
+
}
|
|
11967
|
+
return pageBuffer.filter((line) => typeof line === "string").join("\n");
|
|
11967
11968
|
}
|
|
11968
11969
|
|
|
11969
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
11970
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
11970
11971
|
var import_mute_stream = __toESM(require_lib(), 1);
|
|
11971
|
-
import * as readline2 from "
|
|
11972
|
-
import { AsyncResource as AsyncResource3 } from "
|
|
11972
|
+
import * as readline2 from "readline";
|
|
11973
|
+
import { AsyncResource as AsyncResource3 } from "async_hooks";
|
|
11973
11974
|
|
|
11974
11975
|
// ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
11975
11976
|
var signals = [];
|
|
@@ -12222,9 +12223,9 @@ var {
|
|
|
12222
12223
|
unload
|
|
12223
12224
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback());
|
|
12224
12225
|
|
|
12225
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
12226
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
12226
12227
|
var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
|
|
12227
|
-
import { stripVTControlCharacters } from "
|
|
12228
|
+
import { stripVTControlCharacters } from "util";
|
|
12228
12229
|
var height = (content) => content.split("\n").length;
|
|
12229
12230
|
var lastLine = (content) => content.split("\n").pop() ?? "";
|
|
12230
12231
|
function cursorDown(n2) {
|
|
@@ -12287,7 +12288,7 @@ var ScreenManager = class {
|
|
|
12287
12288
|
}
|
|
12288
12289
|
};
|
|
12289
12290
|
|
|
12290
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
12291
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
12291
12292
|
var PromisePolyfill = class extends Promise {
|
|
12292
12293
|
// Available starting from Node 22
|
|
12293
12294
|
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/withResolvers
|
|
@@ -12302,7 +12303,7 @@ var PromisePolyfill = class extends Promise {
|
|
|
12302
12303
|
}
|
|
12303
12304
|
};
|
|
12304
12305
|
|
|
12305
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
12306
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
12306
12307
|
function getCallSites() {
|
|
12307
12308
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
12308
12309
|
let result = [];
|
|
@@ -12346,6 +12347,9 @@ function createPrompt(view) {
|
|
|
12346
12347
|
cleanups.add(onExit((code, signal2) => {
|
|
12347
12348
|
reject(new ExitPromptError(`User force closed the prompt with ${code} ${signal2}`));
|
|
12348
12349
|
}));
|
|
12350
|
+
const sigint = () => reject(new ExitPromptError(`User force closed the prompt with SIGINT`));
|
|
12351
|
+
rl.on("SIGINT", sigint);
|
|
12352
|
+
cleanups.add(() => rl.removeListener("SIGINT", sigint));
|
|
12349
12353
|
const checkCursorPos = () => screen.checkCursorPos();
|
|
12350
12354
|
rl.input.on("keypress", checkCursorPos);
|
|
12351
12355
|
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
|
@@ -12386,7 +12390,7 @@ function createPrompt(view) {
|
|
|
12386
12390
|
return prompt;
|
|
12387
12391
|
}
|
|
12388
12392
|
|
|
12389
|
-
// ../../node_modules/.pnpm/@inquirer+core@10.1.
|
|
12393
|
+
// ../../node_modules/.pnpm/@inquirer+core@10.1.13_@types+node@18.19.103/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
12390
12394
|
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
12391
12395
|
var Separator = class {
|
|
12392
12396
|
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
|
@@ -12401,7 +12405,7 @@ var Separator = class {
|
|
|
12401
12405
|
}
|
|
12402
12406
|
};
|
|
12403
12407
|
|
|
12404
|
-
// ../../node_modules/.pnpm/@inquirer+checkbox@4.1.
|
|
12408
|
+
// ../../node_modules/.pnpm/@inquirer+checkbox@4.1.8_@types+node@18.19.103/node_modules/@inquirer/checkbox/dist/esm/index.js
|
|
12405
12409
|
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
12406
12410
|
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
|
12407
12411
|
var checkboxTheme = {
|
|
@@ -12577,9 +12581,8 @@ ${theme.style.error(errorMsg)}`;
|
|
|
12577
12581
|
${page}${helpTipBottom}${choiceDescription}${error2}${import_ansi_escapes2.default.cursorHide}`;
|
|
12578
12582
|
});
|
|
12579
12583
|
|
|
12580
|
-
// ../../node_modules/.pnpm/@inquirer+editor@4.2.
|
|
12584
|
+
// ../../node_modules/.pnpm/@inquirer+editor@4.2.13_@types+node@18.19.103/node_modules/@inquirer/editor/dist/esm/index.js
|
|
12581
12585
|
var import_external_editor = __toESM(require_main(), 1);
|
|
12582
|
-
import { AsyncResource as AsyncResource4 } from "node:async_hooks";
|
|
12583
12586
|
var editorTheme = {
|
|
12584
12587
|
validationFailureMode: "keep"
|
|
12585
12588
|
};
|
|
@@ -12592,7 +12595,7 @@ var esm_default3 = createPrompt((config, done) => {
|
|
|
12592
12595
|
const prefix = usePrefix({ status, theme });
|
|
12593
12596
|
function startEditor(rl) {
|
|
12594
12597
|
rl.pause();
|
|
12595
|
-
const editCallback =
|
|
12598
|
+
const editCallback = async (error3, answer) => {
|
|
12596
12599
|
rl.resume();
|
|
12597
12600
|
if (error3) {
|
|
12598
12601
|
setError(error3.toString());
|
|
@@ -12613,7 +12616,7 @@ var esm_default3 = createPrompt((config, done) => {
|
|
|
12613
12616
|
setStatus("idle");
|
|
12614
12617
|
}
|
|
12615
12618
|
}
|
|
12616
|
-
}
|
|
12619
|
+
};
|
|
12617
12620
|
(0, import_external_editor.editAsync)(value, (error3, answer) => void editCallback(error3, answer), {
|
|
12618
12621
|
postfix,
|
|
12619
12622
|
...fileProps
|
|
@@ -12647,7 +12650,7 @@ var esm_default3 = createPrompt((config, done) => {
|
|
|
12647
12650
|
return [[prefix, message, helpTip].filter(Boolean).join(" "), error2];
|
|
12648
12651
|
});
|
|
12649
12652
|
|
|
12650
|
-
// ../../node_modules/.pnpm/@inquirer+confirm@5.1.
|
|
12653
|
+
// ../../node_modules/.pnpm/@inquirer+confirm@5.1.12_@types+node@18.19.103/node_modules/@inquirer/confirm/dist/esm/index.js
|
|
12651
12654
|
function getBooleanValue(value, defaultValue) {
|
|
12652
12655
|
let answer = defaultValue !== false;
|
|
12653
12656
|
if (/^(y|yes)/i.test(value))
|
|
@@ -12691,7 +12694,7 @@ var esm_default4 = createPrompt((config, done) => {
|
|
|
12691
12694
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
|
12692
12695
|
});
|
|
12693
12696
|
|
|
12694
|
-
// ../../node_modules/.pnpm/@inquirer+input@4.1.
|
|
12697
|
+
// ../../node_modules/.pnpm/@inquirer+input@4.1.12_@types+node@18.19.103/node_modules/@inquirer/input/dist/esm/index.js
|
|
12695
12698
|
var inputTheme = {
|
|
12696
12699
|
validationFailureMode: "keep"
|
|
12697
12700
|
};
|
|
@@ -12757,7 +12760,7 @@ var esm_default5 = createPrompt((config, done) => {
|
|
|
12757
12760
|
];
|
|
12758
12761
|
});
|
|
12759
12762
|
|
|
12760
|
-
// ../../node_modules/.pnpm/@inquirer+number@3.0.
|
|
12763
|
+
// ../../node_modules/.pnpm/@inquirer+number@3.0.15_@types+node@18.19.103/node_modules/@inquirer/number/dist/esm/index.js
|
|
12761
12764
|
function isStepOf(value, step, min) {
|
|
12762
12765
|
const valuePow = value * Math.pow(10, 6);
|
|
12763
12766
|
const stepPow = step * Math.pow(10, 6);
|
|
@@ -12838,7 +12841,7 @@ var esm_default6 = createPrompt((config, done) => {
|
|
|
12838
12841
|
];
|
|
12839
12842
|
});
|
|
12840
12843
|
|
|
12841
|
-
// ../../node_modules/.pnpm/@inquirer+expand@4.0.
|
|
12844
|
+
// ../../node_modules/.pnpm/@inquirer+expand@4.0.15_@types+node@18.19.103/node_modules/@inquirer/expand/dist/esm/index.js
|
|
12842
12845
|
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
|
12843
12846
|
function normalizeChoices2(choices2) {
|
|
12844
12847
|
return choices2.map((choice) => {
|
|
@@ -12934,7 +12937,7 @@ var esm_default7 = createPrompt((config, done) => {
|
|
|
12934
12937
|
];
|
|
12935
12938
|
});
|
|
12936
12939
|
|
|
12937
|
-
// ../../node_modules/.pnpm/@inquirer+rawlist@4.1.
|
|
12940
|
+
// ../../node_modules/.pnpm/@inquirer+rawlist@4.1.3_@types+node@18.19.103/node_modules/@inquirer/rawlist/dist/esm/index.js
|
|
12938
12941
|
var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
|
|
12939
12942
|
var numberRegex = /\d+/;
|
|
12940
12943
|
function isSelectableChoice(choice) {
|
|
@@ -13045,7 +13048,7 @@ var esm_default8 = createPrompt((config, done) => {
|
|
|
13045
13048
|
];
|
|
13046
13049
|
});
|
|
13047
13050
|
|
|
13048
|
-
// ../../node_modules/.pnpm/@inquirer+password@4.0.
|
|
13051
|
+
// ../../node_modules/.pnpm/@inquirer+password@4.0.15_@types+node@18.19.103/node_modules/@inquirer/password/dist/esm/index.js
|
|
13049
13052
|
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
|
13050
13053
|
var esm_default9 = createPrompt((config, done) => {
|
|
13051
13054
|
const { validate: validate2 = () => true } = config;
|
|
@@ -13095,7 +13098,7 @@ var esm_default9 = createPrompt((config, done) => {
|
|
|
13095
13098
|
return [[prefix, message, config.mask ? formattedValue : helpTip].join(" "), error2];
|
|
13096
13099
|
});
|
|
13097
13100
|
|
|
13098
|
-
// ../../node_modules/.pnpm/@inquirer+search@3.0.
|
|
13101
|
+
// ../../node_modules/.pnpm/@inquirer+search@3.0.15_@types+node@18.19.103/node_modules/@inquirer/search/dist/esm/index.js
|
|
13099
13102
|
var import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
|
|
13100
13103
|
var searchTheme = {
|
|
13101
13104
|
icon: { cursor: esm_default.pointer },
|
|
@@ -13261,7 +13264,7 @@ ${theme.style.description(selectedChoice.description)}` : ``;
|
|
|
13261
13264
|
];
|
|
13262
13265
|
});
|
|
13263
13266
|
|
|
13264
|
-
// ../../node_modules/.pnpm/@inquirer+select@4.2.
|
|
13267
|
+
// ../../node_modules/.pnpm/@inquirer+select@4.2.3_@types+node@18.19.103/node_modules/@inquirer/select/dist/esm/index.js
|
|
13265
13268
|
var import_yoctocolors_cjs7 = __toESM(require_yoctocolors_cjs(), 1);
|
|
13266
13269
|
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
|
13267
13270
|
var selectTheme = {
|
|
@@ -13409,21 +13412,21 @@ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes4.default.cursor
|
|
|
13409
13412
|
});
|
|
13410
13413
|
|
|
13411
13414
|
// ../build/dist/index.js
|
|
13412
|
-
import { existsSync } from "
|
|
13413
|
-
import { mkdir, opendir, rm, rmdir, writeFile } from "
|
|
13414
|
-
import path from "
|
|
13415
|
-
import { readFile } from "
|
|
13416
|
-
import { relative } from "
|
|
13415
|
+
import { existsSync } from "fs";
|
|
13416
|
+
import { mkdir, opendir, rm, rmdir, writeFile } from "fs/promises";
|
|
13417
|
+
import path from "path";
|
|
13418
|
+
import { readFile } from "fs/promises";
|
|
13419
|
+
import { relative } from "path";
|
|
13417
13420
|
import { parse } from "path";
|
|
13418
|
-
import { extname } from "
|
|
13421
|
+
import { extname } from "path";
|
|
13419
13422
|
async function mergeDts({
|
|
13420
13423
|
fileContent,
|
|
13421
13424
|
previousContent,
|
|
13422
13425
|
filepath,
|
|
13423
13426
|
meta
|
|
13424
13427
|
}) {
|
|
13425
|
-
const previousAst =
|
|
13426
|
-
const currentAst =
|
|
13428
|
+
const previousAst = nRe(previousContent);
|
|
13429
|
+
const currentAst = nRe(fileContent);
|
|
13427
13430
|
for (const imp of previousAst.imports.$items) {
|
|
13428
13431
|
currentAst.imports[imp.local] = imp;
|
|
13429
13432
|
}
|
|
@@ -13440,7 +13443,7 @@ async function mergeDts({
|
|
|
13440
13443
|
currentAst.$ast.body.splice(index, 0, node);
|
|
13441
13444
|
}
|
|
13442
13445
|
}
|
|
13443
|
-
const res = await
|
|
13446
|
+
const res = await wfs(currentAst.generate().code, meta, {
|
|
13444
13447
|
filepath
|
|
13445
13448
|
});
|
|
13446
13449
|
return clearExports(res.code, meta);
|
|
@@ -13461,7 +13464,7 @@ async function executeOperationFile(op, {
|
|
|
13461
13464
|
}) {
|
|
13462
13465
|
const code = await readFile(op.sourceAbsolute, { encoding: "utf-8" });
|
|
13463
13466
|
const filepath = relative(op.source, op.sourceAbsolute);
|
|
13464
|
-
const result = await
|
|
13467
|
+
const result = await wfs(code, meta, {
|
|
13465
13468
|
filepath
|
|
13466
13469
|
});
|
|
13467
13470
|
let fileContent = result.code;
|
|
@@ -13668,9 +13671,9 @@ function importToPotentialTargets(imp) {
|
|
|
13668
13671
|
}
|
|
13669
13672
|
var reIgnoreFile = /^(chunk-|asset-|#)/gi;
|
|
13670
13673
|
function toDist(filepath, source, dist) {
|
|
13671
|
-
const
|
|
13672
|
-
|
|
13673
|
-
return
|
|
13674
|
+
const split = filepath.split(path.sep);
|
|
13675
|
+
split[split.length - 1] = split[split.length - 1].replace(/^\$\$?(.*)\.[tj]sx?$/, "$1").replace(/^!(.*)$/, "$1");
|
|
13676
|
+
return split.join(path.sep).replace(source, dist);
|
|
13674
13677
|
}
|
|
13675
13678
|
async function safeWriteFile(destination, content) {
|
|
13676
13679
|
const destinationDir = path.dirname(destination);
|
|
@@ -13794,7 +13797,7 @@ Please report this issue to https://github.com/vikejs/bati`
|
|
|
13794
13797
|
}
|
|
13795
13798
|
}
|
|
13796
13799
|
|
|
13797
|
-
// ../features/dist/chunk-
|
|
13800
|
+
// ../features/dist/chunk-MPKO327D.js
|
|
13798
13801
|
var features = [
|
|
13799
13802
|
// Vike
|
|
13800
13803
|
{
|
|
@@ -14282,7 +14285,7 @@ var features = [
|
|
|
14282
14285
|
},
|
|
14283
14286
|
{
|
|
14284
14287
|
label: "Vike integration",
|
|
14285
|
-
href: "https://vike.dev/cloudflare
|
|
14288
|
+
href: "https://vike.dev/cloudflare"
|
|
14286
14289
|
},
|
|
14287
14290
|
{
|
|
14288
14291
|
label: "vike-cloudflare",
|
|
@@ -15029,12 +15032,12 @@ function createConsola(options = {}) {
|
|
|
15029
15032
|
}
|
|
15030
15033
|
|
|
15031
15034
|
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs
|
|
15032
|
-
import { formatWithOptions } from "
|
|
15033
|
-
import { sep } from "
|
|
15035
|
+
import { formatWithOptions } from "util";
|
|
15036
|
+
import { sep } from "path";
|
|
15034
15037
|
function parseStack(stack, message) {
|
|
15035
15038
|
const cwd = process.cwd() + sep;
|
|
15036
|
-
const
|
|
15037
|
-
return
|
|
15039
|
+
const lines = stack.split("\n").splice(message.split("\n").length).map((l2) => l2.trim().replace("file://", "").replace(cwd, ""));
|
|
15040
|
+
return lines;
|
|
15038
15041
|
}
|
|
15039
15042
|
function writeStream(data, stream) {
|
|
15040
15043
|
const write = stream.__write || stream.write;
|
|
@@ -15098,10 +15101,10 @@ ${indent}`);
|
|
|
15098
15101
|
};
|
|
15099
15102
|
|
|
15100
15103
|
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
|
|
15101
|
-
import g$1 from "
|
|
15104
|
+
import g$1 from "process";
|
|
15102
15105
|
|
|
15103
15106
|
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs
|
|
15104
|
-
import * as tty from "
|
|
15107
|
+
import * as tty from "tty";
|
|
15105
15108
|
var {
|
|
15106
15109
|
env = {},
|
|
15107
15110
|
argv = [],
|
|
@@ -15337,6 +15340,9 @@ function box(text, _opts = {}) {
|
|
|
15337
15340
|
}
|
|
15338
15341
|
|
|
15339
15342
|
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
|
|
15343
|
+
import "util";
|
|
15344
|
+
import "path";
|
|
15345
|
+
import "tty";
|
|
15340
15346
|
var r = /* @__PURE__ */ Object.create(null);
|
|
15341
15347
|
var i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis);
|
|
15342
15348
|
var o = new Proxy(r, { get(e, s2) {
|
|
@@ -15599,7 +15605,7 @@ function createConsola2(options = {}) {
|
|
|
15599
15605
|
defaults: { level },
|
|
15600
15606
|
stdout: process.stdout,
|
|
15601
15607
|
stderr: process.stderr,
|
|
15602
|
-
prompt: (...args) => import("./prompt-
|
|
15608
|
+
prompt: (...args) => import("./prompt-HBAIF7ML.js").then((m) => m.prompt(...args)),
|
|
15603
15609
|
reporters: options.reporters || [
|
|
15604
15610
|
options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()
|
|
15605
15611
|
],
|
|
@@ -15618,6 +15624,9 @@ function _getDefaultLogLevel() {
|
|
|
15618
15624
|
}
|
|
15619
15625
|
var consola = createConsola2();
|
|
15620
15626
|
|
|
15627
|
+
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/utils.mjs
|
|
15628
|
+
import "tty";
|
|
15629
|
+
|
|
15621
15630
|
// ../../node_modules/.pnpm/citty@0.1.6/node_modules/citty/dist/index.mjs
|
|
15622
15631
|
function toArray(val) {
|
|
15623
15632
|
if (Array.isArray(val)) {
|
|
@@ -15625,14 +15634,14 @@ function toArray(val) {
|
|
|
15625
15634
|
}
|
|
15626
15635
|
return val === void 0 ? [] : [val];
|
|
15627
15636
|
}
|
|
15628
|
-
function formatLineColumns(
|
|
15637
|
+
function formatLineColumns(lines, linePrefix = "") {
|
|
15629
15638
|
const maxLengh = [];
|
|
15630
|
-
for (const line of
|
|
15639
|
+
for (const line of lines) {
|
|
15631
15640
|
for (const [i2, element] of line.entries()) {
|
|
15632
15641
|
maxLengh[i2] = Math.max(maxLengh[i2] || 0, element.length);
|
|
15633
15642
|
}
|
|
15634
15643
|
}
|
|
15635
|
-
return
|
|
15644
|
+
return lines.map(
|
|
15636
15645
|
(l2) => l2.map(
|
|
15637
15646
|
(c2, i2) => linePrefix + c2[i2 === 0 ? "padStart" : "padEnd"](maxLengh[i2])
|
|
15638
15647
|
).join(" ")
|
|
@@ -16967,7 +16976,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
16967
16976
|
// package.json
|
|
16968
16977
|
var package_default = {
|
|
16969
16978
|
name: "@batijs/cli",
|
|
16970
|
-
version: "0.0.
|
|
16979
|
+
version: "0.0.435",
|
|
16971
16980
|
type: "module",
|
|
16972
16981
|
scripts: {
|
|
16973
16982
|
"check-types": "tsc --noEmit",
|
|
@@ -16983,16 +16992,16 @@ var package_default = {
|
|
|
16983
16992
|
devDependencies: {
|
|
16984
16993
|
"@batijs/build": "workspace:*",
|
|
16985
16994
|
"@batijs/compile": "workspace:*",
|
|
16986
|
-
"@inquirer/prompts": "^7.5.
|
|
16987
|
-
"@types/node": "^18.19.
|
|
16995
|
+
"@inquirer/prompts": "^7.5.3",
|
|
16996
|
+
"@types/node": "^18.19.103",
|
|
16988
16997
|
"@types/which": "^3.0.4",
|
|
16989
16998
|
citty: "^0.1.6",
|
|
16990
16999
|
colorette: "^2.0.20",
|
|
16991
|
-
esbuild: "^0.25.
|
|
16992
|
-
execa: "^9.5.
|
|
17000
|
+
esbuild: "^0.25.4",
|
|
17001
|
+
execa: "^9.5.3",
|
|
16993
17002
|
rimraf: "^6.0.1",
|
|
16994
17003
|
sift: "^17.1.3",
|
|
16995
|
-
tsup: "^8.
|
|
17004
|
+
tsup: "^8.5.0",
|
|
16996
17005
|
typescript: "^5.8.3",
|
|
16997
17006
|
"unplugin-purge-polyfills": "^0.1.0",
|
|
16998
17007
|
vite: "^6.3.5"
|
|
@@ -17106,10 +17115,10 @@ function findDescription(key) {
|
|
|
17106
17115
|
}
|
|
17107
17116
|
}
|
|
17108
17117
|
function printOK(dist, flags2) {
|
|
17109
|
-
const arrow0 =
|
|
17110
|
-
const book0 =
|
|
17111
|
-
const list3 =
|
|
17112
|
-
const cmd3 =
|
|
17118
|
+
const arrow0 = GQr("\u2192", blueBright);
|
|
17119
|
+
const book0 = GQr("\u{1F4DA}", blueBright);
|
|
17120
|
+
const list3 = GQr("-", void 0, 3);
|
|
17121
|
+
const cmd3 = GQr("$", gray, 3);
|
|
17113
17122
|
console.log(bold(`${green("\u2713")} Project created at ${cyan(dist)} with:`));
|
|
17114
17123
|
console.log(list3(green("Vike")));
|
|
17115
17124
|
for (const key of flags2) {
|