Skip to content

Commit

Permalink
update deno.json, tsconfig.json, and bat/buildDeclarationFiles.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
anqisoft committed Jan 16, 2024
1 parent 575e7bf commit e879caa
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
6 changes: 5 additions & 1 deletion bat/buildDeclarationFiles.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
@ECHO OFF
cd..
tsc --declaration -p .\ -t es2020 --emitDeclarationOnly --outDir types
del /s/q/f types\*.d.ts
tsc --declaration -p .\ -t esnext --emitDeclarationOnly --outDir types & pause
if exist types\src\ (move types\src\*.d.ts types\ && rd types\src\)
pause
12 changes: 6 additions & 6 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"compilerOptions": {
"allowJs": true,
"lib": ["deno.window", "dom", "es2020"],
"lib": ["deno.window", "dom", "esnext"],
"strict": true
},
"importMap": "import_map.json",
"lint": {
"include": ["./*.ts"],
"exclude": ["./*.d.ts"],
"include": ["./*.ts", "./src/*.ts"],
"exclude": ["./*.d.ts", "./types/*.d.ts"],
"rules": {
"tags": ["recommended"],
"include": ["ban-untagged-todo"],
"exclude": ["no-unused-vars"]
}
},
"fmt": {
"include": ["./*.ts"],
"exclude": ["./*.d.ts"],
"include": ["./*.ts", "./src/*.ts"],
"exclude": ["./*.d.ts", "./types/*.d.ts"],
"useTabs": true,
"lineWidth": 100,
"indentWidth": 2,
"singleQuote": true,
"proseWrap": "preserve"
},
"test": {
"include": [],
"include": ["./test/*.ts"],
"exclude": []
}
}
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"target": "esnext",
"module": "esnext",
"outDir": "./dist/",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
"skipLibCheck": true,
"lib": ["dom", "esnext"]
}
}

0 comments on commit e879caa

Please sign in to comment.