Use .. for git diffs in the npm scripts

This will allow the script to fetch only changed files from the working branch/PR
This commit is contained in:
Leo Balter 2019-04-25 16:35:14 -04:00 committed by Rick Waldron
parent 7a21a1bd5e
commit cc83d1d3de
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
"scripts": {
"ci": "./tools/scripts/ci_test.sh",
"test": "test262-harness",
"diff": "git diff --diff-filter ACMR --name-only master -- test/",
"diff": "git diff --diff-filter ACMR --name-only master.. -- test/",
"test:diff": "npm run test:diff:v8 && npm run test:diff:spidermonkey && npm run test:diff:chakra && npm run test:diff:javascriptcore",
"test:diff:v8": "test262-harness -t 8 --hostType=d8 --hostPath=v8 $(npm run diff)",
"test:diff:spidermonkey": "test262-harness -t 8 --hostType=jsshell --hostPath=spidermonkey $(npm run diff)",