File tree 6 files changed +39
-9
lines changed
6 files changed +39
-9
lines changed Original file line number Diff line number Diff line change 23
23
"parser" : " @typescript-eslint/parser" ,
24
24
"parserOptions" : {
25
25
"project" : [
26
- " tsconfig.json"
26
+ " tsconfig.json" ,
27
+ " tests/tsconfig.json"
27
28
],
28
29
"sourceType" : " module" ,
29
30
"implicitStrict" : true ,
Original file line number Diff line number Diff line change 4
4
cli /
5
5
tests /
6
6
coverage /
7
- src /** /* .js
8
7
dist /* .map
8
+ src /
9
9
10
10
jest.config.ts
11
11
.eslintignore
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " antlr4ng" ,
3
- "version" : " 2.0.0 " ,
3
+ "version" : " 2.0.1 " ,
4
4
"type" : " module" ,
5
5
"description" : " Alternative JavaScript/TypeScript runtime for ANTLR4" ,
6
6
"main" : " dist/antlr4.mjs" ,
7
- "types" : " src /index.d.ts" ,
7
+ "types" : " dist /index.d.ts" ,
8
8
"repository" : " https://github.com/mike-lischke/antlr4ng" ,
9
9
"keywords" : [
10
10
" lexer" ,
51
51
"process profile tick file" : " node --prof-process isolate-0x130008000-75033-v8.log > processed.txt"
52
52
},
53
53
"exports" : {
54
- "types" : " ./src /index.ts" ,
54
+ "types" : " ./dist /index.d .ts" ,
55
55
"default" : " ./dist/antlr4.mjs"
56
56
}
57
57
}
Original file line number Diff line number Diff line change 5
5
6
6
/* eslint-disable no-underscore-dangle */
7
7
8
- import fs from "fs" ;
8
+ import * as fs from "fs" ;
9
9
import path from "path" ;
10
10
import assert from "assert" ;
11
11
import { fileURLToPath } from "url" ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "declaration" : true ,
4
+ "module" : " Node16" ,
5
+ "target" : " ESNext" ,
6
+ "moduleResolution" : " Node16" ,
7
+ "noEmit" : true ,
8
+ "removeComments" : false ,
9
+ "noImplicitAny" : true ,
10
+ "noImplicitOverride" : false ,
11
+ "sourceMap" : true ,
12
+ "inlineSources" : true ,
13
+ "isolatedModules" : false ,
14
+ "allowSyntheticDefaultImports" : true ,
15
+ "strictNullChecks" : true ,
16
+ },
17
+ "include" : [
18
+ " **/*.ts" ,
19
+ ],
20
+ "exclude" : [
21
+ " node_modules" ,
22
+ " dist/**/*" ,
23
+ " src/**/*"
24
+ ]
25
+ }
Original file line number Diff line number Diff line change 5
5
"moduleResolution" : " Node16" ,
6
6
"sourceMap" : true ,
7
7
"esModuleInterop" : true ,
8
- "noEmit" : true ,
8
+ "noEmit" : false ,
9
+ "declaration" : true ,
10
+ "emitDeclarationOnly" : true ,
11
+ "outDir" : " dist" ,
9
12
"lib" : [
10
13
" ESNext" ,
11
14
" DOM"
21
24
},
22
25
"include" : [
23
26
" src/**/*.ts" ,
24
- " tests/**/*.ts"
25
27
],
26
28
"exclude" : [
27
- " node_modules"
29
+ " dist" ,
30
+ " node_modules" ,
31
+ " tests"
28
32
],
29
33
"compileOnSave" : true ,
30
34
"ts-node" : {
You can’t perform that action at this time.
0 commit comments