File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 11cache : yarn
22language : node_js
33node_js :
4+ - ' node'
45 - ' 8'
5- - ' 6'
66os : linux
77after_failure :
88 - ls -lah --color=auto
99after_success :
1010 - yarn run travis-coveralls
1111 - yarn run travis-ssh
12- - ' git remote set-url origin git@github.com:nativecode-dev/chest.git'
12+ - git remote set-url origin git@github.com:nativecode-dev/chest.git
1313 - git checkout $TRAVIS_BRANCH
14- - ' npm set //registry.npmjs.org/:_authToken "$NPM_TOKEN"'
14+ - npm set //registry.npmjs.org/:_authToken "$NPM_TOKEN"
1515 - yarn run travis-release
1616before_install :
17- - ' curl -o- -L https://yarnpkg.com/install.sh | bash -s'
18- - ' export PATH="$HOME/.yarn/bin:$PATH"'
17+ - curl -o- -L https://yarnpkg.com/install.sh | bash -s
18+ - export PATH="$HOME/.yarn/bin:$PATH"
Original file line number Diff line number Diff line change 1- --require ts-node/register
2- --require tsconfig-paths/register
31--require source-map-support/register
2+ --require ts-node/register
43--full-trace
54--recursive
65--bail
Original file line number Diff line number Diff line change 77 "typings" : " ./lib/index.d.ts" ,
88 "version" : " 2.0.0-development" ,
99 "dependencies" : {
10+ "@nofrills/lincoln-debug" : " ^2.2.6" ,
1011 "chalk" : " ^2.3.0"
1112 },
1213 "devDependencies" : {
2627 "semantic-release" : " ^8.2.0" ,
2728 "semantic-release-cli" : " ^3.2.6" ,
2829 "ts-node" : " ^3.3.0" ,
29- "tsconfig-paths" : " ^2.3.0" ,
3030 "tslint" : " ^5.8.0" ,
3131 "tslint-config-standard" : " ^7.0.0" ,
3232 "typescript" : " ^2.6.1"
6161 },
6262 "scripts" : {
6363 "build" : " tsc --project tsconfig.json" ,
64- "prebuild" : " rimraf .cache && rimraf lib && rimraf artifacts && tslint --project tsconfig.json --config tslint.json" ,
64+ "prebuild" : " yarn && rimraf .cache && rimraf lib && rimraf artifacts && tslint --project tsconfig.json --config tslint.json" ,
6565 "postbuild" : " bin-shebang" ,
6666 "test" : " sh setup-tests.sh && cross-env DEBUG= nyc mocha --opts mocha.opts" ,
6767 "pretest" : " yarn run build" ,
Original file line number Diff line number Diff line change @@ -43,7 +43,12 @@ class InternalFileSystem implements FileSystem {
4343 }
4444
4545 public exists ( filepath : string ) : Promise < boolean > {
46- return new Promise < boolean > ( ( resolve , reject ) => fs . exists ( filepath , ( exists : boolean ) => resolve ( exists ) ) )
46+ return new Promise < boolean > ( ( resolve , reject ) => fs . access ( filepath , ( error : Error ) => {
47+ if ( error ) {
48+ resolve ( false )
49+ }
50+ resolve ( true )
51+ } ) )
4752 }
4853
4954 public ext ( filepath : string ) : string {
You can’t perform that action at this time.
0 commit comments