From 0eb3b947ee97295236265556970ebb47cfbad8a3 Mon Sep 17 00:00:00 2001 From: siddsriv Date: Thu, 29 Feb 2024 17:53:45 +0000 Subject: [PATCH] chore(adding tsconfig files) --- .../ec2-metadata-service/src/MetadataService.spec.ts | 4 ++-- packages/ec2-metadata-service/tsconfig.cjs.json | 9 +++++++++ packages/ec2-metadata-service/tsconfig.es.json | 10 ++++++++++ packages/ec2-metadata-service/tsconfig.types.json | 9 +++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 packages/ec2-metadata-service/tsconfig.cjs.json create mode 100644 packages/ec2-metadata-service/tsconfig.es.json create mode 100644 packages/ec2-metadata-service/tsconfig.types.json diff --git a/packages/ec2-metadata-service/src/MetadataService.spec.ts b/packages/ec2-metadata-service/src/MetadataService.spec.ts index 20dc05d2c8923..73f43fd32e992 100644 --- a/packages/ec2-metadata-service/src/MetadataService.spec.ts +++ b/packages/ec2-metadata-service/src/MetadataService.spec.ts @@ -14,8 +14,8 @@ describe("MetadataService", () => { }); it("should successfully make a request to fetch the metadata token and return it", async () => { - const response = await metadataService.fetchMetadataToken(); - expect(response).toEqual({}); + const token = await metadataService.fetchMetadataToken(); + expect(token).toEqual({}); }); it("should successfully make a request with token and return response body", async () => { diff --git a/packages/ec2-metadata-service/tsconfig.cjs.json b/packages/ec2-metadata-service/tsconfig.cjs.json new file mode 100644 index 0000000000000..96198be81644a --- /dev/null +++ b/packages/ec2-metadata-service/tsconfig.cjs.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "outDir": "dist-cjs", + "rootDir": "src" + }, + "extends": "../../tsconfig.cjs.json", + "include": ["src/"] +} diff --git a/packages/ec2-metadata-service/tsconfig.es.json b/packages/ec2-metadata-service/tsconfig.es.json new file mode 100644 index 0000000000000..7f162b266e26c --- /dev/null +++ b/packages/ec2-metadata-service/tsconfig.es.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "lib": [], + "outDir": "dist-es", + "rootDir": "src" + }, + "extends": "../../tsconfig.es.json", + "include": ["src/"] +} diff --git a/packages/ec2-metadata-service/tsconfig.types.json b/packages/ec2-metadata-service/tsconfig.types.json new file mode 100644 index 0000000000000..6cdf9f52ea065 --- /dev/null +++ b/packages/ec2-metadata-service/tsconfig.types.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "declarationDir": "dist-types", + "rootDir": "src" + }, + "extends": "../../tsconfig.types.json", + "include": ["src/"] +}