File tree 1 file changed +5
-1
lines changed
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
22
22
" $NODE " " $NPM " init --yes
23
23
24
24
" $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)
26
29
# Use dmn to remove some unneeded files.
27
30
" $NODE " " $NPM " exec -- dmn@2.2.2 -f clean
28
31
# TODO: Get this into dmn.
29
32
find node_modules -name .package-lock.json -exec rm {} \;
33
+ find node_modules -name ' README*' -exec rm {} \;
30
34
)
31
35
32
36
mv eslint-tmp/node_modules/eslint node_modules/eslint
You can’t perform that action at this time.
0 commit comments