hanami-cli 2.3.4 → 2.3.5

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: c2e220fa9057d2f1f4e76988f46ebc8a8aca93c528988d3a59d315962cf03bd3
4
- data.tar.gz: d7b2218beff72a6c4e5f7f7fb77533b020bebfd082fefe46bbdb05c488f2acfe
3
+ metadata.gz: 4fab5179afc7358ed28f6f47f4f446004b66e2235b3e4064760277375b67f793
4
+ data.tar.gz: 3ff9a30757fa557dd1a516a273a9a6618dd36a0b04318ab12603b01722bf2bd9
5
5
  SHA512:
6
- metadata.gz: cb66f138be8b909e1c7283882f02ac89ea82aab08538a347d973efedda4fba74a247fbc3c8d16490ee122321cba0da39a0ef61a6eb6b0cc21222f83a6d386d6c
7
- data.tar.gz: 6e53bb2b073180cb09fffdcd6f1e2d5786d71c50bae2e4fcbfb439245b4c5945816245f4b026a75851f3c46b990c70a23eec6a492e02c605baaae14479c042de
6
+ metadata.gz: c66556edf928261ce41bcd910a39cf11a373db8f0b618314b6535fe8d747377fbe65b3630b24b40dea5f49cb8ebd16d5a2551c0fe4d6ff145d04f7c91fd405ea
7
+ data.tar.gz: bdd6dfee069f0d5bb5883693d97a1c0bb4685023225ed5e6835446269db2578c79934add5b586319d21ad001c8981017d399b72230a6fad6ba987b6897710fbb
data/CHANGELOG.md CHANGED
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
 
12
12
  ### Changed
13
13
 
14
+ - In `assets` commands, provide the node command with the assets config path _relative to app root_ instead of an absolute path (`config/assets.js` instead of `/full/path/to/config/assets.js`). This allows the assets commands to work in environments where Node.js is "sandboxed" in such a way that it doesn't share the same absolute path. (@haileys in #381).
15
+
14
16
  ### Deprecated
15
17
 
16
18
  ### Removed
@@ -19,7 +21,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
19
21
 
20
22
  ### Security
21
23
 
22
- [Unreleased]: https://github.com/hanami/cli/compare/v2.3.4...HEAD
24
+ [Unreleased]: https://github.com/hanami/cli/compare/v2.3.5...HEAD
25
+
26
+ ## [2.3.5] - 2026-02-06
27
+
28
+ ### Changed
29
+
30
+ - In `assets` commands, provide the node command with the assets config path _relative to app root_ instead of an absolute path (`config/assets.js` instead of `/full/path/to/config/assets.js`). This allows the assets commands to work in environments where Node.js is "sandboxed" in such a way that it doesn't share the same absolute path. (@haileys in #381).
31
+
32
+ [2.3.4]: https://github.com/hanami/cli/compare/v2.3.4...v2.3.5
23
33
 
24
34
  ## [2.3.4] - 2026-01-23
25
35
 
@@ -94,7 +94,8 @@ module Hanami
94
94
  # @since 2.1.0
95
95
  # @api private
96
96
  def assets_command(slice)
97
- cmd = [config.node_command, assets_config(slice).to_s, "--"]
97
+ assets_config = assets_config(slice).relative_path_from(slice.app.root).to_s
98
+ cmd = [config.node_command, assets_config, "--"]
98
99
 
99
100
  if slice.eql?(slice.app)
100
101
  cmd << "--path=app"
@@ -6,6 +6,6 @@ module Hanami
6
6
  #
7
7
  # @api public
8
8
  # @since 2.0.0
9
- VERSION = "2.3.4"
9
+ VERSION = "2.3.5"
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanakai team