Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(js-sdk): add type metadata to exports

Gergo Moricz5a778f2c22a4
diff --git a/apps/js-sdk/firecrawl/package.json b/apps/js-sdk/firecrawl/package.json
index a76748d4e..380d972b7 100644
--- a/apps/js-sdk/firecrawl/package.json
+++ b/apps/js-sdk/firecrawl/package.json
@@ -6,8 +6,14 @@
"types": "types/index.d.ts",
"type": "module",
"exports": {
- "require": "./build/cjs/index.js",
- "import": "./build/esm/index.js"
+ "require": {
+ "types": "./types/index.d.ts",
+ "default": "./build/cjs/index.js"
+ },
+ "import": {
+ "types": "./types/index.d.ts",
+ "default": "./build/esm/index.js"
+ }
},
"scripts": {
"build": "tsc --module commonjs --moduleResolution node10 --outDir build/cjs/ && echo '{\"type\": \"commonjs\"}' > build/cjs/package.json && npx tsc --module NodeNext --moduleResolution NodeNext --outDir build/esm/ && echo '{\"type\": \"module\"}' > build/esm/package.json",