Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 498562d

Browse files
authored
Merge pull request #887 from DeeDeeG/upgrade-node-gyp-with-fixes
Upgrade node gyp with fixes
2 parents 707cd2a + e2efbd5 commit 498562d

25 files changed

+3681
-3082
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ notifications:
77
on_failure: change
88

99
node_js:
10-
- "10.2.1"
10+
- "10.20.1"
11+
12+
before_install: npm install -g npm
13+
14+
install: npm install
1115

1216
script: ./bin/npm test
1317

BUNDLED_NODE_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v10.2.1
1+
v10.20.1

Gruntfile.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ module.exports = (grunt) ->
3636
grunt.registerTask('lint', ['coffeelint'])
3737
grunt.registerTask('default', ['coffee', 'lint'])
3838
grunt.registerTask('test', ['clean', 'default', 'shell:test'])
39-
grunt.registerTask('prepublish', ['clean', 'coffee', 'lint'])
39+
grunt.registerTask('prepare', ['clean', 'coffee', 'lint'])

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ platform:
77
- x64
88

99
environment:
10-
nodejs_version: "10.2.1"
10+
nodejs_version: "10.20.1"
1111

1212
install:
1313
- ps: Install-Product node $env:nodejs_version $env:platform
1414
- npm install -g npm
15-
- npm install
15+
- npm ci
1616

1717
build: off
1818

bin/apm

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,6 @@ binDir=`pwd -P`
3131
# Force npm to use its builtin node-gyp
3232
unset npm_config_node_gyp
3333

34-
export ATOM_APM_ORIGINAL_PYTHON="${PYTHON:-}"
35-
36-
# Assumption: env iterates through environment variables in the same order that
37-
# process.env iterates through properties within npm. So, we take the last match.
38-
for var in $(env | grep -i ^npm_config_python=)
39-
do
40-
ATOM_APM_ORIGINAL_PYTHON="${var#*=}"
41-
unset ${var%%=*}
42-
done
43-
44-
export npm_config_python="${binDir}/python-interceptor.sh"
45-
4634
cliPath="$binDir/../lib/cli.js"
4735
if [[ $(uname -r) == *-Microsoft ]]; then
4836
cliPath="$(echo $cliPath | sed 's/\/mnt\/\([a-z]*\)\(.*\)/\1:\2/')"

bin/npm

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,4 @@ export PATH="$SCRIPT_DIR:$PATH"
55
# Force npm to use its builtin node-gyp
66
unset npm_config_node_gyp
77

8-
export ATOM_APM_ORIGINAL_PYTHON="${PYTHON:-}"
9-
10-
# Assumption: env iterates through environment variables in the same order that
11-
# process.env iterates through properties within npm. So, we take the last match.
12-
for var in $(env | grep -i ^npm_config_python=)
13-
do
14-
ATOM_APM_ORIGINAL_PYTHON="${var#*=}"
15-
done
16-
if [ -z "${ATOM_APM_ORIGINAL_PYTHON}" ] && [ -n "${PYTHON:-}" ]
17-
then
18-
ATOM_APM_ORIGINAL_PYTHON="${PYTHON}"
19-
fi
20-
21-
export npm_config_python="${SCRIPT_DIR}/python-interceptor.sh"
22-
238
"$SCRIPT_DIR"/../node_modules/.bin/npm $@

bin/python-interceptor.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)