@batijs/cli 0.0.95 → 0.0.97

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.
Files changed (34) hide show
  1. package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
  2. package/dist/boilerplates/@batijs/express/files/express-entry.ts +2 -2
  3. package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
  4. package/dist/boilerplates/@batijs/h3/files/h3-entry.ts +2 -2
  5. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +1 -1
  6. package/dist/boilerplates/@batijs/hattip/files/hattip-entry.ts +2 -2
  7. package/dist/boilerplates/@batijs/react/files/$.eslintrc.json.js +1 -1
  8. package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
  9. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +1 -1
  10. package/dist/boilerplates/@batijs/react/files/layouts/HeadDefault.tsx +1 -1
  11. package/dist/boilerplates/@batijs/react/files/layouts/LayoutDefault.tsx +10 -10
  12. package/dist/boilerplates/@batijs/react/files/pages/index/+Page.tsx +1 -1
  13. package/dist/boilerplates/@batijs/react/files/pages/index/Counter.tsx +1 -1
  14. package/dist/boilerplates/@batijs/shared/files/$index.html.js +1 -1
  15. package/dist/boilerplates/@batijs/solid/files/$.eslintrc.json.js +1 -1
  16. package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
  17. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +1 -1
  18. package/dist/boilerplates/@batijs/solid/files/layouts/HeadDefault.tsx +1 -1
  19. package/dist/boilerplates/@batijs/solid/files/layouts/LayoutDefault.tsx +10 -10
  20. package/dist/boilerplates/@batijs/solid/files/pages/index/+Page.tsx +1 -1
  21. package/dist/boilerplates/@batijs/solid/files/pages/index/Counter.tsx +1 -1
  22. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
  23. package/dist/boilerplates/@batijs/vercel/{package-Z3CBCFWC.js → package-C6UCXEGF.js} +1 -1
  24. package/dist/boilerplates/@batijs/vue/files/$.eslintrc.json.js +1 -1
  25. package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
  26. package/dist/boilerplates/@batijs/vue/files/components/Content.vue +2 -2
  27. package/dist/boilerplates/@batijs/vue/files/components/Counter.vue +2 -2
  28. package/dist/boilerplates/@batijs/vue/files/components/Logo.vue +2 -2
  29. package/dist/boilerplates/@batijs/vue/files/components/Sidebar.vue +2 -2
  30. package/dist/boilerplates/@batijs/vue/files/layouts/HeadDefault.vue +1 -1
  31. package/dist/boilerplates/@batijs/vue/files/layouts/LayoutDefault.vue +2 -2
  32. package/dist/boilerplates/@batijs/vue/files/pages/index/+Page.vue +2 -2
  33. package/dist/index.js +2 -2
  34. package/package.json +5 -5
@@ -26,7 +26,7 @@ async function getPackageJson(props) {
26
26
  "esno",
27
27
  "vite",
28
28
  "vike",
29
- ...props.meta.BATI_MODULES?.includes("authjs") ? ["@auth/core", "vike-authjs"] : []
29
+ ...props.meta.BATI.has("authjs") ? ["@auth/core", "vike-authjs"] : []
30
30
  ]
31
31
  });
32
32
  }
@@ -33,7 +33,7 @@ async function startServer() {
33
33
  app.use(viteDevMiddleware);
34
34
  }
35
35
 
36
- if (import.meta.BATI_MODULES?.includes("authjs")) {
36
+ if (BATI.has("authjs")) {
37
37
  /**
38
38
  * AuthJS
39
39
  *
@@ -72,7 +72,7 @@ async function startServer() {
72
72
  );
73
73
  }
74
74
 
75
- if (import.meta.BATI_MODULES?.includes("telefunc")) {
75
+ if (BATI.has("telefunc")) {
76
76
  /**
77
77
  * Telefunc route
78
78
  *
@@ -27,7 +27,7 @@ async function getPackageJson(props) {
27
27
  "esno",
28
28
  "vike",
29
29
  "vite",
30
- ...props.meta.BATI_MODULES?.includes("authjs") ? ["@auth/core", "vike-authjs"] : []
30
+ ...props.meta.BATI.has("authjs") ? ["@auth/core", "vike-authjs"] : []
31
31
  ]
32
32
  });
33
33
  }
@@ -52,7 +52,7 @@ async function startServer() {
52
52
 
53
53
  const router = createRouter();
54
54
 
55
- if (import.meta.BATI_MODULES?.includes("authjs")) {
55
+ if (BATI.has("authjs")) {
56
56
  /**
57
57
  * AuthJS
58
58
  *
@@ -93,7 +93,7 @@ async function startServer() {
93
93
  );
94
94
  }
95
95
 
96
- if (import.meta.BATI_MODULES?.includes("telefunc")) {
96
+ if (BATI.has("telefunc")) {
97
97
  /**
98
98
  * Telefunc route
99
99
  *
@@ -24,7 +24,7 @@ async function getPackageJson(props) {
24
24
  "hattip",
25
25
  "vite",
26
26
  "vike",
27
- ...props.meta.BATI_MODULES?.includes("authjs") ? ["@auth/core", "vike-authjs"] : []
27
+ ...props.meta.BATI.has("authjs") ? ["@auth/core", "vike-authjs"] : []
28
28
  ]
29
29
  });
30
30
  }
@@ -6,7 +6,7 @@ import { renderPage } from "vike/server";
6
6
 
7
7
  const router = createRouter();
8
8
 
9
- if (import.meta.BATI_MODULES?.includes("telefunc")) {
9
+ if (BATI.has("telefunc")) {
10
10
  /**
11
11
  * Telefunc route
12
12
  *
@@ -29,7 +29,7 @@ if (import.meta.BATI_MODULES?.includes("telefunc")) {
29
29
  });
30
30
  }
31
31
 
32
- if (import.meta.BATI_MODULES?.includes("authjs")) {
32
+ if (BATI.has("authjs")) {
33
33
  /**
34
34
  * AuthJS
35
35
  *
@@ -1,7 +1,7 @@
1
1
  // files/$.eslintrc.json.ts
2
2
  import { loadAsJson } from "@batijs/core";
3
3
  async function getEslintConfig(props) {
4
- if (!props.meta.BATI_MODULES?.includes("eslint"))
4
+ if (!props.meta.BATI.has("eslint"))
5
5
  return;
6
6
  const eslintConfig = await loadAsJson(props);
7
7
  eslintConfig.extends = eslintConfig.extends.filter(
@@ -2,7 +2,7 @@
2
2
  import { addDependency, loadAsJson } from "@batijs/core";
3
3
  async function getPackageJson(props) {
4
4
  const packageJson = await loadAsJson(props);
5
- if (props.meta.BATI_MODULES?.includes("eslint")) {
5
+ if (props.meta.BATI.has("eslint")) {
6
6
  addDependency(packageJson, await import("../package-UB7NRNF7.js"), {
7
7
  devDependencies: ["eslint-config-react-app"]
8
8
  });
@@ -2,7 +2,7 @@
2
2
  import { addVitePlugin, loadAsMagicast } from "@batijs/core";
3
3
  async function getViteConfig(props) {
4
4
  const mod = await loadAsMagicast(props);
5
- const options = props.meta.BATI_MODULES?.includes("vercel") ? {
5
+ const options = props.meta.BATI.has("vercel") ? {
6
6
  prerender: true
7
7
  } : {};
8
8
  addVitePlugin(mod, {
@@ -3,7 +3,7 @@ import React from "react";
3
3
  // Default <head> (can be overridden by pages)
4
4
 
5
5
  export default function HeadDefault() {
6
- if (import.meta.BATI_MODULES?.includes("plausible.io")) {
6
+ if (BATI.has("plausible.io")) {
7
7
  return (
8
8
  <>
9
9
  <meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
2
+ //# BATI.has("tailwindcss")
3
3
  import "./tailwind.css";
4
4
  import React from "react";
5
5
  import logoUrl from "../assets/logo.svg";
@@ -8,9 +8,9 @@ import { Link } from "../components/Link";
8
8
  export default function LayoutDefault({ children }: { children: React.ReactNode }) {
9
9
  return (
10
10
  <div
11
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
11
+ //# BATI.has("tailwindcss")
12
12
  className="flex max-w-5xl m-auto"
13
- //# !import.meta.BATI_MODULES?.includes("tailwindcss")
13
+ //# !BATI.has("tailwindcss")
14
14
  style={{
15
15
  display: "flex",
16
16
  maxWidth: 900,
@@ -20,7 +20,7 @@ export default function LayoutDefault({ children }: { children: React.ReactNode
20
20
  <Sidebar>
21
21
  <Logo />
22
22
  <Link href="/">Welcome</Link>
23
- {import.meta.BATI_MODULES?.includes("telefunc") ? <Link href="/todo">Todo</Link> : undefined}
23
+ {BATI.has("telefunc") ? <Link href="/todo">Todo</Link> : undefined}
24
24
  <Link href="/star-wars">Data Fetching</Link>
25
25
  </Sidebar>
26
26
  <Content>{children}</Content>
@@ -32,9 +32,9 @@ function Sidebar({ children }: { children: React.ReactNode }) {
32
32
  return (
33
33
  <div
34
34
  id="sidebar"
35
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
35
+ //# BATI.has("tailwindcss")
36
36
  className="p-5 flex flex-col shrink-0 border-r-2 border-r-gray-200"
37
- //# !import.meta.BATI_MODULES?.includes("tailwindcss")
37
+ //# !BATI.has("tailwindcss")
38
38
  style={{
39
39
  padding: 20,
40
40
  flexShrink: 0,
@@ -54,9 +54,9 @@ function Content({ children }: { children: React.ReactNode }) {
54
54
  <div id="page-container">
55
55
  <div
56
56
  id="page-content"
57
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
57
+ //# BATI.has("tailwindcss")
58
58
  className="p-5 pb-12 min-h-screen"
59
- //# !import.meta.BATI_MODULES?.includes("tailwindcss")
59
+ //# !BATI.has("tailwindcss")
60
60
  style={{
61
61
  padding: 20,
62
62
  paddingBottom: 50,
@@ -72,9 +72,9 @@ function Content({ children }: { children: React.ReactNode }) {
72
72
  function Logo() {
73
73
  return (
74
74
  <div
75
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
75
+ //# BATI.has("tailwindcss")
76
76
  className="p-5 mb-2"
77
- //# !import.meta.BATI_MODULES?.includes("tailwindcss")
77
+ //# !BATI.has("tailwindcss")
78
78
  style={{
79
79
  marginTop: 20,
80
80
  marginBottom: 10,
@@ -5,7 +5,7 @@ export default function Page() {
5
5
  return (
6
6
  <>
7
7
  <h1
8
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
8
+ //# BATI.has("tailwindcss")
9
9
  className="font-bold text-3xl pb-4"
10
10
  >
11
11
  My Vike app
@@ -6,7 +6,7 @@ export function Counter() {
6
6
  return (
7
7
  <button
8
8
  type="button"
9
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
9
+ //# BATI.has("tailwindcss")
10
10
  className="inline-block border border-black rounded bg-gray-200 px-2 py-1 text-xs font-medium uppercase leading-normal"
11
11
  onClick={() => setCount((count) => count + 1)}
12
12
  >
@@ -187,7 +187,7 @@ var flags = features.map((f) => f.flag);
187
187
  // files/$index.html.ts
188
188
  var frameworkFeatures = features.filter((f) => f.category === "Framework").map((f) => f.flag);
189
189
  function createDefaultIndexHtml(props) {
190
- if (props.meta.BATI_MODULES?.some((m) => frameworkFeatures.includes(m)))
190
+ if (Array.from(props.meta.BATI).some((m) => frameworkFeatures.includes(m)))
191
191
  return null;
192
192
  return `<html>
193
193
  <head>
@@ -1,7 +1,7 @@
1
1
  // files/$.eslintrc.json.ts
2
2
  import { loadAsJson } from "@batijs/core";
3
3
  async function getEslintConfig(props) {
4
- if (!props.meta.BATI_MODULES?.includes("eslint"))
4
+ if (!props.meta.BATI.has("eslint"))
5
5
  return;
6
6
  const eslintConfig = await loadAsJson(props);
7
7
  eslintConfig.extends.push("plugin:solid/typescript");
@@ -2,7 +2,7 @@
2
2
  import { addDependency, loadAsJson } from "@batijs/core";
3
3
  async function getPackageJson(props) {
4
4
  const packageJson = await loadAsJson(props);
5
- if (props.meta.BATI_MODULES?.includes("eslint")) {
5
+ if (props.meta.BATI.has("eslint")) {
6
6
  addDependency(packageJson, await import("../package-AH7QMR5B.js"), {
7
7
  devDependencies: ["eslint-plugin-solid"]
8
8
  });
@@ -3,7 +3,7 @@ import { addVitePlugin, loadAsMagicast } from "@batijs/core";
3
3
  async function getViteConfig(props) {
4
4
  const mod = await loadAsMagicast(props);
5
5
  let options = void 0;
6
- if (props.meta.BATI_MODULES?.some((m) => m === "vercel")) {
6
+ if (props.meta.BATI.has("vercel")) {
7
7
  options = {
8
8
  vps: {
9
9
  prerender: true
@@ -3,7 +3,7 @@
3
3
  import logoUrl from "../assets/logo.svg";
4
4
 
5
5
  export default function HeadDefault() {
6
- if (import.meta.BATI_MODULES?.includes("plausible.io")) {
6
+ if (BATI.has("plausible.io")) {
7
7
  return (
8
8
  <>
9
9
  <link rel="icon" href={logoUrl} />
@@ -1,5 +1,5 @@
1
1
  import "./style.css";
2
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
2
+ //# BATI.has("tailwindcss")
3
3
  import "./tailwind.css";
4
4
  import type { JSX } from "solid-js";
5
5
  import logoUrl from "../assets/logo.svg";
@@ -8,9 +8,9 @@ import { Link } from "../components/Link";
8
8
  export default function LayoutDefault(props: { children?: JSX.Element }) {
9
9
  return (
10
10
  <div
11
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
11
+ //# BATI.has("tailwindcss")
12
12
  class="flex max-w-5xl m-auto"
13
- //# !import.meta.BATI_MODULES?.includes("tailwindcss")
13
+ //# !BATI.has("tailwindcss")
14
14
  style={{
15
15
  display: "flex",
16
16
  "max-width": "900px",
@@ -20,7 +20,7 @@ export default function LayoutDefault(props: { children?: JSX.Element }) {
20
20
  <Sidebar>
21
21
  <Logo />
22
22
  <Link href="/">Welcome</Link>
23
- {import.meta.BATI_MODULES?.includes("telefunc") ? <Link href="/todo">Todo</Link> : undefined}
23
+ {BATI.has("telefunc") ? <Link href="/todo">Todo</Link> : undefined}
24
24
  <Link href="/star-wars">Data Fetching</Link>
25
25
  </Sidebar>
26
26
  <Content>{props.children}</Content>
@@ -32,9 +32,9 @@ function Sidebar(props: { children: JSX.Element }) {
32
32
  return (
33
33
  <div
34
34
  id="sidebar"
35
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
35
+ //# BATI.has("tailwindcss")
36
36
  class="p-5 flex flex-col shrink-0 border-r-2 border-r-gray-200"
37
- //# !import.meta.BATI_MODULES?.includes("tailwindcss")
37
+ //# !BATI.has("tailwindcss")
38
38
  style={{
39
39
  padding: "20px",
40
40
  "flex-shrink": 0,
@@ -54,9 +54,9 @@ function Content(props: { children: JSX.Element }) {
54
54
  <div id="page-container">
55
55
  <div
56
56
  id="page-content"
57
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
57
+ //# BATI.has("tailwindcss")
58
58
  class="p-5 pb-12 min-h-screen"
59
- //# !import.meta.BATI_MODULES?.includes("tailwindcss")
59
+ //# !BATI.has("tailwindcss")
60
60
  style={{
61
61
  padding: "20px",
62
62
  "padding-bottom": "50px",
@@ -72,9 +72,9 @@ function Content(props: { children: JSX.Element }) {
72
72
  function Logo() {
73
73
  return (
74
74
  <div
75
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
75
+ //# BATI.has("tailwindcss")
76
76
  class="p-5 mb-2"
77
- //# !import.meta.BATI_MODULES?.includes("tailwindcss")
77
+ //# !BATI.has("tailwindcss")
78
78
  style={{
79
79
  "margin-top": "20px",
80
80
  "margin-bottom": "10px",
@@ -4,7 +4,7 @@ export default function Page() {
4
4
  return (
5
5
  <>
6
6
  <h1
7
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
7
+ //# BATI.has("tailwindcss")
8
8
  class="font-bold text-3xl pb-4"
9
9
  >
10
10
  My Vike app
@@ -8,7 +8,7 @@ function Counter() {
8
8
  return (
9
9
  <button
10
10
  type="button"
11
- //# import.meta.BATI_MODULES?.includes("tailwindcss")
11
+ //# BATI.has("tailwindcss")
12
12
  class="inline-block border border-black rounded bg-gray-200 px-2 py-1 text-xs font-medium uppercase leading-normal"
13
13
  onClick={() => setCount((count) => count + 1)}
14
14
  >
@@ -2,7 +2,7 @@
2
2
  import { addDependency, loadAsJson } from "@batijs/core";
3
3
  async function getPackageJson(props) {
4
4
  const packageJson = await loadAsJson(props);
5
- return addDependency(packageJson, await import("../package-Z3CBCFWC.js"), {
5
+ return addDependency(packageJson, await import("../package-C6UCXEGF.js"), {
6
6
  dependencies: ["vite-plugin-vercel", "@vite-plugin-vercel/vike"]
7
7
  });
8
8
  }
@@ -14,7 +14,7 @@ var license = "MIT";
14
14
  var devDependencies = {
15
15
  "@batijs/tsup": "workspace:*",
16
16
  "@types/node": "^16.18.40",
17
- "@vite-plugin-vercel/vike": "^0.4.2",
17
+ "@vite-plugin-vercel/vike": "^2.0.0",
18
18
  "vite-plugin-vercel": "^0.3.7",
19
19
  tsup: "^7.2.0",
20
20
  vite: "^4.4.11",
@@ -1,7 +1,7 @@
1
1
  // files/$.eslintrc.json.ts
2
2
  import { loadAsJson } from "@batijs/core";
3
3
  async function getEslintConfig(props) {
4
- if (!props.meta.BATI_MODULES?.includes("eslint"))
4
+ if (!props.meta.BATI.has("eslint"))
5
5
  return;
6
6
  const eslintConfig = await loadAsJson(props);
7
7
  eslintConfig.extends.push("plugin:vue/vue3-recommended");
@@ -2,7 +2,7 @@
2
2
  import { addDependency, loadAsJson, setScripts } from "@batijs/core";
3
3
  async function getPackageJson(props) {
4
4
  const packageJson = await loadAsJson(props);
5
- if (props.meta.BATI_MODULES?.includes("eslint")) {
5
+ if (props.meta.BATI.has("eslint")) {
6
6
  setScripts(packageJson, {
7
7
  lint: {
8
8
  value: "eslint --ext .js,.jsx,.ts,.tsx,.vue .",
@@ -1,13 +1,13 @@
1
1
  <template>
2
2
  <div id="page-container">
3
- <!-- import.meta.BATI_MODULES?.includes("tailwindcss") -->
3
+ <!-- BATI.has("tailwindcss") -->
4
4
  <div
5
5
  id="page-content"
6
6
  class="p-5 pb-12 min-h-screen"
7
7
  >
8
8
  <slot />
9
9
  </div>
10
- <!-- !import.meta.BATI_MODULES?.includes("tailwindcss") -->
10
+ <!-- !BATI.has("tailwindcss") -->
11
11
  <div
12
12
  id="page-content"
13
13
  style="
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <!-- import.meta.BATI_MODULES?.includes("tailwindcss") -->
2
+ <!-- BATI.has("tailwindcss") -->
3
3
  <button
4
4
  type="button"
5
5
  class="inline-block border border-black rounded bg-gray-200 px-2 py-1 text-xs font-medium uppercase leading-normal"
@@ -7,7 +7,7 @@
7
7
  >
8
8
  Counter {{ state.count }}
9
9
  </button>
10
- <!-- !import.meta.BATI_MODULES?.includes("tailwindcss") -->
10
+ <!-- !BATI.has("tailwindcss") -->
11
11
  <button
12
12
  type="button"
13
13
  @click="state.count++"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <!-- import.meta.BATI_MODULES?.includes("tailwindcss") -->
2
+ <!-- BATI.has("tailwindcss") -->
3
3
  <div
4
4
  class="p-5 mb-2"
5
5
  >
@@ -11,7 +11,7 @@
11
11
  >
12
12
  </a>
13
13
  </div>
14
- <!-- !import.meta.BATI_MODULES?.includes("tailwindcss") -->
14
+ <!-- !BATI.has("tailwindcss") -->
15
15
  <div
16
16
  style="
17
17
  margin-top: 20px;
@@ -1,12 +1,12 @@
1
1
  <template>
2
- <!-- import.meta.BATI_MODULES?.includes("tailwindcss") -->
2
+ <!-- BATI.has("tailwindcss") -->
3
3
  <div
4
4
  id="sidebar"
5
5
  class="p-5 flex flex-col shrink-0 border-r-2 border-r-gray-200"
6
6
  >
7
7
  <slot />
8
8
  </div>
9
- <!-- !import.meta.BATI_MODULES?.includes("tailwindcss") -->
9
+ <!-- !BATI.has("tailwindcss") -->
10
10
  <div
11
11
  id="sidebar"
12
12
  style="
@@ -6,7 +6,7 @@
6
6
  content="width=device-width, initial-scale=1"
7
7
  >
8
8
 
9
- <!-- import.meta.BATI_MODULES?.includes("plausible.io") -->
9
+ <!-- BATI.has("plausible.io") -->
10
10
  <!-- See https://plausible.io/docs/plausible-script -->
11
11
  <!-- TODO: update data-domain -->
12
12
  <component :is="'script'" defer
@@ -5,7 +5,7 @@
5
5
  <Link href="/">
6
6
  Welcome
7
7
  </Link>
8
- <!-- import.meta.BATI_MODULES?.includes("telefunc") -->
8
+ <!-- BATI.has("telefunc") -->
9
9
  <Link href="/todo">
10
10
  Todo
11
11
  </Link>
@@ -25,7 +25,7 @@ import Content from "../components/Content.vue";
25
25
  </script>
26
26
 
27
27
  <style>
28
- /*{ @if (it.import.meta.BATI_MODULES?.includes("tailwindcss")) }*/
28
+ /*{ @if (it.BATI.has("tailwindcss")) }*/
29
29
  /* see https://stackoverflow.com/questions/55206901/how-to-import-css-files-in-vue-3-child-components */
30
30
  @import "./tailwind.css";
31
31
  /*{ /if }*/
@@ -1,9 +1,9 @@
1
1
  <template>
2
- <!-- import.meta.BATI_MODULES?.includes("tailwindcss") -->
2
+ <!-- BATI.has("tailwindcss") -->
3
3
  <h1 class="font-bold text-3xl pb-4">
4
4
  My Vike app
5
5
  </h1>
6
- <!-- !import.meta.BATI_MODULES?.includes("tailwindcss") -->
6
+ <!-- !BATI.has("tailwindcss") -->
7
7
  <h1>
8
8
  My Vike app
9
9
  </h1>
package/dist/index.js CHANGED
@@ -573,7 +573,7 @@ Please report this issue to https://github.com/magne4000/bati`
573
573
  // package.json
574
574
  var package_default = {
575
575
  name: "@batijs/cli",
576
- version: "0.0.95",
576
+ version: "0.0.97",
577
577
  type: "module",
578
578
  scripts: {
579
579
  "check-types": "tsc --noEmit",
@@ -1736,7 +1736,7 @@ async function run() {
1736
1736
  }
1737
1737
  const hooksMap = await retrieveHooks(hooks);
1738
1738
  const meta = {
1739
- BATI_MODULES: flags
1739
+ BATI: new Set(flags)
1740
1740
  };
1741
1741
  await main(
1742
1742
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.95",
3
+ "version": "0.0.97",
4
4
  "type": "module",
5
5
  "keywords": [],
6
6
  "description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
@@ -19,12 +19,12 @@
19
19
  "tsup": "^7.2.0",
20
20
  "typescript": "^5.2.2",
21
21
  "vite": "^4.4.11",
22
- "@batijs/build": "0.0.95",
23
- "@batijs/tsup": "0.0.95"
22
+ "@batijs/build": "0.0.97",
23
+ "@batijs/tsup": "0.0.97"
24
24
  },
25
25
  "dependencies": {
26
- "@batijs/core": "0.0.95",
27
- "@batijs/features": "0.0.95"
26
+ "@batijs/core": "0.0.97",
27
+ "@batijs/features": "0.0.97"
28
28
  },
29
29
  "bin": "./dist/index.js",
30
30
  "exports": {