Skip to content

Commit be1ea34

Browse files
author
Mike Pham
committed
feat: upgrading dependencies
1 parent 537b09f commit be1ea34

6 files changed

Lines changed: 1045 additions & 531 deletions

File tree

‎.npmrc‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎.travis.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
cache: yarn
22
language: node_js
33
node_js:
4+
- 'node'
45
- '8'
5-
- '6'
66
os: linux
77
after_failure:
88
- ls -lah --color=auto
99
after_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
1616
before_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"

‎mocha.opts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
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": {
@@ -26,7 +27,6 @@
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"
@@ -61,7 +61,7 @@
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",

‎src/Core/Files.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)