File tree Expand file tree Collapse file tree 7 files changed +36
-25
lines changed Expand file tree Collapse file tree 7 files changed +36
-25
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,18 @@ jobs:
34
34
run : yarn install --immutable
35
35
- name : Check for duplicate dependencies
36
36
run : yarn dedupe --check
37
- - name : Setup tools cache
37
+ - name : Setup lint cache
38
38
39
39
with :
40
40
path : node_modules/.cache
41
- key : tools -${{ github.sha }}
42
- restore-keys : tools -
41
+ key : lint -${{ github.sha }}
42
+ restore-keys : lint -
43
43
- name : Check javascript and typescript
44
44
run : yarn run lint:js
45
45
- name : Check format
46
46
run : yarn run lint:format
47
+ - name : Check types
48
+ run : yarn run lint:types
47
49
- name : Build package
48
50
run : yarn run build
49
51
# - name: Run Tests
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default [
36
36
parser : typescriptParser ,
37
37
parserOptions : {
38
38
ecmaVersion : "latest" ,
39
- project : "tsconfig-lint .json" ,
39
+ project : "tsconfig.json" ,
40
40
tsconfigRootDir : rootDir ,
41
41
} ,
42
42
} ,
File renamed without changes.
Original file line number Diff line number Diff line change 31
31
},
32
32
"type" : " module" ,
33
33
"files" : [
34
- " dist/"
34
+ " dist/" ,
35
+ " !dist/*.tsbuildinfo"
35
36
],
36
37
"exports" : " ./dist/index.cjs" ,
37
38
"types" : " ./dist/index.d.cts" ,
41
42
"fix" : " yarn run lint:js --fix" ,
42
43
"format" : " prettier --cache --write ." ,
43
44
"lint:format" : " prettier --cache --check ." ,
44
- "lint" : " yarn dedupe --check && yarn run lint:js && yarn run lint:format" ,
45
- "build" : " tsc" ,
46
- "test" : " mocha" ,
47
- "clean" : " rm -rf dist" ,
45
+ "lint:types" : " tsc" ,
46
+ "lint" : " yarn dedupe --check && yarn run lint:js && yarn run lint:format && yarn run lint:types" ,
47
+ "build" : " tsc --build src" ,
48
+ "test" : " mocha --config mocha.config.cjs" ,
49
+ "clean" : " tsc --build --clean" ,
48
50
"prepublish" : " yarn run lint" ,
49
51
"prepack" : " yarn run build" ,
50
52
"postpack" : " yarn run clean"
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ../tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ // Emit
5
+ "noEmit" : false ,
6
+ "declaration" : true ,
7
+ "declarationMap" : true ,
8
+ "sourceMap" : true ,
9
+ "outDir" : " ../dist" ,
10
+ // Project
11
+ "composite" : true
12
+ }
13
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
- "include" : [" src/**/*" ],
2
+ "references" : [
3
+ {
4
+ "path" : " src"
5
+ }
6
+ ],
3
7
"compilerOptions" : {
4
8
// Language and Environment
5
9
"target" : " ES2021" ,
6
10
// Modules
7
11
"module" : " Node16" ,
8
- "rootDir" : " src" ,
9
- // Emit
10
- "declaration" : true ,
11
- "declarationMap" : true ,
12
- "sourceMap" : true ,
13
- "outDir" : " dist" ,
14
- // Caching
12
+ // Emit/Project (only type check with cache)
13
+ "noEmit" : true ,
15
14
"incremental" : true ,
16
- "tsBuildInfoFile" : " node_modules/.cache/typescript/.tsbuildinfo" ,
15
+ "outDir" : " node_modules/.cache/typescript" ,
16
+ // JavaScript Support
17
+ "allowJs" : true ,
17
18
// Interop Constraints
18
19
"esModuleInterop" : true ,
19
20
"forceConsistentCasingInFileNames" : true ,
You can’t perform that action at this time.
0 commit comments