bridgetown-lit-renderer 1.1.0 → 1.1.1

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: e113f9942a7af9037d258ba59579880056c9f34e4c2b96021ba85d44408bef94
4
- data.tar.gz: 50b03942311d65557165cfd0a39ec831180fb5762f0761447251e0d27750c688
3
+ metadata.gz: 8f8f4ae03c036f36ea4dd3fb5bf924a80cb0eda2ca12957484436c89b9a1e407
4
+ data.tar.gz: 7a9df76765166b4c9eb06fbf6aff2df8bfc0fc1010686bd6b007f6a50ac21271
5
5
  SHA512:
6
- metadata.gz: 88377734db394ff70b38ccd2af7af04c4d2398216a493fb8f36999be4482066e0e99c582d5596c75fb2c42104f7ce8e820057c34de239b8969d71610f989c14c
7
- data.tar.gz: f0eaecd4d0df555280229fef0b6172a6015ca1a1535f8fb6536e1b17e7a596365af705b54814a8b6ff404153e6c85f3e88783185e52d405b7ccd5ca0d3229b5b
6
+ metadata.gz: 6fffc5fc4150f49b3dfb65a550a1b5d1d4eff4243e2a750b4b4601df4d0d94ebc82332132e2bec3b7c073e71b996af66556800fb89cec52294d28a0a1999d27b
7
+ data.tar.gz: 76e7648e122b98cbe75d194c6088478a2399bffbfba742c1b6cc827bd022d337c8f02a6dafce9a846b5d75ea64b415ad00d8aee1fa1896c214b5cc837ddb6af7
data/CHANGELOG.md CHANGED
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
 
12
12
  ## 1.1.0 - 2021-12-03
13
13
 
14
+ - Fix issue with loading project root's node_modules path
15
+
16
+ ## 1.1.0 - 2021-12-03
17
+
14
18
  - Switch to processing SSR through Node sidecar server and various other performance & caching enhancements
15
19
 
16
20
  ## 1.0.0 - 2021-09-25
@@ -13,7 +13,7 @@ module BridgetownLitRenderer
13
13
 
14
14
  attr_accessor :site
15
15
 
16
- def self.start_node_server
16
+ def self.start_node_server(node_modules_path)
17
17
  return if serverpid
18
18
 
19
19
  self.authtoken = SecureRandom.hex(64)
@@ -23,6 +23,7 @@ module BridgetownLitRenderer
23
23
  {
24
24
  "LIT_SSR_SERVER_PORT" => serverport.to_s,
25
25
  "LIT_SSR_AUTH_TOKEN" => authtoken,
26
+ "NODE_PATH" => node_modules_path,
26
27
  },
27
28
  "node #{File.expand_path("../../src/serve.js", __dir__)}",
28
29
  pgroup: true
@@ -86,7 +87,7 @@ module BridgetownLitRenderer
86
87
  @render_notice_printed = true
87
88
  end
88
89
 
89
- self.class.start_node_server
90
+ self.class.start_node_server(site.in_root_dir("node_modules"))
90
91
 
91
92
  output = Faraday.post(
92
93
  "http://127.0.0.1:#{self.class.serverport}",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BridgetownLitRenderer
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bridgetown-lit-renderer",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "frontend/javascript/index.js",
5
5
  "exports": {
6
6
  ".": {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-lit-renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
@@ -114,7 +114,7 @@ homepage: https://github.com/bridgetownrb/bridgetown-lit-renderer
114
114
  licenses:
115
115
  - MIT
116
116
  metadata:
117
- yarn-add: bridgetown-lit-renderer@1.1.0
117
+ yarn-add: bridgetown-lit-renderer@1.1.1
118
118
  rubygems_mfa_required: 'true'
119
119
  post_install_message:
120
120
  rdoc_options: []