File tree 5 files changed +43
-17
lines changed 5 files changed +43
-17
lines changed Original file line number Diff line number Diff line change 37
37
"test:int" : " NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\\ .int\\ .test.ts --testTimeout 100000 --maxWorkers=50%" ,
38
38
"format" : " prettier --write \" src\" " ,
39
39
"format:check" : " prettier --check \" src\" " ,
40
- "create:integration:doc" : " node dist/cli/docs/index.js"
40
+ "create:integration:doc" : " node dist/cli/docs/index.js" ,
41
+ "check:types" : " tsc --noEmit"
41
42
},
42
43
"author" : " LangChain" ,
43
44
"license" : " MIT" ,
59
60
"@jest/globals" : " ^29.5.0" ,
60
61
"@swc/core" : " ^1.3.90" ,
61
62
"@swc/jest" : " ^0.2.29" ,
62
- "@tsconfig/recommended" : " ^1.0.3 " ,
63
+ "@tsconfig/recommended" : " ^1.0.8 " ,
63
64
"@types/lodash" : " ^4" ,
64
65
"@typescript-eslint/eslint-plugin" : " ^6.12.0" ,
65
66
"@typescript-eslint/parser" : " ^6.12.0" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " @tsconfig/recommended" ,
2
+ "extends" : " @tsconfig/recommended/tsconfig.json " ,
3
3
"compilerOptions" : {
4
4
"outDir" : " ../dist" ,
5
5
"rootDir" : " ./src" ,
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from "tsup" ;
2
+ export default defineConfig ( {
3
+ // Entry points tailored for langchain-scripts package
4
+ entry : [
5
+ "src/index.ts" ,
6
+ "src/build/index.ts" ,
7
+ "src/migrations/index.ts" ,
8
+ "src/check_broken_links.ts" ,
9
+ ] ,
10
+ // Output both ESM and CJS formats
11
+ format : [ "esm" , "cjs" ] ,
12
+ // Generate declaration files
13
+ dts : true ,
14
+ // Enable code splitting
15
+ splitting : true ,
16
+ // Generate sourcemaps
17
+ sourcemap : true ,
18
+ // Clean output directory before build
19
+ clean : true ,
20
+ // Specify output directory
21
+ outDir : "dist" ,
22
+ // Set output extension based on format
23
+ outExtension ( { format } ) {
24
+ return {
25
+ js : format === "esm" ? ".js" : ".cjs" ,
26
+ } ;
27
+ } ,
28
+ // Ensure all external dependencies are properly excluded from the bundle
29
+ // These will be taken from package.json dependencies/peerDependencies
30
+ external : [ ] ,
31
+ } ) ;
Original file line number Diff line number Diff line change @@ -8552,7 +8552,7 @@ __metadata:
8552
8552
"@rollup/wasm-node": ^4.19.0
8553
8553
"@swc/core": ^1.3.90
8554
8554
"@swc/jest": ^0.2.29
8555
- "@tsconfig/recommended": ^1.0.3
8555
+ "@tsconfig/recommended": ^1.0.8
8556
8556
"@types/lodash": ^4
8557
8557
"@typescript-eslint/eslint-plugin": ^6.12.0
8558
8558
"@typescript-eslint/parser": ^6.12.0
@@ -12378,6 +12378,13 @@ __metadata:
12378
12378
languageName: node
12379
12379
linkType: hard
12380
12380
12381
+ "@tsconfig/recommended@npm:^1.0.8":
12382
+ version: 1.0.8
12383
+ resolution: "@tsconfig/recommended@npm:1.0.8"
12384
+ checksum: 042c543554520359a8f21ed3a18c0c23e5deee1cea3acd8d407892634354a322d42c2e378f4b3b4c9fe391f61a5701cd4e628d5b4cc60f9f17dfb817f3d46a7a
12385
+ languageName: node
12386
+ linkType: hard
12387
+
12381
12388
"@types/aws-lambda@npm:^8.10.83":
12382
12389
version: 8.10.119
12383
12390
resolution: "@types/aws-lambda@npm:8.10.119"
You can’t perform that action at this time.
0 commit comments