Skip to content

Commit

Permalink
chore (config): Use ts-library.json tsconfig for no-UI libs. (#4182)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaper authored Dec 21, 2024
1 parent 9de21af commit 5ed5e45
Show file tree
Hide file tree
Showing 22 changed files with 72 additions and 137 deletions.
22 changes: 22 additions & 0 deletions .changeset/four-lemons-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
'@ai-sdk/openai-compatible': patch
'@ai-sdk/amazon-bedrock': patch
'@ai-sdk/provider-utils': patch
'@ai-sdk/google-vertex': patch
'@ai-sdk/togetherai': patch
'@ai-sdk/anthropic': patch
'@ai-sdk/deepinfra': patch
'@ai-sdk/fireworks': patch
'@ai-sdk/provider': patch
'@ai-sdk/codemod': patch
'@ai-sdk/mistral': patch
'@ai-sdk/cohere': patch
'@ai-sdk/google': patch
'@ai-sdk/openai': patch
'@ai-sdk/azure': patch
'@ai-sdk/swarm': patch
'@ai-sdk/groq': patch
'@ai-sdk/xai': patch
---

chore (config): Use ts-library.json tsconfig for no-UI libs.
8 changes: 2 additions & 6 deletions packages/amazon-bedrock/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/anthropic/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/azure/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/codemod/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/cohere/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/deepinfra/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/fireworks/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/google-vertex/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/google/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/groq/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/mistral/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/openai-compatible/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/openai/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/provider-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/provider/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/swarm/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/togetherai/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
8 changes: 2 additions & 6 deletions packages/xai/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"extends": "./node_modules/@vercel/ai-tsconfig/react-library.json",
"compilerOptions": {
"target": "ES2018",
"stripInternal": true
},
"extends": "./node_modules/@vercel/ai-tsconfig/ts-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["*/dist", "dist", "build", "node_modules"]
}
19 changes: 0 additions & 19 deletions tools/tsconfig/nextjs.json

This file was deleted.

10 changes: 0 additions & 10 deletions tools/tsconfig/node14.json

This file was deleted.

14 changes: 14 additions & 0 deletions tools/tsconfig/ts-library.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "TypeScript Library",
"extends": "./base.json",
"compilerOptions": {
"lib": [
"dom",
"ES2018"
],
"module": "ESNext",
"target": "ES2018",
"stripInternal": true
},
}

0 comments on commit 5ed5e45

Please sign in to comment.