Skip to content

Commit

Permalink
Make tests run
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Jul 11, 2024
1 parent 74df800 commit 848c5d2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*.bz2
*.zip

.tsimp

# Created by https://www.toptal.com/developers/gitignore/api/node
# Edit at https://www.toptal.com/developers/gitignore?templates=node

Expand Down
Binary file modified bun.lockb
Binary file not shown.
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,29 @@
"version": "1.4.0",
"scripts": {
"test": "ava",
"buildja": "node .\\src\\convertWikipedia.js ja 2022-12-01"
"start": "bun run src/index.ts"
},
"dependencies": {
"pinyin-pro": "^3.18.5",
"tsimp": "^2.0.11",
"yomichan-dict-builder": "^1.3.2"
},
"type": "module",
"devDependencies": {
"ava": "^6.0.1",
"@types/bun": "latest"
"@ava/typescript": "^5.0.0",
"@types/bun": "latest",
"ava": "^6.0.1"
},
"name": "wikipedia-yomitan",
"peerDependencies": {
"typescript": "^5.0.0"
},
"ava": {
"extensions": {
"ts": "module"
},
"nodeArguments": [
"--import=tsimp"
]
}
}
18 changes: 2 additions & 16 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
{
"compilerOptions": {
// Enable latest features
"lib": ["ESNext", "DOM"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,

// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,

// Best practices
"moduleResolution": "node",
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,

// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
"noFallthroughCasesInSwitch": true
}
}

0 comments on commit 848c5d2

Please sign in to comment.