diff --git a/package.json b/package.json index ab0f50e5f3..71612cf6eb 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "dependencies": { + "bun-types": "^0.1.5", "mitata": "^0.1.3", "peechy": "0.4.32", "react": "^18.2.0", diff --git a/test/bun.js/tsconfig.json b/test/bun.js/tsconfig.json index 9a6c36e069..975c49fe4b 100644 --- a/test/bun.js/tsconfig.json +++ b/test/bun.js/tsconfig.json @@ -5,8 +5,7 @@ "target": "esnext", "noEmit": true, "allowJs": true, - "typeRoots": ["../../types"], - "types": ["bun"], + "types": ["bun-types"], "allowSyntheticDefaultImports": true, "baseUrl": ".", "paths": { diff --git a/tsconfig.json b/tsconfig.json index 1bd313fae4..3f648150e9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,8 @@ "module": "esnext", "target": "esnext", "typeRoots": ["./types"], - "types": ["bun"] + "types": ["bun-types"], + "allowJs": true }, "exclude": ["src"] }