@batijs/cli 0.0.17 → 0.0.19
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/edgedb/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/edgedb/{chunk-package-YA6LQX6A.js → chunk-package-6XVB2UQ4.js} +1 -1
- package/dist/boilerplates/@batijs/express/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/{chunk-package-HAYHYJN6.js → chunk-package-PV3SP4BH.js} +1 -1
- package/dist/boilerplates/@batijs/hattip/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hattip/{chunk-package-2ZCYV5QA.js → chunk-package-IIUDDCIK.js} +1 -1
- package/dist/boilerplates/@batijs/prisma/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prisma/{chunk-package-4ZWXXBQR.js → chunk-package-GV2AUFEK.js} +1 -1
- package/dist/boilerplates/@batijs/shared/package.json +1 -1
- package/dist/boilerplates/@batijs/solid/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/{chunk-package-VU2VJMMM.js → chunk-package-R2WSGRDQ.js} +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/{chunk-package-TPBRD2TI.js → chunk-package-JW467NB7.js} +1 -1
- package/dist/boilerplates/@batijs/telefunc/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/{chunk-package-YNWFSVHU.js → chunk-package-EACKTJ7X.js} +1 -1
- package/dist/index.js +12 -5
- package/package.json +4 -4
|
@@ -4,7 +4,7 @@ async function getPackageJson(currentContent) {
|
|
|
4
4
|
const packageJson = await loadAsJson(currentContent);
|
|
5
5
|
packageJson.scripts["edgedb:generate-queries"] = "@edgedb/generate queries";
|
|
6
6
|
packageJson.scripts["edgedb:generate-edgeql-js"] = "@edgedb/generate edgeql-js";
|
|
7
|
-
return addDependency(packageJson, await import("./chunk-package-
|
|
7
|
+
return addDependency(packageJson, await import("./chunk-package-6XVB2UQ4.js"), {
|
|
8
8
|
devDependencies: ["@edgedb/generate"],
|
|
9
9
|
dependencies: ["edgedb"]
|
|
10
10
|
});
|
|
@@ -4,7 +4,7 @@ async function getPackageJson(currentContent, meta) {
|
|
|
4
4
|
const packageJson = await loadAsJson(currentContent);
|
|
5
5
|
packageJson.scripts.dev = "tsx ./express-entry.ts";
|
|
6
6
|
packageJson.scripts.build = "vite build";
|
|
7
|
-
return addDependency(packageJson, await import("./chunk-package-
|
|
7
|
+
return addDependency(packageJson, await import("./chunk-package-PV3SP4BH.js"), {
|
|
8
8
|
devDependencies: ["@types/express"],
|
|
9
9
|
dependencies: [
|
|
10
10
|
"@hattip/adapter-node",
|
|
@@ -7,7 +7,7 @@ async function getPackageJson(currentContent, meta) {
|
|
|
7
7
|
if (packageJson.scripts.preview) {
|
|
8
8
|
delete packageJson.scripts.preview;
|
|
9
9
|
}
|
|
10
|
-
return addDependency(packageJson, await import("./chunk-package-
|
|
10
|
+
return addDependency(packageJson, await import("./chunk-package-IIUDDCIK.js"), {
|
|
11
11
|
devDependencies: ["@hattip/vite", "@hattip/adapter-node"],
|
|
12
12
|
dependencies: [
|
|
13
13
|
"@hattip/router",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { addDependency, loadAsJson } from "@batijs/core";
|
|
3
3
|
async function getPackageJson(currentContent) {
|
|
4
4
|
const packageJson = await loadAsJson(currentContent);
|
|
5
|
-
return addDependency(packageJson, await import("./chunk-package-
|
|
5
|
+
return addDependency(packageJson, await import("./chunk-package-GV2AUFEK.js"), {
|
|
6
6
|
devDependencies: ["prisma"],
|
|
7
7
|
dependencies: ["@prisma/client"]
|
|
8
8
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { addDependency, loadAsJson } from "@batijs/core";
|
|
3
3
|
async function getPackageJson(currentContent) {
|
|
4
4
|
const packageJson = await loadAsJson(currentContent);
|
|
5
|
-
return addDependency(packageJson, await import("./chunk-package-
|
|
5
|
+
return addDependency(packageJson, await import("./chunk-package-R2WSGRDQ.js"), {
|
|
6
6
|
devDependencies: ["vite"],
|
|
7
7
|
dependencies: ["cross-fetch", "solid-js", "vike-solid"]
|
|
8
8
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { addDependency, loadAsJson } from "@batijs/core";
|
|
3
3
|
async function getPackageJson(currentContent, meta) {
|
|
4
4
|
const packageJson = await loadAsJson(currentContent);
|
|
5
|
-
return addDependency(packageJson, await import("./chunk-package-
|
|
5
|
+
return addDependency(packageJson, await import("./chunk-package-JW467NB7.js"), {
|
|
6
6
|
devDependencies: ["tailwindcss", "postcss", "autoprefixer"]
|
|
7
7
|
});
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { addDependency, loadAsJson } from "@batijs/core";
|
|
3
3
|
async function getPackageJson(currentContent) {
|
|
4
4
|
const packageJson = await loadAsJson(currentContent);
|
|
5
|
-
return addDependency(packageJson, await import("./chunk-package-
|
|
5
|
+
return addDependency(packageJson, await import("./chunk-package-EACKTJ7X.js"), {
|
|
6
6
|
dependencies: ["telefunc"]
|
|
7
7
|
});
|
|
8
8
|
}
|
package/dist/index.js
CHANGED
|
@@ -551,6 +551,7 @@ ${bgRed(` ${error.code || error.name} `)} ${error.message}
|
|
|
551
551
|
// ../build/dist/exec.js
|
|
552
552
|
import { loadFile, transformAndGenerate } from "@batijs/core";
|
|
553
553
|
import { copyFile, mkdir, opendir, readFile, writeFile } from "fs/promises";
|
|
554
|
+
import { existsSync } from "fs";
|
|
554
555
|
import path from "path";
|
|
555
556
|
var reIgnoreFile = /^(chunk-|asset-|#)/gi;
|
|
556
557
|
function toDist(filepath, source, dist) {
|
|
@@ -573,6 +574,8 @@ async function safeWriteFile(destination, content) {
|
|
|
573
574
|
await writeFile(destination, content, { encoding: "utf-8" });
|
|
574
575
|
}
|
|
575
576
|
async function* walk(dir, meta) {
|
|
577
|
+
if (!existsSync(dir))
|
|
578
|
+
return;
|
|
576
579
|
for await (const d of await opendir(dir)) {
|
|
577
580
|
const entry = path.join(dir, d.name);
|
|
578
581
|
if (d.isDirectory()) {
|
|
@@ -645,7 +648,7 @@ Please report this issue to https://github.com/magne4000/bati`
|
|
|
645
648
|
// package.json
|
|
646
649
|
var package_default = {
|
|
647
650
|
name: "@batijs/cli",
|
|
648
|
-
version: "0.0.
|
|
651
|
+
version: "0.0.19",
|
|
649
652
|
description: "Scaffold typescript projects with ease and modularity",
|
|
650
653
|
type: "module",
|
|
651
654
|
scripts: {
|
|
@@ -693,7 +696,7 @@ var package_default = {
|
|
|
693
696
|
|
|
694
697
|
// index.ts
|
|
695
698
|
import { flags as coreFlags } from "@batijs/core";
|
|
696
|
-
import { existsSync } from "fs";
|
|
699
|
+
import { existsSync as existsSync2 } from "fs";
|
|
697
700
|
import { fileURLToPath } from "url";
|
|
698
701
|
import { dirname, join } from "path";
|
|
699
702
|
import { access, constants, lstat, readdir, readFile as readFile2 } from "fs/promises";
|
|
@@ -817,9 +820,9 @@ var {
|
|
|
817
820
|
var __filename = fileURLToPath(import.meta.url);
|
|
818
821
|
var __dirname = dirname(__filename);
|
|
819
822
|
function boilerplatesDir() {
|
|
820
|
-
if (
|
|
823
|
+
if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
|
|
821
824
|
return join(__dirname, "boilerplates");
|
|
822
|
-
} else if (
|
|
825
|
+
} else if (existsSync2(join(__dirname, "dist", "boilerplates", "boilerplates.json"))) {
|
|
823
826
|
return join(__dirname, "dist", "boilerplates");
|
|
824
827
|
}
|
|
825
828
|
throw new Error("Missing boilerplates.json file. Run `pnpm run build`");
|
|
@@ -859,6 +862,10 @@ function printOK(dist, flags, boilerplates) {
|
|
|
859
862
|
continue;
|
|
860
863
|
console.log(` - ${green2(bl.config.name)}`);
|
|
861
864
|
}
|
|
865
|
+
console.log("\n" + bold2(`${blue2("\u2192")} Next steps:`));
|
|
866
|
+
console.log(` ${gray2("$")} cd ${dist}`);
|
|
867
|
+
console.log(` ${gray2("$")} pnpm install`);
|
|
868
|
+
console.log(` ${gray2("$")} pnpm run dev`);
|
|
862
869
|
}
|
|
863
870
|
var defaultDef = {
|
|
864
871
|
project: {
|
|
@@ -881,7 +888,7 @@ function yn(value, default_) {
|
|
|
881
888
|
return default_;
|
|
882
889
|
}
|
|
883
890
|
async function checkArguments(args) {
|
|
884
|
-
if (
|
|
891
|
+
if (existsSync2(args.project)) {
|
|
885
892
|
const stat = await lstat(args.project);
|
|
886
893
|
if (!stat.isDirectory()) {
|
|
887
894
|
console.error(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Scaffold typescript projects with ease and modularity",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [],
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"typescript": "^5.0.4",
|
|
19
19
|
"vitest": "^0.31.0",
|
|
20
20
|
"wait-for-localhost": "^4.0.1",
|
|
21
|
-
"@batijs/
|
|
22
|
-
"@batijs/
|
|
21
|
+
"@batijs/build": "0.0.19",
|
|
22
|
+
"@batijs/tsup": "0.0.19"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@batijs/core": "0.0.
|
|
25
|
+
"@batijs/core": "0.0.19"
|
|
26
26
|
},
|
|
27
27
|
"bin": "./dist/index.js",
|
|
28
28
|
"exports": {
|