- Add CommonJS build (index.cjs) to support both ESM and CJS imports - Enhanced markdown plugin to serve JSON content for LLMs at /docs endpoint - Bump version to 0.1.1 for package compatibility fixes
84 lines
2.1 KiB
JSON
84 lines
2.1 KiB
JSON
{
|
|
"name": "@catalystlabs/typedfetch",
|
|
"version": "0.1.1",
|
|
"description": "Type-safe HTTP client that doesn't suck - Fetch for humans who have stuff to build",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"require": "./dist/index.cjs",
|
|
"types": "./dist/index.d.ts"
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"build": "bun run build:clean && bun run build:esm && bun run build:cjs && bun run build:types",
|
|
"build:clean": "rm -rf dist && mkdir dist",
|
|
"build:esm": "bun build src/index.ts --outdir dist --target browser --format esm",
|
|
"build:cjs": "bun build src/index.ts --outfile dist/index.cjs --target node --format cjs",
|
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
"typecheck": "tsc --noEmit",
|
|
"prepublishOnly": "bun run build && bun run typecheck"
|
|
},
|
|
"keywords": [
|
|
"http",
|
|
"fetch",
|
|
"client",
|
|
"typescript",
|
|
"type-safe",
|
|
"api",
|
|
"rest",
|
|
"xhr",
|
|
"request",
|
|
"response",
|
|
"cache",
|
|
"retry",
|
|
"resilience",
|
|
"proxy",
|
|
"interceptor",
|
|
"transform"
|
|
],
|
|
"author": "TypedFetch Contributors",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://git.catalystlab.cc/caseycollier/TypeFetched.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://git.catalystlab.cc/caseycollier/TypeFetched/issues"
|
|
},
|
|
"homepage": "https://typedfetch.dev",
|
|
"devDependencies": {
|
|
"@types/node": "^20.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
"@typescript-eslint/parser": "^6.0.0",
|
|
"esbuild": "^0.19.0",
|
|
"eslint": "^8.0.0",
|
|
"gzip-size-cli": "^5.1.0",
|
|
"typescript": "^5.8.3",
|
|
"vitest": "^1.0.0"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": ">=4.7.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"typescript": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
},
|
|
"sideEffects": false,
|
|
"funding": {
|
|
"type": "github",
|
|
"url": "https://github.com/sponsors/typedfetch"
|
|
}
|
|
}
|