Skip to content

Commit

Permalink
chore(adding tsconfig files)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddsriv committed Feb 29, 2024
1 parent 9e98b5c commit 0eb3b94
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ec2-metadata-service/src/MetadataService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
9 changes: 9 additions & 0 deletions packages/ec2-metadata-service/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist-cjs",
"rootDir": "src"
},
"extends": "../../tsconfig.cjs.json",
"include": ["src/"]
}
10 changes: 10 additions & 0 deletions packages/ec2-metadata-service/tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"lib": [],
"outDir": "dist-es",
"rootDir": "src"
},
"extends": "../../tsconfig.es.json",
"include": ["src/"]
}
9 changes: 9 additions & 0 deletions packages/ec2-metadata-service/tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": ".",
"declarationDir": "dist-types",
"rootDir": "src"
},
"extends": "../../tsconfig.types.json",
"include": ["src/"]
}

0 comments on commit 0eb3b94

Please sign in to comment.