Skip to content

Commit

Permalink
Do not modify submodules on rake js
Browse files Browse the repository at this point in the history
Disable writing package-lock and saving of
package.json during npm install. These lead to
dirty submodules.
  • Loading branch information
lautis committed Dec 3, 2017
1 parent aa567ea commit 2098a0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ end
desc "Rebuild lib/uglify.js"
task :js do
cd 'vendor/source-map/' do
`npm install`
`npm install --no-package-lock --no-save`
end

cd 'vendor/uglifyjs/' do
# required to run ./uglifyjs2 --self; not bundled.
`npm install`
`npm install --no-package-lock --no-save`
end

cd 'vendor/uglifyjs-harmony' do
# required to run ./uglifyjs2 --self; not bundled.
`npm install`
`npm install --no-package-lock --no-save`
end

FileUtils.cp("vendor/source-map/dist/source-map.js", "lib/source-map.js")
Expand Down

0 comments on commit 2098a0b

Please sign in to comment.