File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,15 @@ rm -rf node_modules/eslint
2222 " $NODE " " $NPM " init --yes
2323
2424 " $NODE " " $NPM " install --global-style --no-bin-links --ignore-scripts eslint
25- (cd node_modules/eslint && " $NODE " " $NPM " install --no-bin-links --ignore-scripts --production --omit=peer eslint-plugin-markdown @babel/core @babel/eslint-parser @babel/plugin-syntax-import-assertions)
25+ # Uninstall plugins that we want to install so that they are removed from devDependencies.
26+ # Otherwise --production will cause them to be skipped.
27+ (cd node_modules/eslint && " $NODE " " $NPM " uninstall --ignore-scripts eslint-plugin-jsdoc eslint-plugin-markdown @babel/core @babel/eslint-parser @babel/plugin-syntax-import-assertions)
28+ (cd node_modules/eslint && " $NODE " " $NPM " install --no-save --no-bin-links --ignore-scripts --production --omit=peer eslint-plugin-jsdoc eslint-plugin-markdown @babel/core @babel/eslint-parser @babel/plugin-syntax-import-assertions)
2629 # Use dmn to remove some unneeded files.
2730 " $NODE " " $NPM " exec --
[email protected] -f clean
2831 # TODO: Get this into dmn.
2932 find node_modules -name .package-lock.json -exec rm {} \;
33+ find node_modules -name ' README*' -exec rm {} \;
3034)
3135
3236mv eslint-tmp/node_modules/eslint node_modules/eslint
You can’t perform that action at this time.
0 commit comments