Skip to content

Commit 55a491e

Browse files
fix: fix gitignore configuration, emit declaration
1 parent 436b8bd commit 55a491e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,5 @@ packages/**/parser.so
134134
# do not include copied directories
135135
packages/**/src
136136
# ignore generated ts files in scripts
137-
scripts/**/*.{js, d.ts}
137+
scripts/**/*.js
138+
scripts/**/*.d.ts

scripts/nursery/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ async function copySrc(packageName: string) {
77
await cp(src, 'src', { recursive: true })
88
}
99

10-
/** Setup ast-grep/lang package's pre-release
11-
*
12-
**/
10+
/** Setup ast-grep/lang package's pre-release */
1311
interface SetupConfig {
12+
/** Name of the language. e.g. toml */
1413
name: string
14+
/** Language registration object, usually the export of index.js */
1515
languageRegistration: DynamicLangRegistrations[string]
16+
/** Package name of tree-sitter package. e.g. tree-sitter-toml */
1617
packageName: string
18+
/** Test cases running in CI */
1719
testRunner: (parse: (c: string) => SgRoot) => void
1820
}
1921

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"moduleResolution": "nodenext",
77
"strict": true,
88
"esModuleInterop": true,
9+
"declaration": true,
910
"forceConsistentCasingInFileNames": true
1011
},
1112
"exclude": [

0 commit comments

Comments
 (0)