Skip to content

Commit

Permalink
Bugfix: Pin tailwind versions to prevent newer (major) versions of ta…
Browse files Browse the repository at this point in the history
…ilwind. (#3171)
Hugos68 authored Jan 25, 2025
1 parent bdff65f commit 03528ed
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-ears-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-skeleton-app": patch
---

Bugfix: Pin tailwind versions to prevent newer (major) versions of tailwind being installed.
6 changes: 3 additions & 3 deletions packages/create-skeleton-app/src/creator.js
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ export class SkeletonOptions {
this.devDependencies = new Map([
['postcss', 'latest'],
['autoprefixer', 'latest'],
['tailwindcss', 'latest'],
['tailwindcss', '^3.4.17'],
['@skeletonlabs/skeleton', 'latest'],
['@skeletonlabs/tw-plugin', 'latest'],
['vite-plugin-tailwind-purgecss', 'latest'],
@@ -143,8 +143,8 @@ async function modifyPackageJson(opts) {

// Optional packages
if (opts.mdsvex) pkgJson.devDependencies['mdsvex'] = 'latest';
if (opts.typography) pkgJson.devDependencies['@tailwindcss/typography'] = 'latest';
if (opts.forms) pkgJson.devDependencies['@tailwindcss/forms'] = 'latest';
if (opts.typography) pkgJson.devDependencies['@tailwindcss/typography'] = '^0.5.16';
if (opts.forms) pkgJson.devDependencies['@tailwindcss/forms'] = '^0.5.10';
if (opts.types == 'typescript') pkgJson.devDependencies['@types/node'] = 'latest';
if (opts.codeblocks) setNestedValue(pkgJson, ['dependencies', 'highlight.js'], 'latest');
if (opts.popups) setNestedValue(pkgJson, ['dependencies', '@floating-ui/dom'], 'latest');

0 comments on commit 03528ed

Please sign in to comment.