vite_ruby 3.2.6 → 3.2.8

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: 61362606d0cc4c30a9194954b8d017a8fd7f929be21d99f4030a39fe32b01c8b
4
- data.tar.gz: 4b30fcb2f8683dd3ae69aa6b9324ee0b5a947c2b82bda4003bfe5bc330c22d4e
3
+ metadata.gz: a60bbaf0cc05f9069adf63ab3b37c5a5be8128b33a9c78af1d879e3da8a6efad
4
+ data.tar.gz: 8b9c020b238f9dbef92d0502e5bd52efbf94b296c5dbf8344697def581098670
5
5
  SHA512:
6
- metadata.gz: 8a8f10aed93a2b6b8272f00404f6689f5252a459ae8a6c23151b2b577e20781d19051914d2a77125d820264683aa5f695bfbc86d11e29a750a7f740aa4fae7f8
7
- data.tar.gz: afb33c544dc8e9a52e5c0cec38bd49be6c22ca64f2e60fcc4af4074291e30c5e789e75f26336b878a61e868c765fb3363b932d85e1ed514da67ec846680a1a68
6
+ metadata.gz: 86ebf0abc853c732c84cd78c3c667ded2271ed2833751609f71b78c3a2c35a8d443aff7368174005cd10306b8fc31358c56a039daf875657efb7d5b66b13b8b4
7
+ data.tar.gz: 2ba6da60334959ee8ce5a9a98410a436c6140a06f9d23f4adcf6805ca92e98fd7d090391dc82fad8c4608f9037072229cafcc4b556dddd489a3a8cffbc1abfcf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ ## [3.2.8](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.7...vite_ruby@3.2.8) (2022-10-28)
2
+
3
+
4
+ ### Features
5
+
6
+ * default to vite@3.2.0 ([2ef83a5](https://github.com/ElMassimo/vite_ruby/commit/2ef83a52148f46534c4106015f3f54ec9ee807cb))
7
+
8
+
9
+
10
+ ## [3.2.7](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.6...vite_ruby@3.2.7) (2022-10-19)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * yarn berry pnp mode support ([#278](https://github.com/ElMassimo/vite_ruby/issues/278)) ([1890447](https://github.com/ElMassimo/vite_ruby/commit/189044746e536847cb33fb471cc7c42251a61072))
16
+
17
+
18
+ ### Features
19
+
20
+ * create vite-plugin-rails, an opinionated version of `vite-plugin-ruby` ([#282](https://github.com/ElMassimo/vite_ruby/issues/282)) ([16375fb](https://github.com/ElMassimo/vite_ruby/commit/16375fb1f6f2bf86dff935ca3aaf91c333a796ff))
21
+
22
+
23
+
1
24
  ## [3.2.6](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.5...vite_ruby@3.2.6) (2022-10-07)
2
25
 
3
26
 
@@ -143,7 +143,7 @@ private
143
143
 
144
144
  def versions
145
145
  all_files = Dir.glob("#{ config.build_output_dir }/**/*")
146
- entries = all_files - [config.manifest_path] - current_version_files
146
+ entries = all_files - config.manifest_paths - current_version_files
147
147
  entries.reject { |file| File.directory?(file) }
148
148
  .group_by { |file| File.mtime(file).utc.to_i }
149
149
  .sort.reverse
@@ -31,7 +31,7 @@ private
31
31
  args = args.clone
32
32
  cmd.push('node', '--inspect-brk') if args.delete('--inspect')
33
33
  cmd.push('node', '--trace-deprecation') if args.delete('--trace_deprecation')
34
- cmd.push(vite_executable)
34
+ cmd.push(*vite_executable)
35
35
  cmd.push(*args)
36
36
  cmd.push('--mode', config.mode) unless args.include?('--mode') || args.include?('-m')
37
37
  end
@@ -40,6 +40,12 @@ private
40
40
  # Internal: Resolves to an executable for Vite.
41
41
  def vite_executable
42
42
  bin_path = config.vite_bin_path
43
- File.exist?(bin_path) ? bin_path : "#{ `npm bin`.chomp }/vite"
43
+ return [bin_path] if File.exist?(bin_path)
44
+
45
+ if config.root.join('yarn.lock').exist?
46
+ %w[yarn vite]
47
+ else
48
+ ["#{ `npm bin`.chomp }/vite"]
49
+ end
44
50
  end
45
51
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ViteRuby
4
- VERSION = '3.2.6'
4
+ VERSION = '3.2.8'
5
5
 
6
6
  # Internal: Versions used by default when running `vite install`.
7
- DEFAULT_VITE_VERSION = '^3.0.0'
8
- DEFAULT_PLUGIN_VERSION = '^3.1.0'
7
+ DEFAULT_VITE_VERSION = '^3.2.0'
8
+ DEFAULT_PLUGIN_VERSION = '^3.1.2'
9
9
  end
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.2.6
4
+ version: 3.2.8
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: 2022-10-07 00:00:00.000000000 Z
11
+ date: 2022-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli
@@ -202,8 +202,8 @@ homepage: https://github.com/ElMassimo/vite_ruby
202
202
  licenses:
203
203
  - MIT
204
204
  metadata:
205
- source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.2.6/vite_ruby
206
- changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.2.6/vite_ruby/CHANGELOG.md
205
+ source_code_uri: https://github.com/ElMassimo/vite_ruby/tree/vite_ruby@3.2.8/vite_ruby
206
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.2.8/vite_ruby/CHANGELOG.md
207
207
  post_install_message: "Thanks for installing Vite Ruby!\n\nIf you upgraded the gem
208
208
  manually, please run:\n\tbundle exec vite upgrade"
209
209
  rdoc_options: []