forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix installation of yarn dependencies
- Loading branch information
Showing
6 changed files
with
69 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
pkgs/servers/web-apps/discourse/prebuild-theme-transpiler.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/lib/discourse_js_processor.rb b/lib/discourse_js_processor.rb | ||
index 26d142fa4d..6040aba6f4 100644 | ||
--- a/lib/discourse_js_processor.rb | ||
+++ b/lib/discourse_js_processor.rb | ||
@@ -68,7 +68,7 @@ class DiscourseJsProcessor | ||
TRANSPILER_PATH = | ||
( | ||
if Rails.env.production? | ||
- "tmp/theme-transpiler.js" | ||
+ "app/assets/javascripts/theme-transpiler.js" | ||
else | ||
"tmp/theme-transpiler/#{Process.pid}.js" | ||
end | ||
@@ -87,6 +87,6 @@ class DiscourseJsProcessor | ||
"node", | ||
"app/assets/javascripts/theme-transpiler/build.js", | ||
TRANSPILER_PATH, | ||
- ) | ||
+ ) if !Rails.env.production? or !File.file?(TRANSPILER_PATH) | ||
TRANSPILER_PATH | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters