@lastbrain/app 0.1.13 → 0.1.15

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.
@@ -240,8 +240,8 @@ async function addDependencies(targetDir, useHeroUI, withAuth, selectedModules =
240
240
  }
241
241
  // DevDependencies
242
242
  const requiredDevDeps = {
243
- "@tailwindcss/postcss": "^4.0.0",
244
- tailwindcss: "^4.0.0",
243
+ tailwindcss: "^3.4.0",
244
+ postcss: "^8.4.0",
245
245
  autoprefixer: "^10.4.20",
246
246
  typescript: "^5.4.0",
247
247
  "@types/node": "^20.0.0",
@@ -349,7 +349,9 @@ export default function RootLayout({ children }: PropsWithChildren<{}>) {
349
349
  // Créer globals.css
350
350
  const globalsPath = path.join(stylesDir, "globals.css");
351
351
  if (!fs.existsSync(globalsPath) || force) {
352
- const globalsContent = `@import "tailwindcss";
352
+ const globalsContent = `@tailwind base;
353
+ @tailwind components;
354
+ @tailwind utilities;
353
355
  `;
354
356
  await fs.writeFile(globalsPath, globalsContent);
355
357
  console.log(chalk.green("✓ styles/globals.css créé"));
@@ -625,14 +627,8 @@ const config = {
625
627
  content: [
626
628
  "./app/**/*.{js,ts,jsx,tsx,mdx}",
627
629
  "./components/**/*.{js,ts,jsx,tsx,mdx}",
628
- {
629
- raw: "",
630
- files: [
631
- "./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
632
- "./node_modules/@heroui/*/src/**/*.{js,jsx,ts,tsx}"
633
- ],
634
- relative: true
635
- }
630
+ "./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
631
+ "./node_modules/@heroui/*/src/**/*.{js,jsx,ts,tsx}"
636
632
  ],
637
633
  theme: {
638
634
  extend: {},
@@ -651,13 +647,7 @@ const config = {
651
647
  content: [
652
648
  "./app/**/*.{js,ts,jsx,tsx,mdx}",
653
649
  "./components/**/*.{js,ts,jsx,tsx,mdx}",
654
- {
655
- raw: "",
656
- files: [
657
- "./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
658
- ],
659
- relative: true
660
- }
650
+ "./node_modules/@lastbrain/*/src/**/*.{js,jsx,ts,tsx}",
661
651
  ],
662
652
  theme: {
663
653
  extend: {
@@ -692,7 +682,8 @@ export default config;
692
682
  if (!fs.existsSync(postcssConfigPath) || force) {
693
683
  const postcssConfig = `export default {
694
684
  plugins: {
695
- '@tailwindcss/postcss': {},
685
+ tailwindcss: {},
686
+ autoprefixer: {},
696
687
  },
697
688
  };
698
689
  `;