Skip to content

Commit

Permalink
fix: fix typing generation
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Jan 23, 2025
1 parent c43696f commit ab8e9ac
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"build": "node esbuild.js",
"postbuild": "npm run build:types",
"prepare": "npm run build",
"build:types": "tsc --emitDeclarationOnly --outFile ./dist/types.d.ts --project tsconfig.json"
"build:types": "tsc --emitDeclarationOnly --project ./tsconfig.json --declaration --outDir dist"
},
"types": "dist/types.d.ts",
"types": "dist/index.d.ts",
"author": "",
"license": "BSD-3-Clause",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { McpxOpenAI } from './openai';
export { McpxOpenAI } from './openai.ts';
4 changes: 2 additions & 2 deletions src/openai.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ChatCompletion, ChatCompletionCreateParamsNonStreaming } from 'openai/resources';
import type { ChatCompletion, ChatCompletionCreateParamsNonStreaming } from 'openai/resources/index.js';
import { Session, type SessionOptions } from '@dylibso/mcpx';
import type { RequestOptions } from 'openai/core';
import pino, { Logger } from 'pino';
import { pino, Logger } from 'pino';
import OpenAI from 'openai';

export interface BaseMcpxOpenAIOptions {
Expand Down
25 changes: 14 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"lib": ["es2020"],
"declaration": true,
"outDir": "./dist",
"allowImportingTsExtensions": true,
"target": "ES2022",
"module": "Node16",
"moduleResolution": "Node16",
"outDir": "./build",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"resolveJsonModule": true
"resolveJsonModule": true,
"forceConsistentCasingInFileNames": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"dist"
]
}

0 comments on commit ab8e9ac

Please sign in to comment.