Skip to content

Commit

Permalink
add recommended tsconfig to @arktype/util
Browse files Browse the repository at this point in the history
  • Loading branch information
ssalbdivad committed May 17, 2024
1 parent 609a431 commit d9da6b4
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 17 deletions.
11 changes: 8 additions & 3 deletions ark/util/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arktype/util",
"version": "0.0.42",
"version": "0.0.43",
"author": {
"name": "David Blass",
"email": "[email protected]",
Expand All @@ -11,10 +11,15 @@
"types": "./out/api.d.ts",
"exports": {
".": "./out/api.js",
"./internal/*": "./out/*"
"./internal/*": "./out/*",
"./tsconfig": "./tsconfig.base.json",
"./tsconfig.json": "./tsconfig.base.json",
"./tsconfig.base": "./tsconfig.base.json",
"./tsconfig.base.json": "./tsconfig.base.json"
},
"files": [
"out"
"out",
"tsconfig.base.json"
],
"scripts": {
"build": "tsx ../repo/build.ts",
Expand Down
17 changes: 17 additions & 0 deletions ark/util/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"module": "NodeNext",
"target": "ES2022",
"moduleResolution": "NodeNext",
"lib": ["ESNext"],
"noEmit": true,
"skipLibCheck": true,
"strict": true,
"declaration": true,
"verbatimModuleSyntax": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"exactOptionalPropertyTypes": true,
"stripInternal": true
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"arktype": "workspace:*",
"@arktype/attest": "workspace:*",
"@arktype/repo": "workspace:*",
"@arktype/util": "workspace:*",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.1",
"@types/node": "20.12.12",
Expand Down
15 changes: 1 addition & 14 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
{
"extends": "./ark/util/tsconfig.base.json",
"compilerOptions": {
"module": "NodeNext",
"target": "ES2022",
"moduleResolution": "NodeNext",
"lib": ["ESNext"],
"noEmit": true,
"skipLibCheck": true,
"strict": true,
"declaration": true,
"verbatimModuleSyntax": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"stripInternal": true,
// should be off by default, but here as a convenience to toggle
// "noErrorTruncation": true,
// "isolatedDeclarations": true,
Expand Down

0 comments on commit d9da6b4

Please sign in to comment.