Skip to content

Commit

Permalink
convert to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Aug 12, 2024
1 parent 44c19bb commit fa53a45
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ node_modules: package.json
lint:
luarocks show luacheck >/dev/null || luarocks install luacheck
luacheck idTip.lua
npx tsc

.PHONY: test
test: node_modules
Expand Down
File renamed without changes.
49 changes: 49 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"type": "module",
"devDependencies": {
"@types/luaparse": "0.2.12",
"@types/node": "22.2.0",
"luaparse": "0.3.1",
"typescript": "5.5.4",
"typescript-config-silverwind": "6.0.0",
"versions": "12.1.2",
"vitest": "2.0.4",
"vitest-config-silverwind": "9.1.0"
Expand Down
20 changes: 20 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": "typescript-config-silverwind",
"include": [
"**/*",
"**/.*",
"**/.*/**/*",
"**/.*/**/.*",
],
"exclude": [
"**/dist/**",
],
"compilerOptions": {
"strict": true,
"types": [
"jest-extended",
"vite/client",
"vitest/globals",
],
},
}
File renamed without changes.

0 comments on commit fa53a45

Please sign in to comment.