Skip to content

Commit

Permalink
Set package.json type to "module" to support Vite v5 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbrictson authored Nov 16, 2023
1 parent 39422cb commit 1039cfc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nextgen/generators/vite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

say_git "Install autoprefixer"
add_yarn_packages "postcss@^8.4.24", "autoprefixer@^10.4.14"
copy_file "postcss.config.js"
copy_file "postcss.config.cjs"

say_git "Disable autoBuild in test environment"
gsub_file "config/vite.json", /("test": \{.+?"autoBuild":\s*)true/m, '\1false'
Expand Down
1 change: 1 addition & 0 deletions template/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"private": true,
"type": "module",
"engines": {
"node": ">=18.12.0"
}
Expand Down
File renamed without changes.

0 comments on commit 1039cfc

Please sign in to comment.