@batijs/cli 0.0.530 → 0.0.532
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/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/auth0/files/$.env.js +6 -6
- package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +4 -4
- package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +4 -4
- package/dist/boilerplates/@batijs/authjs/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/aws/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +6 -6
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +6 -6
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +7 -7
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/aws/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/cdk/$stack-name-suffix.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$biome.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/cloudflare/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +6 -6
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/compiled/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/d1/bati.config.js +17 -1
- package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +6 -6
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +4 -4
- package/dist/boilerplates/@batijs/d1-sqlite/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/drizzle/bati.config.js +17 -1
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +6 -6
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/eslint/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/express/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/express/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/fastify/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/google-analytics/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/h3/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/hono/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/mantine/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +4 -4
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/photon/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +4 -4
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/plausible.io/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +4 -4
- package/dist/boilerplates/@batijs/pnpm/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +4 -4
- package/dist/boilerplates/@batijs/prettier/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/prisma/bati.config.js +13 -1
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +8 -6
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/react/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +4 -4
- package/dist/boilerplates/@batijs/react/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/react-sentry/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/sentry/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +5 -5
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +6 -6
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +8 -8
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +10 -10
- package/dist/boilerplates/@batijs/shadcn-ui/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +6 -6
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/shared/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +8 -8
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +4 -4
- package/dist/boilerplates/@batijs/shared-db/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/shared-todo/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/solid/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +4 -4
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/solid-sentry/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/sqlite/bati.config.js +9 -1
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +8 -6
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +6 -6
- package/dist/boilerplates/@batijs/tailwindcss/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/telefunc/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/trpc/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/ts-rest/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/vercel/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +5 -5
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +4 -4
- package/dist/boilerplates/@batijs/vue/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +4 -4
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +4 -4
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/vue-sentry/bati.config.js +1 -1
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +4 -4
- package/dist/{chunk-DHZ7AZKP.js → chunk-IHX3I5SM.js} +5 -0
- package/dist/{chunk-L2AHUKWS.js → chunk-IT2OMBYW.js} +126963 -126394
- package/dist/index.js +88 -39
- package/dist/{jiti-ZW3ADF2F-7XIEJQMO.js → jiti-ZW3ADF2F-2SLKRUEN.js} +1 -1
- package/dist/{prompt-HBAIF7ML.js → prompt-YBELZKBA.js} +1 -1
- package/dist/{src-5HGZFBZ3-KQZBBJSW.js → src-5HGZFBZ3-CGUDMVWF.js} +1 -1
- package/package.json +6 -6
|
@@ -3,13 +3,29 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
10
10
|
var bati_config_default = i({
|
|
11
11
|
if(meta) {
|
|
12
12
|
return meta.BATI.has("drizzle");
|
|
13
|
+
},
|
|
14
|
+
nextSteps(_meta, packageManager, { bold }) {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
type: "text",
|
|
18
|
+
step: `Add your drizzle ${bold("DATABASE_URL")} to the .env file. Check ${bold("TODO.md")} for details`
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
type: "command",
|
|
22
|
+
step: `${packageManager} drizzle:generate`
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
type: "command",
|
|
26
|
+
step: `${packageManager} drizzle:migrate`
|
|
27
|
+
}
|
|
28
|
+
];
|
|
13
29
|
}
|
|
14
30
|
});
|
|
15
31
|
export {
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
r9s
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/drizzle/dist/files/$.env.js
|
|
12
12
|
async function getEnv(props) {
|
|
13
13
|
if (props.meta.BATI.hasD1) return;
|
|
14
14
|
const envContent = await props.readfile?.();
|
|
15
|
-
return
|
|
15
|
+
return r9s(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
|
|
16
16
|
}
|
|
17
17
|
export {
|
|
18
18
|
getEnv as default
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "../../../../chunk-
|
|
6
|
+
Nus,
|
|
7
|
+
gSs
|
|
8
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
|
-
import "../../../../chunk-
|
|
10
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/drizzle/dist/files/$TODO.md.js
|
|
13
13
|
async function getTodo(props) {
|
|
14
|
-
const content = await
|
|
15
|
-
const pmCmd =
|
|
14
|
+
const content = await gSs(props);
|
|
15
|
+
const pmCmd = Nus().run;
|
|
16
16
|
const todo = `
|
|
17
17
|
## Drizzle
|
|
18
18
|
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/drizzle/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -53,7 +53,7 @@ var require_package = __commonJS({
|
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
54
|
"@types/better-sqlite3": "^7.6.13",
|
|
55
55
|
"@types/node": "^20.19.25",
|
|
56
|
-
"better-sqlite3": "^12.
|
|
56
|
+
"better-sqlite3": "^12.5.0",
|
|
57
57
|
dotenv: "^17.2.3",
|
|
58
58
|
"drizzle-kit": "^0.31.7",
|
|
59
59
|
"drizzle-orm": "^0.44.7"
|
|
@@ -98,7 +98,7 @@ var require_package = __commonJS({
|
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
100
|
async function getPackageJson(props) {
|
|
101
|
-
const packageJson = await
|
|
101
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
102
102
|
return packageJson.setScript("drizzle:generate", {
|
|
103
103
|
value: "drizzle-kit generate",
|
|
104
104
|
precedence: 20
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/eslint/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -57,7 +57,7 @@ var require_package = __commonJS({
|
|
|
57
57
|
"eslint-plugin-prettier": "^5.5.4",
|
|
58
58
|
"eslint-plugin-react": "^7.37.5",
|
|
59
59
|
"eslint-plugin-solid": "^0.14.5",
|
|
60
|
-
"eslint-plugin-vue": "^10.6.
|
|
60
|
+
"eslint-plugin-vue": "^10.6.2",
|
|
61
61
|
globals: "^16.5.0",
|
|
62
62
|
"typescript-eslint": "^8.48.0",
|
|
63
63
|
"vue-eslint-parser": "^10.2.0"
|
|
@@ -84,7 +84,7 @@ var require_package = __commonJS({
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
async function getPackageJson(props) {
|
|
87
|
-
const packageJson = await
|
|
87
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
88
88
|
return packageJson.setScript("lint", {
|
|
89
89
|
value: "eslint .",
|
|
90
90
|
precedence: 0
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/express/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -52,7 +52,7 @@ var require_package = __commonJS({
|
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@auth/core": "^0.41.1",
|
|
54
54
|
"@batijs/compile": "workspace:*",
|
|
55
|
-
"@photonjs/express": "^0.1.
|
|
55
|
+
"@photonjs/express": "^0.1.9",
|
|
56
56
|
"@trpc/server": "^11.7.2",
|
|
57
57
|
"@types/express": "^5.0.5",
|
|
58
58
|
"@types/node": "^20.19.25",
|
|
@@ -84,7 +84,7 @@ var require_package = __commonJS({
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
async function getPackageJson(props) {
|
|
87
|
-
const packageJson = await
|
|
87
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
88
88
|
return packageJson.addDevDependencies(["@types/express"]).addDependencies(["@photonjs/express", "express", "vite", "vike"]).addDependencies(["dotenv"], props.meta.BATI.has("auth0") || props.meta.BATI.hasDatabase);
|
|
89
89
|
}
|
|
90
90
|
export {
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/fastify/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -52,7 +52,7 @@ var require_package = __commonJS({
|
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@auth/core": "^0.41.1",
|
|
54
54
|
"@batijs/compile": "workspace:*",
|
|
55
|
-
"@photonjs/fastify": "^0.1.
|
|
55
|
+
"@photonjs/fastify": "^0.1.8",
|
|
56
56
|
"@trpc/server": "^11.7.2",
|
|
57
57
|
"@types/express": "^5.0.5",
|
|
58
58
|
"@types/node": "^20.19.25",
|
|
@@ -85,7 +85,7 @@ var require_package = __commonJS({
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
async function getPackageJson(props) {
|
|
88
|
-
const packageJson = await
|
|
88
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
89
89
|
return packageJson.addDevDependencies(["@types/node"]).addDependencies(["@photonjs/fastify", "fastify", "fastify-raw-body", "vike", "vite"]).addDependencies(["dotenv"], props.meta.BATI.has("auth0") || props.meta.BATI.hasDatabase);
|
|
90
90
|
}
|
|
91
91
|
export {
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,15 +3,15 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
r9s
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/google-analytics/dist/files/$.env.js
|
|
12
12
|
async function getEnv(props) {
|
|
13
13
|
const envContent = await props.readfile?.();
|
|
14
|
-
return
|
|
14
|
+
return r9s(
|
|
15
15
|
envContent,
|
|
16
16
|
"PUBLIC_ENV__GOOGLE_ANALYTICS",
|
|
17
17
|
"G-XXXXXXXXXX",
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/h3/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -52,7 +52,7 @@ var require_package = __commonJS({
|
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@auth/core": "^0.41.1",
|
|
54
54
|
"@batijs/compile": "workspace:*",
|
|
55
|
-
"@photonjs/h3": "^0.1.
|
|
55
|
+
"@photonjs/h3": "^0.1.8",
|
|
56
56
|
"@trpc/server": "^11.7.2",
|
|
57
57
|
"@types/express": "^5.0.5",
|
|
58
58
|
"@types/node": "^20.19.25",
|
|
@@ -86,7 +86,7 @@ var require_package = __commonJS({
|
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
async function getPackageJson(props) {
|
|
89
|
-
const packageJson = await
|
|
89
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
90
90
|
return packageJson.addDependencies(["h3", "vike", "vite", "@photonjs/h3", "@universal-middleware/core"]).addDependencies(["@auth/core"], props.meta.BATI.has("authjs") || props.meta.BATI.has("auth0")).addDependencies(
|
|
91
91
|
["dotenv"],
|
|
92
92
|
(props.meta.BATI.has("auth0") || props.meta.BATI.hasDatabase) && !props.meta.BATI.has("cloudflare")
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/hono/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -52,12 +52,12 @@ var require_package = __commonJS({
|
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@auth/core": "^0.41.1",
|
|
54
54
|
"@batijs/compile": "workspace:*",
|
|
55
|
-
"@photonjs/hono": "^0.1.
|
|
55
|
+
"@photonjs/hono": "^0.1.8",
|
|
56
56
|
"@trpc/server": "^11.7.2",
|
|
57
57
|
"@types/aws-lambda": "^8.10.159",
|
|
58
58
|
"@types/node": "^20.19.25",
|
|
59
59
|
dotenv: "^17.2.3",
|
|
60
|
-
hono: "^4.10.
|
|
60
|
+
hono: "^4.10.7",
|
|
61
61
|
telefunc: "^0.2.17",
|
|
62
62
|
vike: "^0.4.247",
|
|
63
63
|
"vike-photon": "^0.1.20",
|
|
@@ -91,7 +91,7 @@ var require_package = __commonJS({
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
async function getPackageJson(props) {
|
|
94
|
-
const packageJson = await
|
|
94
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
95
95
|
return packageJson.addDevDependencies(["@types/node"]).addDevDependencies(["@types/aws-lambda", "vike-photon"], props.meta.BATI.has("aws")).addDependencies(["@photonjs/hono", "hono", "vite", "vike"]).addDependencies(
|
|
96
96
|
["dotenv"],
|
|
97
97
|
(props.meta.BATI.has("auth0") || props.meta.BATI.hasDatabase) && !props.meta.BATI.has("cloudflare")
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
gSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/mantine/dist/files/$README.md.js
|
|
12
12
|
async function getReadme(props) {
|
|
13
|
-
const content = await
|
|
13
|
+
const content = await gSs(props);
|
|
14
14
|
const about = `
|
|
15
15
|
## Mantine
|
|
16
16
|
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/mantine/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -93,7 +93,7 @@ var require_package = __commonJS({
|
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
async function getPackageJson(props) {
|
|
96
|
-
const packageJson = await
|
|
96
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
97
97
|
return packageJson.addDevDependencies(["postcss", "postcss-preset-mantine", "postcss-simple-vars"]).addDependencies(["@mantine/core", "@mantine/hooks"]);
|
|
98
98
|
}
|
|
99
99
|
export {
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
gSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/photon/dist/files/$README.md.js
|
|
12
12
|
async function getReadme(props) {
|
|
13
|
-
const content = await
|
|
13
|
+
const content = await gSs(props);
|
|
14
14
|
const photon = `
|
|
15
15
|
## Photon
|
|
16
16
|
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/photon/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -76,7 +76,7 @@ var require_package = __commonJS({
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
async function getPackageJson(props) {
|
|
79
|
-
const packageJson = await
|
|
79
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
80
80
|
return packageJson.setScript("dev", {
|
|
81
81
|
value: "vike dev",
|
|
82
82
|
precedence: 20,
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
gSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/plausible.io/dist/files/$TODO.md.js
|
|
12
12
|
async function getTodo(props) {
|
|
13
|
-
const content = await
|
|
13
|
+
const content = await gSs(props);
|
|
14
14
|
const headFileName = props.meta.BATI.has("vue") ? "+Head.vue" : "+Head.tsx";
|
|
15
15
|
const todo = `
|
|
16
16
|
## plausible.io
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
SSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/pnpm/dist/files/$pnpm-workspace.yaml.js
|
|
12
12
|
var dependenciesApproveBuild = [
|
|
@@ -28,7 +28,7 @@ async function getPnpmWorkspace(props) {
|
|
|
28
28
|
];
|
|
29
29
|
const intersection = intersect(dependenciesApproveBuild, deps);
|
|
30
30
|
if (intersection.length === 0) return;
|
|
31
|
-
const pnpmWorkspace = await
|
|
31
|
+
const pnpmWorkspace = await SSs(props, { fallbackEmpty: true });
|
|
32
32
|
if (!pnpmWorkspace.has("onlyBuiltDependencies")) {
|
|
33
33
|
pnpmWorkspace.set("onlyBuiltDependencies", []);
|
|
34
34
|
}
|
|
@@ -3,7 +3,7 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
@@ -3,10 +3,10 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
bSs
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/prettier/dist/files/$package.json.js
|
|
12
12
|
var __create = Object.create;
|
|
@@ -52,7 +52,7 @@ var require_package = __commonJS({
|
|
|
52
52
|
devDependencies: {
|
|
53
53
|
"@batijs/compile": "workspace:*",
|
|
54
54
|
"@types/node": "^20.19.25",
|
|
55
|
-
prettier: "^3.
|
|
55
|
+
prettier: "^3.7.3"
|
|
56
56
|
},
|
|
57
57
|
dependencies: {
|
|
58
58
|
"@batijs/core": "workspace:*"
|
|
@@ -64,7 +64,7 @@ var require_package = __commonJS({
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
async function getPackageJson(props) {
|
|
67
|
-
const packageJson = await
|
|
67
|
+
const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
68
68
|
return packageJson.addDevDependencies(["prettier"]);
|
|
69
69
|
}
|
|
70
70
|
export {
|
|
@@ -3,13 +3,25 @@ function t(e, r) {
|
|
|
3
3
|
if (!e) throw new Error(r);
|
|
4
4
|
}
|
|
5
5
|
function i(e) {
|
|
6
|
-
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
|
|
6
|
+
return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
// bati.config.ts
|
|
10
10
|
var bati_config_default = i({
|
|
11
11
|
if(meta) {
|
|
12
12
|
return meta.BATI.has("prisma");
|
|
13
|
+
},
|
|
14
|
+
nextSteps(_meta, packageManager) {
|
|
15
|
+
return [
|
|
16
|
+
{
|
|
17
|
+
type: "command",
|
|
18
|
+
step: `${packageManager} prisma init --db`
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
type: "text",
|
|
22
|
+
step: `Then follow instructions at https://www.prisma.io/docs/getting-started/prisma-orm/quickstart/prisma-postgres`
|
|
23
|
+
}
|
|
24
|
+
];
|
|
13
25
|
}
|
|
14
26
|
});
|
|
15
27
|
export {
|
|
@@ -3,15 +3,15 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
r9s
|
|
7
|
+
} from "../../../../chunk-IT2OMBYW.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
-
import "../../../../chunk-
|
|
9
|
+
import "../../../../chunk-IHX3I5SM.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/prisma/dist/files/$.env.js
|
|
12
12
|
async function getEnv(props) {
|
|
13
13
|
const envContent = await props.readfile?.();
|
|
14
|
-
return
|
|
14
|
+
return r9s(
|
|
15
15
|
envContent,
|
|
16
16
|
"DATABASE_URL",
|
|
17
17
|
"postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public",
|