@majordigital/create-acorn 1.0.5 → 1.0.6

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.
@@ -4,7 +4,7 @@ import readline from 'node:readline';
4
4
  import { argv, exit } from 'node:process';
5
5
  import { spawn } from 'node:child_process';
6
6
  import { basename, join, dirname } from 'node:path';
7
- import { readFileSync, writeFileSync, cpSync } from 'node:fs';
7
+ import { readFileSync, writeFileSync, cpSync, rmSync } from 'node:fs';
8
8
  import { fileURLToPath } from 'node:url';
9
9
 
10
10
  const CMS_CHOICES = [
@@ -97,6 +97,9 @@ async function scaffoldNextApp() {
97
97
  console.log('Next.js project scaffolded successfully.');
98
98
  console.log('');
99
99
 
100
+ // Remove postcss config generated by create-next-app (not needed with Tailwind v4)
101
+ try { rmSync(join(process.cwd(), 'postcss.config.mjs')); } catch {}
102
+
100
103
  // Copy Acorn template files (src/, public/, config files) over the Next.js scaffold
101
104
  console.log('Copying Acorn boilerplate...');
102
105
  const __dirname = dirname(fileURLToPath(import.meta.url));
@@ -107,13 +110,13 @@ async function scaffoldNextApp() {
107
110
 
108
111
  // Install Acorn dependencies
109
112
  console.log('Installing Acorn dependencies...');
110
- await runCommand('npm', ['install',
113
+ await runCommand('npm', ['install', '--legacy-peer-deps',
111
114
  '@headlessui/react', '@headlessui/tailwindcss', '@heroicons/react',
112
115
  '@hookform/error-message', '@hookform/resolvers',
113
116
  '@next/bundle-analyzer', 'clsx', 'next-seo',
114
117
  'react-accessible-accordion', 'react-hook-form', 'zod'
115
118
  ]);
116
- await runCommand('npm', ['install', '--save-dev',
119
+ await runCommand('npm', ['install', '--save-dev', '--legacy-peer-deps',
117
120
  '@svgr/webpack', '@types/lodash.get'
118
121
  ]);
119
122
  console.log('Acorn dependencies installed.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@majordigital/create-acorn",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Interactive scaffold for Acorn with Storyblok/Prismic/DatoCMS, TypeScript, and Tailwind.",
5
5
  "bin": {
6
6
  "create-acorn": "bin/create-acorn.mjs",
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };