-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2376 from langchain-ai/dqbd/js-0.0.23-lc_build
fix(sdk-js): move to `@langchain/scripts` for building, bump to 0.0.23
- Loading branch information
Showing
7 changed files
with
649 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
/docs | ||
/*.tgz | ||
/*.tar | ||
## GENERATED create-entrypoints.js | ||
/client.cjs | ||
/client.js | ||
/client.d.ts | ||
/client.d.cts | ||
/index.cjs | ||
/index.js | ||
/index.d.ts | ||
/index.d.cts | ||
## END GENERATED create-entrypoints.js | ||
index.cjs | ||
index.js | ||
index.d.ts | ||
index.d.cts | ||
client.cjs | ||
client.js | ||
client.d.ts | ||
client.d.cts | ||
node_modules | ||
dist | ||
.yarn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { resolve, dirname } from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
|
||
/** | ||
* @param {string} relativePath | ||
* @returns {string} | ||
*/ | ||
function abs(relativePath) { | ||
return resolve(dirname(fileURLToPath(import.meta.url)), relativePath); | ||
} | ||
|
||
export const config = { | ||
internals: [], | ||
entrypoints: { index: "index", client: "client" }, | ||
tsConfigPath: resolve("./tsconfig.json"), | ||
cjsSource: "./dist-cjs", | ||
cjsDestination: "./dist", | ||
abs, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
{ | ||
"name": "@langchain/langgraph-sdk", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "Client library for interacting with the LangGraph API", | ||
"type": "module", | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"clean": "rm -rf dist/ && node scripts/create-entrypoints.js clean", | ||
"build": "yarn clean && yarn build:esm && yarn build:cjs && node scripts/create-entrypoints.js", | ||
"build:esm": "rm -f src/package.json && tsc --outDir dist/ && rm -rf dist/tests dist/**/tests", | ||
"build:cjs": "echo '{}' > src/package.json && tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rm -r dist-cjs src/package.json", | ||
"clean": "rm -rf dist/ dist-cjs/", | ||
"build": "yarn clean && yarn lc_build --create-entrypoints --pre --tree-shaking", | ||
"prepublish": "yarn run build", | ||
"format": "prettier --write src", | ||
"lint": "prettier --check src && tsc --noEmit" | ||
|
@@ -22,6 +20,7 @@ | |
"uuid": "^9.0.0" | ||
}, | ||
"devDependencies": { | ||
"@langchain/scripts": "^0.1.4", | ||
"@tsconfig/recommended": "^1.0.2", | ||
"@types/node": "^20.12.12", | ||
"@types/uuid": "^9.0.1", | ||
|
@@ -54,13 +53,13 @@ | |
}, | ||
"files": [ | ||
"dist/", | ||
"client.cjs", | ||
"client.js", | ||
"client.d.ts", | ||
"client.d.cts", | ||
"index.cjs", | ||
"index.js", | ||
"index.d.ts", | ||
"index.d.cts" | ||
"index.d.cts", | ||
"client.cjs", | ||
"client.js", | ||
"client.d.ts", | ||
"client.d.cts" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.