Skip to content

Commit

Permalink
chore: tsconfig cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bconnorwhite committed Oct 3, 2023
1 parent 95e6d92 commit 1caf024
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 60 deletions.
33 changes: 0 additions & 33 deletions TSCONFIG.md

This file was deleted.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
"scripts": {
"build": "bun build:source && bun build:types",
"build:source": "swc source --config-file .swcrc --copy-files --delete-dir-on-start --out-dir .auto/build",
"build:types": "tsc --emitDeclarationOnly --project tsconfig.build.json",
"build:types": "tsc --emitDeclarationOnly --project source/tsconfig.json",
"lint": "eslint source",
"test": "TZ=UTC NODE_OPTIONS=\"--experimental-vm-modules --no-warnings\" jest",
"typecheck": "tsc --noEmit --project tsconfig.build.json",
"typecheck": "tsc --noEmit --project source/tsconfig.json",
"watch:source": "swc source --config-file .swcrc --copy-files --out-dir .auto/build --watch",
"watch:types": "tsc --emitDeclarationOnly --watch --project tsconfig.build.json",
"watch:types": "tsc --emitDeclarationOnly --watch --project source/tsconfig.json",
"prepack": "bun run build"
},
"dependencies": {
Expand All @@ -52,8 +52,8 @@
"yaml": "^2.3.2"
},
"devDependencies": {
"@autossey/eslint-config": "^0.1.0",
"@autossey/tsconfig": "^1.0.0",
"@autossey/eslint-config": "^0.2.0",
"@autossey/tsconfig": "^1.1.1",
"@jest/globals": "^29.7.0",
"@swc/core": "^1.3.89",
"@swc/jest": "^0.2.29",
Expand Down
13 changes: 12 additions & 1 deletion source/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{
"extends": "../tsconfig.base.json"
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../tsconfig.base.json",
"compilerOptions": {
"outDir": "../.auto/build",
"rootDirs": [
"."
]
},
"files": [
"./index.tsx",
"./jsx-runtime.ts"
]
}
8 changes: 2 additions & 6 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"types": [
"bun-types"
]
}
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "../tsconfig.base.json"
}
1 change: 1 addition & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"jsx": "react",
"jsxFactory": "Prxmpt.createElement",
"jsxFragmentFactory": "Prxmpt.Fragment",
// Prevent conflicts with @types/react
"types": []
}
}
15 changes: 0 additions & 15 deletions tsconfig.build.json

This file was deleted.

0 comments on commit 1caf024

Please sign in to comment.