File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -134,4 +134,5 @@ packages/**/parser.so
134
134
# do not include copied directories
135
135
packages /** /src
136
136
# ignore generated ts files in scripts
137
- scripts /** /* .{js, d.ts}
137
+ scripts /** /* .js
138
+ scripts /** /* .d.ts
Original file line number Diff line number Diff line change @@ -7,13 +7,15 @@ async function copySrc(packageName: string) {
7
7
await cp ( src , 'src' , { recursive : true } )
8
8
}
9
9
10
- /** Setup ast-grep/lang package's pre-release
11
- *
12
- **/
10
+ /** Setup ast-grep/lang package's pre-release */
13
11
interface SetupConfig {
12
+ /** Name of the language. e.g. toml */
14
13
name : string
14
+ /** Language registration object, usually the export of index.js */
15
15
languageRegistration : DynamicLangRegistrations [ string ]
16
+ /** Package name of tree-sitter package. e.g. tree-sitter-toml */
16
17
packageName : string
18
+ /** Test cases running in CI */
17
19
testRunner : ( parse : ( c : string ) => SgRoot ) => void
18
20
}
19
21
Original file line number Diff line number Diff line change 6
6
"moduleResolution" : " nodenext" ,
7
7
"strict" : true ,
8
8
"esModuleInterop" : true ,
9
+ "declaration" : true ,
9
10
"forceConsistentCasingInFileNames" : true
10
11
},
11
12
"exclude" : [
You can’t perform that action at this time.
0 commit comments