vite_ruby 3.6.0 → 3.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 184968fc31cdfdcafe5fea4b2ba393155ae968df6a7ffb11fd9ff7c6b30da671
4
- data.tar.gz: 1cdbbef05db2234af7496421fad1569d3c3a81d86dd5b88ca8fa27fe19159aaa
3
+ metadata.gz: 1e1e2c37395b2cfb186b2c79267e25e5c4b129e2aea33ae65149bb7f87d35e64
4
+ data.tar.gz: 94b174a0c5bda1db5bdccadfad545a5430c94c6515cd14c77489322dca40ac9d
5
5
  SHA512:
6
- metadata.gz: 54c6f374fb5254bad6eccadfc21928f7bceb7871fdc9077261f52837203d1c85855519c824f24d9bbbff243bd2f02bd8ec300fd3323451ea09902b7cd12bf63a
7
- data.tar.gz: 31c1ab4e450b3ce0619ebffeda6565868fea3f2b197ffec35a5abddc3101940d6fc856967f568fd2196628a3e2171cfd21313ee4ecbe23ca732f79696da055bc
6
+ metadata.gz: 338e68fd7be884ed89e390ad65a3718834ae5ed89e9b0953897225b878808e9286355558b1de0e7d307ab6cdef0ceabf129fe3ecbde706f65f36f6729c715150
7
+ data.tar.gz: ef26d5734f92a257f3eea83b69f3c8a1f8ad76071854334a0f08207d7b9306c8c616a591b52995d978e21e0d1586d81def989038befaeac075445d844a555f33
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## [3.6.2](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.6.1...vite_ruby@3.6.2) (2024-07-16)
2
+
3
+
4
+
5
+ ## [3.6.1](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.6.0...vite_ruby@3.6.1) (2024-07-16)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * use ESM by default in new installations ([#479](https://github.com/ElMassimo/vite_ruby/issues/479)) ([cc379ca](https://github.com/ElMassimo/vite_ruby/commit/cc379ca613dd4e5863f8556be62ea623b56cfe0c)), closes [#431](https://github.com/ElMassimo/vite_ruby/issues/431)
11
+
12
+
13
+
1
14
  # [3.6.0](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.5.0...vite_ruby@3.6.0) (2024-06-07)
2
15
 
3
16
 
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'stringio'
4
+ require 'json'
4
5
 
5
6
  class ViteRuby::CLI::Install < Dry::CLI::Command
6
7
  desc 'Performs the initial configuration setup to get started with Vite Ruby.'
@@ -79,7 +80,19 @@ private
79
80
  # Internal: Installs vite and vite-plugin-ruby at the project level.
80
81
  def install_js_dependencies
81
82
  package_json = root.join('package.json')
82
- write(package_json, '{}') unless package_json.exist?
83
+ unless package_json.exist?
84
+ write package_json, <<~JSON
85
+ {
86
+ "private": true,
87
+ "type": "module"
88
+ }
89
+ JSON
90
+ end
91
+
92
+ if (JSON.parse(package_json.read)['type'] != 'module' rescue nil)
93
+ FileUtils.mv root.join('vite.config.ts'), root.join('vite.config.mts'), force: true, verbose: true
94
+ end
95
+
83
96
  deps = js_dependencies.join(' ')
84
97
  run_with_capture("#{ npm_install } -D #{ deps }", stdin_data: "\n")
85
98
  end
@@ -197,6 +197,7 @@ private
197
197
  vite.config.js
198
198
  vite.config.mjs
199
199
  vite.config.ts
200
+ vite.config.mts
200
201
  windi.config.ts
201
202
  yarn.lock
202
203
  ].freeze
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ViteRuby
4
- VERSION = '3.6.0'
4
+ VERSION = '3.6.2'
5
5
 
6
6
  # Internal: Versions used by default when running `vite install`.
7
7
  DEFAULT_VITE_VERSION = '^5.0.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vite_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-07 00:00:00.000000000 Z
11
+ date: 2024-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli
@@ -208,8 +208,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
208
208
  licenses:
209
209
  - MIT
210
210
  metadata:
211
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.6.0/vite_ruby
212
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.6.0/vite_ruby/CHANGELOG.md
211
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.6.2/vite_ruby
212
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.6.2/vite_ruby/CHANGELOG.md
213
213
  post_install_message: "Thanks for installing Vite Ruby!\n\nIf you upgraded the gem
214
214
  manually, please run:\n\tbundle exec vite upgrade"
215
215
  rdoc_options: []