chore: setup typecheck scripts for each package

Signed-off-by: Dmytro Stanchiev <git@dmytros.dev>
This commit is contained in:
2026-04-28 19:37:18 -04:00
parent 79bb249603
commit bf393eacae
7 changed files with 108 additions and 18 deletions

View File

@@ -7,10 +7,12 @@
"scripts": {
"start": "bun ./src/index.ts",
"dev": "bun --watch ./src/index.ts",
"build": "bun build ./src/index.ts --target=bun --outdir=../../dist/api"
"build": "bun build ./src/index.ts --target=bun --outdir=../../dist/api",
"type:check": "bun tsgo"
},
"dependencies": {
"@marketplace-scrapers/core": "workspace:*"
"@marketplace-scrapers/core": "workspace:*",
"@typescript/native-preview": "^7.0.0-dev.20260428.1"
},
"devDependencies": {
"@types/bun": "latest"

View File

@@ -1,13 +1,34 @@
{
"compilerOptions": {
"lib": ["dom"],
"lib": ["dom", "ESNext"],
"target": "ESNext",
"module": "ESNext",
"module": "preserve",
"moduleResolution": "bundler",
"paths": {
"@/*": ["./src/*"]
},
"strict": true,
"noEmit": true
}
"noEmit": true,
// Environment setup & latest features
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
// Best practices
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
},
"include": ["./src", "./test"]
}