Skip to content

Commit 24b66e8

Browse files
authored
chore: Move esbuild|rollup|webpack to devDependencies instead of dependencies (#194)
1 parent 3b3ffbc commit 24b66e8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: lib/install/esbuild/install.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apply "#{__dir__}/../install_procfile.rb"
33

44
say "Install esbuild"
5-
run "yarn add esbuild"
5+
run "yarn add --dev esbuild"
66

77
say "Add build script"
88
build_script = "esbuild app/javascript/*.* --bundle --sourcemap --format=esm --outdir=app/assets/builds --public-path=/assets"

Diff for: lib/install/rollup/install.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
say "Install rollup with config"
55
copy_file "#{__dir__}/rollup.config.js", "rollup.config.js"
6-
run "yarn add rollup @rollup/plugin-node-resolve"
6+
run "yarn add --dev rollup @rollup/plugin-node-resolve"
77

88
say "Add build script"
99
build_script = "rollup -c --bundleConfigAsCjs rollup.config.js"

Diff for: lib/install/webpack/install.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
say "Install Webpack with config"
55
copy_file "#{__dir__}/webpack.config.js", "webpack.config.js"
6-
run "yarn add webpack webpack-cli"
6+
run "yarn add --dev webpack webpack-cli"
77

88
say "Add build script"
99
build_script = "webpack --config webpack.config.js"

0 commit comments

Comments
 (0)