Skip to content

Commit

Permalink
fix: config types
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Ferreiro Val committed Jun 15, 2019
1 parent aaaf68d commit 097222d
Show file tree
Hide file tree
Showing 14 changed files with 445 additions and 438 deletions.
2 changes: 1 addition & 1 deletion packages/@best/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"globby": "~9.2.0",
"micromatch": "~3.1.10",
"rimraf": "~2.6.2",
"simple-git": "~1.92.0",
"simple-git": "~1.113.0",
"simple-statistics": "^6.0.1",
"yargs": "~11.0.0"
}
Expand Down
3 changes: 2 additions & 1 deletion packages/@best/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"dependencies": {
"@best/regex-util": "0.7.1",
"@best/utils": "0.7.1",
"chalk": "~2.4.2"
"chalk": "~2.4.2",
"simple-git": "~1.113.0"
}
}
10 changes: 10 additions & 0 deletions packages/@best/config/src/__tests__/git.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

import { getGitInfo } from "../utils/git"

describe('config file resolution', () => {
test('throw if not config is found in the directory', async () => {
const gitInfo = await getGitInfo(process.cwd());
expect(gitInfo).toBeDefined();
expect(gitInfo.repo).toBeDefined();
});
});
5 changes: 0 additions & 5 deletions packages/@best/config/src/constants.ts

This file was deleted.

103 changes: 0 additions & 103 deletions packages/@best/config/src/git.ts

This file was deleted.

Loading

0 comments on commit 097222d

Please sign in to comment.