Skip to content

Commit

Permalink
Run modclean only on make dist ...
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Dec 3, 2018
1 parent e70a755 commit 5f114b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ clean-docs:
# Build distribution
#
$(dist_dir)/owncloud: $(composer_deps) $(core_vendor) $(core_all_src)
cd $(NODE_PREFIX) && $(YARN) run clean-modules
rm -Rf $@; mkdir -p $@/config
cp -RL $(core_all_src) $@
cp -R $(core_config_files) $@/config
Expand Down
3 changes: 2 additions & 1 deletion build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"yarn": ">= 1.0.0"
},
"scripts": {
"postinstall": "modclean -r --patterns=\"default:safe,owncloud:basic\" && node -e \"try { require('fs').symlinkSync(require('path').resolve('node_modules/@bower_components'), '../core/vendor', 'junction') } catch (e) { }\""
"clean-modules": "modclean -r --patterns=\"default:safe,owncloud:basic\"",
"postinstall": "node -e \"try { require('fs').symlinkSync(require('path').resolve('node_modules/@bower_components'), '../core/vendor', 'junction') } catch (e) { }\""
}
}

0 comments on commit 5f114b1

Please sign in to comment.