Skip to content

Commit

Permalink
create-langchain-integration[minor]: Update copied files (#4209)
Browse files Browse the repository at this point in the history
* create-langchain-integration[minor]: Update copied files

* chore: lint files

* chore: lint files
  • Loading branch information
bracesproul authored Jan 30, 2024
1 parent 67e54c7 commit bfbc0a2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 216 deletions.
198 changes: 0 additions & 198 deletions libs/create-langchain-integration/helpers/default_file_contents.ts

This file was deleted.

17 changes: 0 additions & 17 deletions libs/create-langchain-integration/helpers/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ import fs from "fs/promises";
import os from "os";

import { copy } from "./copy";
import {
DEFAULT_ESLINTRC,
DEFAULT_README,
DEFAULT_RELEASE_IT,
DEFAULT_PRETTIERRC,
} from "./default_file_contents";

/**
* Install a internal template to a given `root` directory.
Expand Down Expand Up @@ -46,16 +40,5 @@ export async function installTemplate({ appName, root }: any) {
["node_modules", "dist", ".yarn"].join("\n") + os.EOL
);

await fs.writeFile(path.join(root, ".eslintrc.cjs"), DEFAULT_ESLINTRC);
await fs.writeFile(path.join(root, "README.md"), DEFAULT_README);
await fs.writeFile(
path.join(root, ".release-it.json"),
`${JSON.stringify(DEFAULT_RELEASE_IT)}\n`
);
await fs.writeFile(
path.join(root, ".prettierrc"),
`${JSON.stringify(DEFAULT_PRETTIERRC)}\n`
);

console.log("\nDone!\n");
}
10 changes: 10 additions & 0 deletions libs/create-langchain-integration/template/.release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"github": {
"release": true,
"autoGenerate": true,
"tokenRef": "GITHUB_TOKEN_RELEASE"
},
"npm": {
"versionArgs": ["--workspaces-update=false"]
}
}
2 changes: 1 addition & 1 deletion libs/create-langchain-integration/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@jest/globals": "^29.5.0",
"@swc/core": "^1.3.90",
"@swc/jest": "^0.2.29",
"@langchain/scripts": "^0.0.2",
"@langchain/scripts": "~0.0",
"@tsconfig/recommended": "^1.0.3",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
Expand Down

0 comments on commit bfbc0a2

Please sign in to comment.