Skip to content

Commit 2acaf53

Browse files
committed
fix build
1 parent 28c5de4 commit 2acaf53

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
"build/main",
7474
"build/module",
7575
"!**/*.spec.*",
76+
"!**/*.test.*",
77+
"!**/test/*",
7678
"!**/*.json",
7779
"CHANGELOG.md",
7880
"LICENSE",

src/helpers/__tests__/openAi.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { createPromptConfigurationFixture } from '../../../test/__fixtures__/promptConfiguration'
2-
import { createPromptMessageFixture } from '../../../test/__fixtures__/promptMessage'
3-
import { createPromptToolFixture } from '../../../test/__fixtures__/promptTool'
1+
import { createPromptConfigurationFixture } from '../../test/__fixtures__/promptConfiguration'
2+
import { createPromptMessageFixture } from '../../test/__fixtures__/promptMessage'
3+
import { createPromptToolFixture } from '../../test/__fixtures__/promptTool'
44
import { PromptMessageRoleEnum, PromptTool } from '../../types'
55
import { mapMessagesToOpenAI, mapPromptToOpenAIConfig, mapToolChoiceToOpenAI } from '../openAi'
66

test/__fixtures__/promptConfiguration.ts renamed to src/test/__fixtures__/promptConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PromptConfiguration } from '../../src'
1+
import { PromptConfiguration } from '../../types'
22

33
import { createPromptMessageFixture } from './promptMessage'
44

test/__fixtures__/promptMessage.ts renamed to src/test/__fixtures__/promptMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PromptMessage, PromptMessageRoleEnum } from '../../src'
1+
import { PromptMessage, PromptMessageRoleEnum } from '../../types'
22

33
export const createPromptMessageFixture = (overrides: Partial<PromptMessage> = {}): PromptMessage => ({
44
content: 'Hello world',

test/__fixtures__/promptTool.ts renamed to src/test/__fixtures__/promptTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PromptTool } from '../../src'
1+
import { PromptTool } from '../../types'
22

33
export const createPromptToolFixture = (overrides: Partial<PromptTool> = {}): PromptTool => ({
44
toolId: 'toolId',

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"incremental": true,
44
"target": "es2017",
55
"outDir": "build/main",
6-
"rootDir": "./",
6+
"rootDir": "src",
77
"moduleResolution": "node",
88
"module": "commonjs",
99
"declaration": true,
@@ -29,7 +29,7 @@
2929
},
3030
"include": [
3131
"src/**/*.ts",
32-
"test/**/*.ts"
32+
"src/test/**/*.ts"
3333
],
3434
"exclude": [
3535
"node_modules/**"

0 commit comments

Comments
 (0)