vite_ruby 3.2.6 → 3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61362606d0cc4c30a9194954b8d017a8fd7f929be21d99f4030a39fe32b01c8b
4
- data.tar.gz: 4b30fcb2f8683dd3ae69aa6b9324ee0b5a947c2b82bda4003bfe5bc330c22d4e
3
+ metadata.gz: 504e30d024c6fe224de798f30f95894924af489116d3fbcd98cbd207e971a01d
4
+ data.tar.gz: 94d5c6d005c405799f1ab0dc9e8f31f52d29f16e9a30ed9c1b16fb2b25c50e12
5
5
  SHA512:
6
- metadata.gz: 8a8f10aed93a2b6b8272f00404f6689f5252a459ae8a6c23151b2b577e20781d19051914d2a77125d820264683aa5f695bfbc86d11e29a750a7f740aa4fae7f8
7
- data.tar.gz: afb33c544dc8e9a52e5c0cec38bd49be6c22ca64f2e60fcc4af4074291e30c5e789e75f26336b878a61e868c765fb3363b932d85e1ed514da67ec846680a1a68
6
+ metadata.gz: 86e19071580f77b04c83c28f9d905051debff7170f2a81ce52d82c2d5a9028e198ba70c5a924abfcbc2f83d468b3d503fe2cfa0bd52f85628b2950fd244a35e3
7
+ data.tar.gz: d1e4d3e30f38a2b233c83edc27962ee9a6a61b4b73295a0fda900c9f906ab4759e357959cce7d326b267cab0f3aaffb3f2ae57f23307f5cc51660cb5d2634b4a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [3.2.7](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.6...vite_ruby@3.2.7) (2022-10-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * yarn berry pnp mode support ([#278](https://github.com/ElMassimo/vite_ruby/issues/278)) ([1890447](https://github.com/ElMassimo/vite_ruby/commit/189044746e536847cb33fb471cc7c42251a61072))
7
+
8
+
9
+ ### Features
10
+
11
+ * 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))
12
+
13
+
14
+
1
15
  ## [3.2.6](https://github.com/ElMassimo/vite_ruby/compare/vite_ruby@3.2.5...vite_ruby@3.2.6) (2022-10-07)
2
16
 
3
17
 
@@ -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,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ViteRuby
4
- VERSION = '3.2.6'
4
+ VERSION = '3.2.7'
5
5
 
6
6
  # Internal: Versions used by default when running `vite install`.
7
7
  DEFAULT_VITE_VERSION = '^3.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.2.6
4
+ version: 3.2.7
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-19 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.7/vite_ruby
206
+ changelog_uri: https://github.com/ElMassimo/vite_ruby/blob/vite_ruby@3.2.7/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: []