@moeenn/fetch
Version:
Native Fetch with better ergonomics and error reporting
91 lines (90 loc) • 2.08 kB
JSON
{
"name": "@moeenn/fetch",
"version": "1.0.0",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"keywords": [
"fetch",
"typescript",
"better-fetch",
"safe-fetch"
],
"author": "moeenn",
"license": "ISC",
"description": "Native Fetch with better ergonomics and error reporting",
"scripts": {
"dev": "nodemon --ext ts --exec 'npm run build && node build/src/index.js'",
"build-package": "tsup",
"build": "swc src --out-dir build",
"type-check": "tsc --noEmit",
"test": "jest",
"fmt": "npx prettier --write ./src/",
"lint": "npx eslint --fix ./src/ --ext .ts",
"check": "npm run type-check && npm run lint",
"pub": "npm publish --access=public"
},
"jest": {
"transform": {
"^.+\\.(t|j)sx?$": "@swc/jest"
},
"testEnvironment": "node",
"modulePathIgnorePatterns": [
"<rootDir>/build/"
],
"moduleNameMapper": {
"@/(.*)": "<rootDir>/src/$1"
}
},
"eslintConfig": {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-console": "warn",
"quotes": [
"warn",
"double",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"semi": [
"warn",
"never"
],
"no-unused-vars": "warn"
}
},
"prettier": {
"singleQuote": false,
"semi": false,
"tabWidth": 2,
"trailingComma": "all"
},
"devDependencies": {
"@swc/cli": "^0.4.0",
"@swc/core": "^1.5.5",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.15",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"eslint": "^8.56.0",
"jest": "^29.7.0",
"nodemon": "^3.1.0",
"prettier": "^3.2.5",
"tsup": "^8.2.4",
"typescript": "^5.4.5"
}
}