add tsconfig and update path (#2401)

This commit is contained in:
Dylan Conway
2023-03-15 15:18:31 -07:00
committed by GitHub
parent ac970146b4
commit a4741f6fe1
2 changed files with 13 additions and 1 deletions

View File

@@ -61,7 +61,7 @@ it("import.meta.resolve", async () => {
expect(
// optional second param can be any path, including a dir
await import.meta.resolve("./bun.js/resolve.test.js", join(import.meta.path, "../")),
await import.meta.resolve("./resolve/resolve.test.js", join(import.meta.path, "../")),
).toBe(import.meta.path);
// can be a package path

View File

@@ -0,0 +1,12 @@
{
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"paths": {
"foo/bar": ["baz.js"],
"@faasjs/*": ["*.js"]
},
"baseUrl": "."
},
}