| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1d5857c commit 282b6eb
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,8 @@ | |||
| 5 | 5 | # This script must be be in the tools directory when it runs because it uses | |
| 6 | 6 | # $0 to determine directories to work in. | |
| 7 | 7 | ||
| 8 | + set -e | ||
| 9 | + | ||
| 8 | 10 | cd "$( dirname "${0}" )" || exit | |
| 9 | 11 | rm -rf node_modules/@babel | |
| 10 | 12 | mkdir babel-eslint-tmp | |
@@ -13,7 +15,7 @@ cd babel-eslint-tmp || exit | |||
| 13 | 15 | ROOT="$PWD/../.." | |
| 14 | 16 | [ -z "$NODE" ] && NODE="$ROOT/out/Release/node" | |
| 15 | 17 | [ -x "$NODE" ] || NODE=`command -v node` | |
| 16 | - NPM="$ROOT/deps/npm" | ||
| 18 | + NPM="$ROOT/deps/npm/bin/npm-cli.js" | ||
| 17 | 19 | ||
| 18 | 20 | "$NODE" "$NPM" init --yes | |
| 19 | 21 | "$NODE" "$NPM" install --global-style --no-bin-links --production --no-package-lock @babel/core @babel/eslint-parser@latest @babel/plugin-syntax-class-properties@latest @babel/plugin-syntax-import-assertions@latest @babel/plugin-syntax-top-level-await@latest | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,8 @@ | |||
| 5 | 5 | # This script must be in the tools directory when it runs because it uses the | |
| 6 | 6 | # script source file path to determine directories to work in. | |
| 7 | 7 | ||
| 8 | + set -e | ||
| 9 | + | ||
| 8 | 10 | cd "$( dirname "$0" )" || exit | |
| 9 | 11 | rm -rf node_modules/eslint node_modules/eslint-plugin-markdown | |
| 10 | 12 | ( | |
@@ -14,7 +16,7 @@ rm -rf node_modules/eslint node_modules/eslint-plugin-markdown | |||
| 14 | 16 | ROOT="$PWD/../.." | |
| 15 | 17 | [ -z "$NODE" ] && NODE="$ROOT/out/Release/node" | |
| 16 | 18 | [ -x "$NODE" ] || NODE=`command -v node` | |
| 17 | - NPM="$ROOT/deps/npm" | ||
| 19 | + NPM="$ROOT/deps/npm/bin/npm-cli.js" | ||
| 18 | 20 | ||
| 19 | 21 | "$NODE" "$NPM" init --yes | |
| 20 | 22 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments