Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 3 additions & 31 deletions htdocs/themes/xtailwind/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions htdocs/themes/xtailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"@tailwindcss/typography": "^0.5.20",
"daisyui": "^4.12.0",
"tailwindcss": "^3.4.0"
},
"overrides": {
"postcss-selector-parser": "^7.1.6"
}
}
38 changes: 5 additions & 33 deletions htdocs/themes/xtailwind2/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions htdocs/themes/xtailwind2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"@tailwindcss/typography": "^0.5.20",
"daisyui": "^4.12.0",
"tailwindcss": "^3.4.0"
},
"overrides": {
"postcss-selector-parser": "^7.1.6"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Regenerated theme loses security override

When the xtailwind2 generator is rerun, tools/write_xtailwind2.ps1 overwrites package.json without the override, so the next npm install can restore the vulnerable parser and the Dependabot alert returns.

Add the override to the generator's manifest template and update the tutorial's install instructions to preserve it.

Prompt for AI agents
In `htdocs/themes/xtailwind2/package.json` at line 16:

**Regenerated theme loses security override**

When the xtailwind2 generator is rerun, `tools/write_xtailwind2.ps1` overwrites `package.json` without the override, so the next `npm install` can restore the vulnerable parser and the Dependabot alert returns.

Add the override to the generator's manifest template and update the tutorial's install instructions to preserve it.

}
}
5 changes: 4 additions & 1 deletion tools/write_xtailwind2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ $base = 'C:\wamp64\www\2512menus\themes\xtailwind2'
"watch": "tailwindcss -i ./css/input.css -o ./css/styles.css --watch"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.10",
"@tailwindcss/typography": "^0.5.20",
"daisyui": "^4.12.0",
"tailwindcss": "^3.4.0"
},
"overrides": {
"postcss-selector-parser": "^7.1.6"
}
}
'@ | Set-Content -Path (Join-Path $base 'package.json') -Encoding UTF8
Expand Down