diff --git a/libs/langchain-scripts/package.json b/libs/langchain-scripts/package.json index 0bcae90d3870..da50ce131cca 100644 --- a/libs/langchain-scripts/package.json +++ b/libs/langchain-scripts/package.json @@ -19,7 +19,8 @@ }, "scripts": { "build": "yarn turbo:command build:internal --filter=@langchain/scripts", - "build:internal": "rm -rf ./build_new && tsc --project ./tsconfig.build.json && yarn build:generated", + "build:internal": "tsc --project ./tsconfig.build.json && yarn move:artifacts && yarn build:generated", + "move:artifacts": "mkdir -p ./dist && mv ./dist_build/* ./dist/", "build:generated": "node bin/build_v2.js --create-entrypoints --pre --tree-shaking", "build:turbo": "yarn turbo:command build --filter=@langchain/scripts", "lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",