From 5b00952eeffe8fdff1a782121a62b11bab8dc5b9 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Fri, 8 Dec 2023 14:20:59 -0800 Subject: [PATCH 1/6] Fix CI --- .../scripts/docker-ci-entrypoint.sh | 27 ++++-- .../test-exports-cf/package.json | 3 + .../test-exports-cjs/package.json | 3 + .../test-exports-esbuild/package.json | 3 + .../test-exports-esm/package.json | 3 + .../test-exports-vercel/package.json | 3 + .../test-exports-vite/package.json | 5 +- langchain/src/cache/ioredis.ts | 90 +------------------ langchain/src/load/import_type.d.ts | 2 - libs/langchain-community/package.json | 2 +- .../scripts/create-entrypoints.js | 5 ++ .../src/load/import_constants.ts | 4 + .../src/load/import_map.ts | 4 - .../src/load/import_type.d.ts | 12 +++ libs/langchain-openai/package.json | 1 + yarn.lock | 3 +- 16 files changed, 67 insertions(+), 103 deletions(-) diff --git a/environment_tests/scripts/docker-ci-entrypoint.sh b/environment_tests/scripts/docker-ci-entrypoint.sh index a4e2d45e7d45..41f75cabdba6 100644 --- a/environment_tests/scripts/docker-ci-entrypoint.sh +++ b/environment_tests/scripts/docker-ci-entrypoint.sh @@ -10,6 +10,23 @@ shopt -s extglob # avoid copying build artifacts from the host cp -r ../package/!(node_modules|dist|dist-cjs|dist-esm|build|.next|.turbo) . +mkdir -p ./libs/langchain-core/ +mkdir -p ./libs/langchain-openai/ +mkdir -p ./libs/langchain-anthropic/ +mkdir -p ./libs/langchain-community/ +mkdir -p ./libs/langchain/ + +ls ./libs/ + +cp -r ../langchain-core ./libs/ +cp -r ../langchain-openai ./libs/ +cp -r ../langchain-anthropic ./libs/ +cp -r ../langchain-community ./libs/ +cp -r ../langchain ./libs/ + +ls ../langchain-anthropic +ls ./libs/langchain-anthropic/ + # copy cache mkdir -p ./.yarn cp -r ../root/.yarn/!(berry|cache) ./.yarn @@ -18,11 +35,11 @@ cp ../root/yarn.lock ../root/.yarnrc.yml . # Replace the workspace dependency with the local copy, and install all others # Avoid calling "yarn add ../langchain" as yarn berry does seem to hang for ~30s # before installation actually occurs -sed -i 's/"@langchain\/core": "workspace:\*"/"@langchain\/core": "..\/langchain-core"/g' package.json -sed -i 's/"@langchain\/community": "workspace:\*"/"@langchain\/community": "..\/langchain-community"/g' package.json -sed -i 's/"@langchain\/anthropic": "workspace:\*"/"@langchain\/anthropic": "..\/langchain-anthropic"/g' package.json -sed -i 's/"@langchain\/openai": "workspace:\*"/"@langchain\/openai": "..\/langchain-openai"/g' package.json -sed -i 's/"langchain": "workspace:\*"/"langchain": "..\/langchain"/g' package.json +# sed -i 's/"@langchain\/core": "workspace:\*"/"@langchain\/core": "..\/langchain-core"/g' package.json +# sed -i 's/"@langchain\/community": "workspace:\*"/"@langchain\/community": "..\/langchain-community"/g' package.json +# sed -i 's/"@langchain\/anthropic": "workspace:\*"/"@langchain\/anthropic": "..\/langchain-anthropic"/g' package.json +# sed -i 's/"@langchain\/openai": "workspace:\*"/"@langchain\/openai": "..\/langchain-openai"/g' package.json +# sed -i 's/"langchain": "workspace:\*"/"langchain": "..\/langchain"/g' package.json yarn install --no-immutable diff --git a/environment_tests/test-exports-cf/package.json b/environment_tests/test-exports-cf/package.json index fa01eb216974..cc03e832dbc1 100644 --- a/environment_tests/test-exports-cf/package.json +++ b/environment_tests/test-exports-cf/package.json @@ -1,6 +1,9 @@ { "name": "test-exports-cf", "version": "0.0.0", + "workspaces": [ + "libs/*" + ], "devDependencies": { "@cloudflare/workers-types": "^4.20230321.0", "typescript": "^5.0.3", diff --git a/environment_tests/test-exports-cjs/package.json b/environment_tests/test-exports-cjs/package.json index e9aecb14e38d..a21b1be88316 100644 --- a/environment_tests/test-exports-cjs/package.json +++ b/environment_tests/test-exports-cjs/package.json @@ -1,6 +1,9 @@ { "name": "test-exports-cjs", "version": "0.0.0", + "workspaces": [ + "libs/*" + ], "private": true, "description": "CJS Tests for the things exported by the langchain package", "main": "./index.mjs", diff --git a/environment_tests/test-exports-esbuild/package.json b/environment_tests/test-exports-esbuild/package.json index 5d456fba7335..a69293f4700e 100644 --- a/environment_tests/test-exports-esbuild/package.json +++ b/environment_tests/test-exports-esbuild/package.json @@ -1,6 +1,9 @@ { "name": "test-exports-esbuild", "version": "0.0.0", + "workspaces": [ + "libs/*" + ], "private": true, "description": "Tests for the things exported by the langchain package", "main": "./index.mjs", diff --git a/environment_tests/test-exports-esm/package.json b/environment_tests/test-exports-esm/package.json index 9eeb68a80474..ef051cee477c 100644 --- a/environment_tests/test-exports-esm/package.json +++ b/environment_tests/test-exports-esm/package.json @@ -1,6 +1,9 @@ { "name": "test-exports-esm", "version": "0.0.0", + "workspaces": [ + "libs/*" + ], "private": true, "description": "Tests for the things exported by the langchain package", "main": "./index.mjs", diff --git a/environment_tests/test-exports-vercel/package.json b/environment_tests/test-exports-vercel/package.json index dde8eb4e7128..c3adfd63ac3e 100644 --- a/environment_tests/test-exports-vercel/package.json +++ b/environment_tests/test-exports-vercel/package.json @@ -1,6 +1,9 @@ { "name": "test-exports-vercel", "version": "0.1.0", + "workspaces": [ + "libs/*" + ], "private": true, "scripts": { "dev": "next dev", diff --git a/environment_tests/test-exports-vite/package.json b/environment_tests/test-exports-vite/package.json index 2240bd9398ca..a23eb403aec3 100644 --- a/environment_tests/test-exports-vite/package.json +++ b/environment_tests/test-exports-vite/package.json @@ -1,7 +1,10 @@ { "name": "test-exports-vite", - "private": true, "version": "0.0.0", + "workspaces": [ + "libs/*" + ], + "private": true, "type": "module", "scripts": { "dev": "vite", diff --git a/langchain/src/cache/ioredis.ts b/langchain/src/cache/ioredis.ts index de95b6248490..21f664899a67 100644 --- a/langchain/src/cache/ioredis.ts +++ b/langchain/src/cache/ioredis.ts @@ -1,89 +1 @@ -import { Redis } from "ioredis"; -import { BaseCache, Generation } from "../schema/index.js"; -import { - serializeGeneration, - deserializeStoredGeneration, - getCacheKey, -} from "./base.js"; - -/** - * Cache LLM results using Redis. - * @example - * ```typescript - * const model = new ChatOpenAI({ - * cache: new RedisCache(new Redis(), { ttl: 60 }), - * }); - * - * // Invoke the model with a prompt - * const response = await model.invoke("Do something random!"); - * console.log(response); - * - * // Remember to disconnect the Redis client when done - * await redisClient.disconnect(); - * ``` - */ -export class RedisCache extends BaseCache { - protected redisClient: Redis; - - protected ttl?: number; - - constructor( - redisClient: Redis, - config?: { - ttl?: number; - } - ) { - super(); - this.redisClient = redisClient; - this.ttl = config?.ttl; - } - - /** - * Retrieves data from the Redis server using a prompt and an LLM key. If - * the data is not found, it returns null. - * @param prompt The prompt used to find the data. - * @param llmKey The LLM key used to find the data. - * @returns The corresponding data as an array of Generation objects, or null if not found. - */ - public async lookup(prompt: string, llmKey: string) { - let idx = 0; - let key = getCacheKey(prompt, llmKey, String(idx)); - let value = await this.redisClient.get(key); - const generations: Generation[] = []; - - while (value) { - const storedGeneration = JSON.parse(value); - generations.push(deserializeStoredGeneration(storedGeneration)); - idx += 1; - key = getCacheKey(prompt, llmKey, String(idx)); - value = await this.redisClient.get(key); - } - - return generations.length > 0 ? generations : null; - } - - /** - * Updates the data in the Redis server using a prompt and an LLM key. - * @param prompt The prompt used to store the data. - * @param llmKey The LLM key used to store the data. - * @param value The data to be stored, represented as an array of Generation objects. - */ - public async update(prompt: string, llmKey: string, value: Generation[]) { - for (let i = 0; i < value.length; i += 1) { - const key = getCacheKey(prompt, llmKey, String(i)); - if (this.ttl !== undefined) { - await this.redisClient.set( - key, - JSON.stringify(serializeGeneration(value[i])), - "EX", - this.ttl - ); - } else { - await this.redisClient.set( - key, - JSON.stringify(serializeGeneration(value[i])) - ); - } - } - } -} +export * from "@langchain/community/caches/ioredis"; \ No newline at end of file diff --git a/langchain/src/load/import_type.d.ts b/langchain/src/load/import_type.d.ts index 5add518536fb..050171f77ecd 100644 --- a/langchain/src/load/import_type.d.ts +++ b/langchain/src/load/import_type.d.ts @@ -521,8 +521,6 @@ export interface OptionalImportMap { export interface SecretMap { ANTHROPIC_API_KEY?: string; - AWS_ACCESS_KEY_ID?: string; - AWS_SECRET_ACCESS_KEY?: string; OPENAI_API_KEY?: string; PROMPTLAYER_API_KEY?: string; REMOTE_RETRIEVER_AUTH_BEARER?: string; diff --git a/libs/langchain-community/package.json b/libs/langchain-community/package.json index d4ffe3efcb87..4a2189b830fa 100644 --- a/libs/langchain-community/package.json +++ b/libs/langchain-community/package.json @@ -54,6 +54,7 @@ "@cloudflare/ai": "^1.0.12", "@cloudflare/workers-types": "^4.20230922.0", "@elastic/elasticsearch": "^8.4.0", + "@faker-js/faker": "^7.6.0", "@getmetal/metal-sdk": "^4.0.0", "@getzep/zep-js": "^0.9.0", "@gomomento/sdk": "^1.51.1", @@ -173,7 +174,6 @@ "@clickhouse/client": "^0.2.5", "@cloudflare/ai": "^1.0.12", "@elastic/elasticsearch": "^8.4.0", - "@faker-js/faker": "^7.6.0", "@getmetal/metal-sdk": "*", "@getzep/zep-js": "^0.9.0", "@gomomento/sdk": "^1.51.1", diff --git a/libs/langchain-community/scripts/create-entrypoints.js b/libs/langchain-community/scripts/create-entrypoints.js index 5988cd4d7ea8..6ef34f39d2a2 100644 --- a/libs/langchain-community/scripts/create-entrypoints.js +++ b/libs/langchain-community/scripts/create-entrypoints.js @@ -182,7 +182,9 @@ const deprecatedNodeOnly = []; // Therefore they are not tested in the generated test-exports-* packages. const requiresOptionalDependency = [ "tools/aws_sfn", + "tools/aws_lambda", "tools/gmail", + "agents/toolkits/aws_sfn", "callbacks/handlers/llmonitor", "embeddings/bedrock", "embeddings/cloudflare_workersai", @@ -283,6 +285,9 @@ const requiresOptionalDependency = [ "stores/message/redis", "stores/message/upstash_redis", "stores/message/xata", + // memory + "memory/motorhead_memory", + "memory/zep", ]; const updateJsonFile = (relativePath, updateFunction) => { diff --git a/libs/langchain-community/src/load/import_constants.ts b/libs/langchain-community/src/load/import_constants.ts index 9be7c339c8ef..c07f938c83f8 100644 --- a/libs/langchain-community/src/load/import_constants.ts +++ b/libs/langchain-community/src/load/import_constants.ts @@ -1,8 +1,10 @@ // Auto-generated by `scripts/create-entrypoints.js`. Do not edit manually. export const optionalImportEntrypoints = [ + "langchain_community/tools/aws_lambda", "langchain_community/tools/aws_sfn", "langchain_community/tools/gmail", + "langchain_community/agents/toolkits/aws_sfn", "langchain_community/embeddings/bedrock", "langchain_community/embeddings/cloudflare_workersai", "langchain_community/embeddings/cohere", @@ -96,4 +98,6 @@ export const optionalImportEntrypoints = [ "langchain_community/stores/message/redis", "langchain_community/stores/message/upstash_redis", "langchain_community/stores/message/xata", + "langchain_community/memory/motorhead_memory", + "langchain_community/memory/zep", ]; diff --git a/libs/langchain-community/src/load/import_map.ts b/libs/langchain-community/src/load/import_map.ts index 8c6ebf4bff67..89dacea4d86e 100644 --- a/libs/langchain-community/src/load/import_map.ts +++ b/libs/langchain-community/src/load/import_map.ts @@ -2,7 +2,6 @@ export * as load__serializable from "../load/serializable.js"; export * as tools__aiplugin from "../tools/aiplugin.js"; -export * as tools__aws_lambda from "../tools/aws_lambda.js"; export * as tools__bingserpapi from "../tools/bingserpapi.js"; export * as tools__brave_search from "../tools/brave_search.js"; export * as tools__connery from "../tools/connery.js"; @@ -18,7 +17,6 @@ export * as tools__serpapi from "../tools/serpapi.js"; export * as tools__serper from "../tools/serper.js"; export * as tools__wikipedia_query_run from "../tools/wikipedia_query_run.js"; export * as tools__wolframalpha from "../tools/wolframalpha.js"; -export * as agents__toolkits__aws_sfn from "../agents/toolkits/aws_sfn.js"; export * as agents__toolkits__base from "../agents/toolkits/base.js"; export * as agents__toolkits__connery from "../agents/toolkits/connery/index.js"; export * as embeddings__minimax from "../embeddings/minimax.js"; @@ -50,5 +48,3 @@ export * as stores__doc__base from "../stores/doc/base.js"; export * as stores__doc__in_memory from "../stores/doc/in_memory.js"; export * as stores__message__in_memory from "../stores/message/in_memory.js"; export * as memory__chat_memory from "../memory/chat_memory.js"; -export * as memory__motorhead_memory from "../memory/motorhead_memory.js"; -export * as memory__zep from "../memory/zep.js"; diff --git a/libs/langchain-community/src/load/import_type.d.ts b/libs/langchain-community/src/load/import_type.d.ts index 01637a94f0b2..352f82aa6b65 100644 --- a/libs/langchain-community/src/load/import_type.d.ts +++ b/libs/langchain-community/src/load/import_type.d.ts @@ -1,12 +1,18 @@ // Auto-generated by `scripts/create-entrypoints.js`. Do not edit manually. export interface OptionalImportMap { + "@langchain/community/tools/aws_lambda"?: + | typeof import("../tools/aws_lambda.js") + | Promise; "@langchain/community/tools/aws_sfn"?: | typeof import("../tools/aws_sfn.js") | Promise; "@langchain/community/tools/gmail"?: | typeof import("../tools/gmail/index.js") | Promise; + "@langchain/community/agents/toolkits/aws_sfn"?: + | typeof import("../agents/toolkits/aws_sfn.js") + | Promise; "@langchain/community/embeddings/bedrock"?: | typeof import("../embeddings/bedrock.js") | Promise; @@ -286,6 +292,12 @@ export interface OptionalImportMap { "@langchain/community/stores/message/xata"?: | typeof import("../stores/message/xata.js") | Promise; + "@langchain/community/memory/motorhead_memory"?: + | typeof import("../memory/motorhead_memory.js") + | Promise; + "@langchain/community/memory/zep"?: + | typeof import("../memory/zep.js") + | Promise; } export interface SecretMap { diff --git a/libs/langchain-openai/package.json b/libs/langchain-openai/package.json index 49e5f04823f3..c8a90bc1a9c4 100644 --- a/libs/langchain-openai/package.json +++ b/libs/langchain-openai/package.json @@ -37,6 +37,7 @@ "@langchain/core": "~0.0.11-rc.1", "js-tiktoken": "^1.0.7", "openai": "^4.19.0", + "zod": "^3.22.3", "zod-to-json-schema": "3.20.3" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 38bcf65b79d7..30742b8bd996 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8014,6 +8014,7 @@ __metadata: "@cloudflare/ai": ^1.0.12 "@cloudflare/workers-types": ^4.20230922.0 "@elastic/elasticsearch": ^8.4.0 + "@faker-js/faker": ^7.6.0 "@getmetal/metal-sdk": ^4.0.0 "@getzep/zep-js": ^0.9.0 "@gomomento/sdk": ^1.51.1 @@ -8138,7 +8139,6 @@ __metadata: "@clickhouse/client": ^0.2.5 "@cloudflare/ai": ^1.0.12 "@elastic/elasticsearch": ^8.4.0 - "@faker-js/faker": ^7.6.0 "@getmetal/metal-sdk": "*" "@getzep/zep-js": ^0.9.0 "@gomomento/sdk": ^1.51.1 @@ -8447,6 +8447,7 @@ __metadata: release-it: ^15.10.1 rimraf: ^5.0.1 typescript: ~5.1.6 + zod: ^3.22.3 zod-to-json-schema: 3.20.3 languageName: unknown linkType: soft From 4ce72cade0299a8b7da5a23b940d0fd5dd2c67f4 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Fri, 8 Dec 2023 14:25:04 -0800 Subject: [PATCH 2/6] Format --- langchain/src/cache/ioredis.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/src/cache/ioredis.ts b/langchain/src/cache/ioredis.ts index 21f664899a67..c2ab02d26e60 100644 --- a/langchain/src/cache/ioredis.ts +++ b/langchain/src/cache/ioredis.ts @@ -1 +1 @@ -export * from "@langchain/community/caches/ioredis"; \ No newline at end of file +export * from "@langchain/community/caches/ioredis"; From 729fbeddb27ef3cb2d072a3b56cd0832c2a2a356 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Fri, 8 Dec 2023 14:36:19 -0800 Subject: [PATCH 3/6] Fixes --- environment_tests/scripts/docker-ci-entrypoint.sh | 14 -------------- .../test-exports-vercel/tsconfig.json | 1 + 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/environment_tests/scripts/docker-ci-entrypoint.sh b/environment_tests/scripts/docker-ci-entrypoint.sh index 41f75cabdba6..2a3d29d2a40c 100644 --- a/environment_tests/scripts/docker-ci-entrypoint.sh +++ b/environment_tests/scripts/docker-ci-entrypoint.sh @@ -16,31 +16,17 @@ mkdir -p ./libs/langchain-anthropic/ mkdir -p ./libs/langchain-community/ mkdir -p ./libs/langchain/ -ls ./libs/ - cp -r ../langchain-core ./libs/ cp -r ../langchain-openai ./libs/ cp -r ../langchain-anthropic ./libs/ cp -r ../langchain-community ./libs/ cp -r ../langchain ./libs/ -ls ../langchain-anthropic -ls ./libs/langchain-anthropic/ - # copy cache mkdir -p ./.yarn cp -r ../root/.yarn/!(berry|cache) ./.yarn cp ../root/yarn.lock ../root/.yarnrc.yml . -# Replace the workspace dependency with the local copy, and install all others -# Avoid calling "yarn add ../langchain" as yarn berry does seem to hang for ~30s -# before installation actually occurs -# sed -i 's/"@langchain\/core": "workspace:\*"/"@langchain\/core": "..\/langchain-core"/g' package.json -# sed -i 's/"@langchain\/community": "workspace:\*"/"@langchain\/community": "..\/langchain-community"/g' package.json -# sed -i 's/"@langchain\/anthropic": "workspace:\*"/"@langchain\/anthropic": "..\/langchain-anthropic"/g' package.json -# sed -i 's/"@langchain\/openai": "workspace:\*"/"@langchain\/openai": "..\/langchain-openai"/g' package.json -# sed -i 's/"langchain": "workspace:\*"/"langchain": "..\/langchain"/g' package.json - yarn install --no-immutable # Check the build command completes successfully diff --git a/environment_tests/test-exports-vercel/tsconfig.json b/environment_tests/test-exports-vercel/tsconfig.json index b4d71bd310b5..3ea0b7f2cc00 100644 --- a/environment_tests/test-exports-vercel/tsconfig.json +++ b/environment_tests/test-exports-vercel/tsconfig.json @@ -6,6 +6,7 @@ "skipLibCheck": true, "strict": true, "forceConsistentCasingInFileNames": true, + "strictPropertyInitialization": false, "noEmit": true, "esModuleInterop": true, "module": "esnext", From 9b2d25108b97ed78c5e2c44191e804232e0b2cee Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Fri, 8 Dec 2023 15:31:31 -0800 Subject: [PATCH 4/6] Fix --- environment_tests/test-exports-vercel/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment_tests/test-exports-vercel/tsconfig.json b/environment_tests/test-exports-vercel/tsconfig.json index 3ea0b7f2cc00..7b2e51431cd9 100644 --- a/environment_tests/test-exports-vercel/tsconfig.json +++ b/environment_tests/test-exports-vercel/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "ES6", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, From 829fc9c3ca01d183a83c9fea0efb7450d965a718 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Fri, 8 Dec 2023 15:55:35 -0800 Subject: [PATCH 5/6] Another try --- docker-compose.yml | 18 ++++++++++++++++++ .../test-exports-vercel/tsconfig.json | 8 +++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index d07b5cfb3a1b..96953fb115ce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,6 +2,9 @@ version: "3" services: test-exports-esbuild: image: node:18 + environment: + PUPPETEER_SKIP_DOWNLOAD: "true" + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true" working_dir: /app volumes: - ./yarn.lock:/root/yarn.lock @@ -17,6 +20,9 @@ services: command: bash /scripts/docker-ci-entrypoint.sh test-exports-esm: image: node:18 + environment: + PUPPETEER_SKIP_DOWNLOAD: "true" + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true" working_dir: /app volumes: - ./yarn.lock:/root/yarn.lock @@ -32,6 +38,9 @@ services: command: bash /scripts/docker-ci-entrypoint.sh test-exports-cjs: image: node:18 + environment: + PUPPETEER_SKIP_DOWNLOAD: "true" + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true" working_dir: /app volumes: - ./yarn.lock:/root/yarn.lock @@ -47,6 +56,9 @@ services: command: bash /scripts/docker-ci-entrypoint.sh test-exports-cf: image: node:18 + environment: + PUPPETEER_SKIP_DOWNLOAD: "true" + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true" working_dir: /app volumes: - ./yarn.lock:/root/yarn.lock @@ -62,6 +74,9 @@ services: command: bash /scripts/docker-ci-entrypoint.sh test-exports-vercel: image: node:18 + environment: + PUPPETEER_SKIP_DOWNLOAD: "true" + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true" working_dir: /app volumes: - ./yarn.lock:/root/yarn.lock @@ -77,6 +92,9 @@ services: command: bash /scripts/docker-ci-entrypoint.sh test-exports-vite: image: node:18 + environment: + PUPPETEER_SKIP_DOWNLOAD: "true" + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "true" working_dir: /app volumes: - ./yarn.lock:/root/yarn.lock diff --git a/environment_tests/test-exports-vercel/tsconfig.json b/environment_tests/test-exports-vercel/tsconfig.json index 7b2e51431cd9..7adedb2fccb3 100644 --- a/environment_tests/test-exports-vercel/tsconfig.json +++ b/environment_tests/test-exports-vercel/tsconfig.json @@ -1,12 +1,11 @@ { "compilerOptions": { - "target": "ES6", + "target": "es5", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, "forceConsistentCasingInFileNames": true, - "strictPropertyInitialization": false, "noEmit": true, "esModuleInterop": true, "module": "esnext", @@ -21,5 +20,8 @@ } }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "exclude": [ + "node_modules", + "lib" + ] } From 437beda6a020833dbfeb1127a2aff9625cd55328 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Fri, 8 Dec 2023 15:58:00 -0800 Subject: [PATCH 6/6] Fix typo --- environment_tests/test-exports-vercel/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment_tests/test-exports-vercel/tsconfig.json b/environment_tests/test-exports-vercel/tsconfig.json index 7adedb2fccb3..01af0ac31dac 100644 --- a/environment_tests/test-exports-vercel/tsconfig.json +++ b/environment_tests/test-exports-vercel/tsconfig.json @@ -22,6 +22,6 @@ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "exclude": [ "node_modules", - "lib" + "libs" ] }