File tree Expand file tree Collapse file tree 6 files changed +3142
-89
lines changed Expand file tree Collapse file tree 6 files changed +3142
-89
lines changed Original file line number Diff line number Diff line change
1
+ sudo : false
2
+ language : node_js
3
+ cache :
4
+ yarn : true
5
+ directories :
6
+ - node_modules
7
+ notifications :
8
+ email : true
9
+ node_js :
10
+ - " 10"
11
+ - " 12"
12
+ script :
13
+ - yarn run test
14
+ - yarn run build
15
+ after_success :
16
+ - ' curl -Lo travis_after_all.py https://git.io/travis_after_all'
17
+ - python travis_after_all.py
18
+ - export $(cat .to_export_back) &> /dev/null
19
+ - if [[ "$TRAVIS_JOB_NUMBER" == *.1 && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then bash <(curl -s https://codecov.io/bash); fi
20
+ - if [[ "$TRAVIS_JOB_NUMBER" == *.1 && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then npm run semantic-release; fi
21
+ branches :
22
+ except :
23
+ - /^v\d+\.\d+\.\d+$/
Original file line number Diff line number Diff line change 9
9
"files" : [
10
10
" lib"
11
11
],
12
+ "dependencies" : {
13
+ "dedent" : " ^0.7.0"
14
+ },
12
15
"peerDependencies" : {
13
16
"graphql-compose" : " ^7.6.0"
14
17
},
15
18
"devDependencies" : {
19
+ "@types/dedent" : " ^0.7.0" ,
16
20
"@types/glob" : " 7.1.1" ,
17
21
"@types/jest" : " 24.0.23" ,
18
22
"@types/node" : " 12.12.11" ,
27
31
"jest" : " 24.9.0" ,
28
32
"prettier" : " 1.19.1" ,
29
33
"rimraf" : " 3.0.0" ,
34
+ "semantic-release" : " ^15.13.31" ,
30
35
"ts-jest" : " 24.2.0" ,
31
36
"typescript" : " 3.7.2"
32
37
},
37
42
"lint" : " eslint 'src/**/*.{js,ts}'" ,
38
43
"test" : " npm run lint && npm run tscheck && npm run coverage" ,
39
44
"tscheck" : " tsc --noEmit" ,
45
+ "semantic-release" : " semantic-release" ,
40
46
"start-example1" : " cd ./examples/simple && yarn install && yarn watch" ,
41
47
"start-example2" : " cd ./examples/forTests && yarn install && yarn watch"
42
48
},
43
- "dependencies" : {
44
- "dedent" : " ^0.7.0"
49
+ "collective" : {
50
+ "type" : " opencollective" ,
51
+ "url" : " https://opencollective.com/graphql-compose" ,
52
+ "logo" : " https://opencollective.com/graphql-compose/logo.txt"
45
53
}
46
54
}
Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ export interface RequireAstResult {
42
42
subscription ?: RequireAstRootTypeNode ;
43
43
}
44
44
45
- export const defaultOptions = {
45
+ export const defaultOptions : Options = {
46
46
extensions : [ 'js' , 'ts' ] ,
47
- } as Options ;
47
+ } ;
48
48
49
49
export function requireSchemaDirectory (
50
50
m : NodeModule ,
@@ -53,12 +53,12 @@ export function requireSchemaDirectory(
53
53
) : RequireAstResult {
54
54
// if no path was passed in, assume the equivelant of __dirname from caller
55
55
// otherwise, resolve path relative to the equivalent of __dirname
56
- path = ! path ? dirname ( m . filename ) : resolve ( dirname ( m . filename ) , path ) ;
56
+ const schemaPath = ! path ? dirname ( m . filename ) : resolve ( dirname ( m . filename ) , path ) ;
57
57
58
58
const result = { } as RequireAstResult ;
59
59
60
- fs . readdirSync ( path ) . forEach ( ( filename ) => {
61
- const absPath = join ( path , filename ) ;
60
+ fs . readdirSync ( schemaPath ) . forEach ( ( filename ) => {
61
+ const absPath = join ( schemaPath , filename ) ;
62
62
63
63
if ( fs . statSync ( absPath ) . isDirectory ( ) ) {
64
64
const dirName = filename ;
Original file line number Diff line number Diff line change 9
9
"declaration" : true ,
10
10
"declarationMap" : true ,
11
11
"skipLibCheck" : false ,
12
- "strict" : true ,
12
+ "strict" : false , // <----- FIX ME
13
13
"lib" : [" es2017" ],
14
14
"moduleResolution" : " node" ,
15
15
"esModuleInterop" : true ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"composite" : true ,
4
- "esModuleInterop" : true
4
+ "esModuleInterop" : true ,
5
+ "strict" : true ,
5
6
},
6
7
"files" : [],
7
8
"include" : [],
8
9
"exclude" : [" **/node_modules" ],
9
- "references" : [{ "path" : " ./tsconfig.build.json" }, { "path" : " ./tsconfig.test.json " } ]
10
+ "references" : [{ "path" : " ./tsconfig.build.json" }]
10
11
}
You can’t perform that action at this time.
0 commit comments