Skip to content

Commit 91065a5

Browse files
committed
1 parent f0776b9 commit 91065a5

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ PATH
1414
PATH
1515
remote: vite_ruby
1616
specs:
17-
vite_ruby (3.6.1)
17+
vite_ruby (3.6.2)
1818
dry-cli (>= 0.7, < 2)
1919
rack-proxy (~> 0.6, >= 0.6.1)
2020
zeitwerk (~> 2.2)

test/file_utils_test.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ def teardown
2222
FileUtils.remove_entry_secure(root)
2323
end
2424

25+
def test_fresh_installation
26+
app_root = root.join('test_fresh_install').tap(&:mkpath)
27+
Dir.chdir(app_root) {
28+
`bundle exec vite install`
29+
}
30+
assert_path_exists app_root.join('vite.config.ts')
31+
assert_path_exists app_root.join('package.json')
32+
assert 'module', JSON.parse(app_root.join('package.json').read)['type']
33+
end
34+
2535
def test_write
2636
path = root.join('write')
2737
write(path, "Hello\nWorld")

vite_ruby/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [3.6.2](https://github.com/ElMassimo/vite_ruby/compare/[email protected][email protected]) (2024-07-16)
2+
3+
4+
15
## [3.6.1](https://github.com/ElMassimo/vite_ruby/compare/[email protected][email protected]) (2024-07-16)
26

37

vite_ruby/lib/vite_ruby/cli/install.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def create_configuration_files
8181
def install_js_dependencies
8282
package_json = root.join('package.json')
8383
unless package_json.exist?
84-
write(package.json, <<~JSON)
84+
write package_json, <<~JSON
8585
{
8686
"private": true,
8787
"type": "module"

vite_ruby/lib/vite_ruby/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
class ViteRuby
4-
VERSION = '3.6.1'
4+
VERSION = '3.6.2'
55

66
# Internal: Versions used by default when running `vite install`.
77
DEFAULT_VITE_VERSION = '^5.0.0'

0 commit comments

Comments
 (0)