Skip to content

Commit

Permalink
fix(npm script): lint fix doesn't fix fixable errors (#3451)
Browse files Browse the repository at this point in the history
* fix(npm script): lint fix doesn't fix fixable errors

* Update langchain-core lint scripts

* Update langchain-openai lint scripts

* Update langchain-anthropic lint scripts

---------

Co-authored-by: Brace Sproul <[email protected]>
  • Loading branch information
chasemcdo and bracesproul authored Nov 30, 2023
1 parent 993ce7a commit 9d955b8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 4 additions & 2 deletions langchain-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rimraf dist-cjs",
"build:watch": "node scripts/create-entrypoints.js && tsc --outDir dist/ --watch",
"build:scripts": "node scripts/create-entrypoints.js && node scripts/check-tree-shaking.js",
"lint": "NODE_OPTIONS=--max-old-space-size=4096 eslint src && dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
"lint:fix": "yarn lint --fix",
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint src",
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
"lint": "yarn lint:eslint && yarn lint:dpdm",
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
"clean": "rimraf dist/ && NODE_OPTIONS=--max-old-space-size=4096 node scripts/create-entrypoints.js pre",
"prepack": "yarn build",
"release": "release-it --only-version --config .release-it.json",
Expand Down
6 changes: 4 additions & 2 deletions langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,10 @@
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rimraf dist-cjs",
"build:watch": "node scripts/create-entrypoints.js && tsc --outDir dist/ --watch",
"build:scripts": "node scripts/create-entrypoints.js && node scripts/check-tree-shaking.js",
"lint": "NODE_OPTIONS=--max-old-space-size=4096 eslint src && dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
"lint:fix": "yarn lint --fix",
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint src",
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
"lint": "yarn lint:eslint && yarn lint:dpdm",
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
"precommit": "lint-staged",
"clean": "rimraf dist/ && NODE_OPTIONS=--max-old-space-size=4096 node scripts/create-entrypoints.js pre",
"prepack": "yarn build",
Expand Down
6 changes: 4 additions & 2 deletions libs/langchain-anthropic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rimraf dist-cjs",
"build:watch": "node scripts/create-entrypoints.js && tsc --outDir dist/ --watch",
"build:scripts": "node scripts/create-entrypoints.js && node scripts/check-tree-shaking.js",
"lint": "NODE_OPTIONS=--max-old-space-size=4096 eslint src && dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
"lint:fix": "yarn lint --fix",
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint src",
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
"lint": "yarn lint:eslint && yarn lint:dpdm",
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
"clean": "rimraf dist/ && NODE_OPTIONS=--max-old-space-size=4096 node scripts/create-entrypoints.js pre",
"prepack": "yarn build",
"release": "release-it --only-version --config .release-it.json",
Expand Down
6 changes: 4 additions & 2 deletions libs/langchain-openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && node scripts/move-cjs-to-dist.js && rimraf dist-cjs",
"build:watch": "node scripts/create-entrypoints.js && tsc --outDir dist/ --watch",
"build:scripts": "node scripts/create-entrypoints.js && node scripts/check-tree-shaking.js",
"lint": "NODE_OPTIONS=--max-old-space-size=4096 eslint src && dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
"lint:fix": "yarn lint --fix",
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint src",
"lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",
"lint": "yarn lint:eslint && yarn lint:dpdm",
"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
"clean": "rimraf dist/ && NODE_OPTIONS=--max-old-space-size=4096 node scripts/create-entrypoints.js pre",
"prepack": "yarn build",
"release": "release-it --only-version --config .release-it.json",
Expand Down

0 comments on commit 9d955b8

Please sign in to comment.