* Upgrade to Node 18 * Run audit fix to resolve node 16 openssl issue * Update babel.config.js * Replace node-version with node-version-file * Add NODE_OPTIONS * Specify major version only * Try setting locally instead * Try custom hashFunction * Trying two things at once * Try without legacy option * Add back openssl-legacy-provider * Add resolution for terser-webpack-plugin * Use older terser-webpack-plugin * Revert changes to CI * Add compression-webpack-plugin to resolution * Use new node_module cache * Add NODE_OPTION in build_test * Maybe remove redundant label * Upgrade storybook * Update bin/webpack * Revert "Upgrade storybook" This reverts commit fca3fb5c8718786b7db20538c5c4ae6cf44b45b8. * Remove unnecessary change * Update yarn.lock again * Now try with Node 20 * Upgrade Node module cache CI * Lint * Update base image sha
19 lines
466 B
Ruby
Executable file
19 lines
466 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] || "development"
|
|
ENV["NODE_ENV"] ||= "development"
|
|
ENV["NODE_OPTIONS"] ||= "--openssl-legacy-provider"
|
|
|
|
require "pathname"
|
|
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
Pathname.new(__FILE__).realpath)
|
|
|
|
require "bundler/setup"
|
|
|
|
require "webpacker"
|
|
require "webpacker/webpack_runner"
|
|
|
|
APP_ROOT = File.expand_path("..", __dir__)
|
|
Dir.chdir(APP_ROOT) do
|
|
Webpacker::WebpackRunner.run(ARGV)
|
|
end
|