mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-11 18:59:01 +08:00
fix(js-sdk): add type metadata to exports
This commit is contained in:
parent
6a78f6fe78
commit
5a778f2c22
@ -6,8 +6,14 @@
|
|||||||
"types": "types/index.d.ts",
|
"types": "types/index.d.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"exports": {
|
"exports": {
|
||||||
"require": "./build/cjs/index.js",
|
"require": {
|
||||||
"import": "./build/esm/index.js"
|
"types": "./types/index.d.ts",
|
||||||
|
"default": "./build/cjs/index.js"
|
||||||
|
},
|
||||||
|
"import": {
|
||||||
|
"types": "./types/index.d.ts",
|
||||||
|
"default": "./build/esm/index.js"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"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",
|
"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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user