Skip to content

Commit

Permalink
add tsconfig, scripts, tsup config
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenmatt committed Dec 22, 2023
1 parent 1002f40 commit 39643a7
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
19 changes: 18 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@
"author": "Matt Holden",
"license": "MIT",
"private": false,
"main": "dist/index.js",
"files": [
"dist"
],
"scripts": {
"build": "tsup --dts",
"test": "jest",
"publish": "np"
},
"tsup": {
"entry": [
"src/index.ts"
],
"sourcemap": true,
"clean": true
},
"dependencies": {
"zod": "^3.22.4",
"zod-to-json-schema": "^3.22.3",
Expand All @@ -15,6 +31,7 @@
},
"devDependencies": {
"openai": "^4.24.1",
"tsup": "^8.0.1"
"tsup": "^8.0.1",
"typescript": "^5.3.3"
}
}
19 changes: 19 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "esnext",
"target": "es2016",
"lib": ["dom", "esnext"],
"rootDir": "./src",
"moduleResolution": "node",
"declaration": true,
"sourceMap": true,
"strict": true,
"noImplicitReturns": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowJs": true
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,11 @@ tsup@^8.0.1:
sucrase "^3.20.3"
tree-kill "^1.2.2"

typescript@^5.3.3:
version "5.3.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37"
integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==

undici-types@~5.26.4:
version "5.26.5"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
Expand Down

0 comments on commit 39643a7

Please sign in to comment.