-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #36579 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,26 +9,26 @@ | |
|
||
cd "$( dirname "$0" )" || exit | ||
rm -rf node_modules/eslint | ||
{ | ||
( | ||
mkdir eslint-tmp | ||
cd eslint-tmp || exit | ||
npm init --yes | ||
|
||
npm install --global-style --no-bin-links --production --no-package-lock eslint@latest | ||
|
||
{ | ||
( | ||
cd node_modules/eslint || exit | ||
|
||
npm install --no-bin-links --production --no-package-lock eslint-plugin-markdown@latest | ||
} | ||
) | ||
|
||
|
||
# Use dmn to remove some unneeded files. | ||
npx [email protected] -f clean | ||
# Use removeNPMAbsolutePaths to remove unused data in package.json. | ||
# This avoids churn as absolute paths can change from one dev to another. | ||
npx [email protected] . | ||
} | ||
) | ||
|
||
mv eslint-tmp/node_modules/eslint node_modules/eslint | ||
rm -rf eslint-tmp/ |