|
1 | 1 | { |
2 | 2 | "name": "openapi-typescript-fetch", |
| 3 | + "description": "A typed fetch wrapper for openapi-typescript", |
3 | 4 | "version": "1.0.0", |
4 | | - "description": "A typed fetch wrapper for the code generated by openapi-typescript", |
5 | | - "main": "dist/index.js", |
6 | | - "types": "dist/index.d.ts", |
| 5 | + "engines": { |
| 6 | + "node": ">= 12.0.0", |
| 7 | + "npm": ">= 7.0.0" |
| 8 | + }, |
| 9 | + "author": "Ajai Shankar", |
| 10 | + "license": "ISC", |
| 11 | + "main": "./dist/cjs/index.js", |
| 12 | + "module": "./dist/esm/index.js", |
| 13 | + "exports": { |
| 14 | + "browser": "./dist/esm/index.js", |
| 15 | + "import": "./dist/esm/index.js", |
| 16 | + "require": "./dist/cjs/index.js" |
| 17 | + }, |
| 18 | + "files": [ |
| 19 | + "dist" |
| 20 | + ], |
| 21 | + "repository": { |
| 22 | + "type": "git", |
| 23 | + "url": "https://github.com/ajaishankar/openapi-typescript-fetch" |
| 24 | + }, |
| 25 | + "keywords": [ |
| 26 | + "fetch", |
| 27 | + "swagger", |
| 28 | + "typescript", |
| 29 | + "ts", |
| 30 | + "openapi", |
| 31 | + "openapi 3", |
| 32 | + "node" |
| 33 | + ], |
| 34 | + "bugs": { |
| 35 | + "url": "https://github.com/ajaishankar/openapi-typescript-fetch/issues" |
| 36 | + }, |
| 37 | + "homepage": "https://github.com/ajaishankar/openapi-typescript-fetch#readme", |
7 | 38 | "devDependencies": { |
8 | 39 | "msw": "^0.35.0", |
9 | 40 | "@typescript-eslint/eslint-plugin": "^4.30.0", |
10 | 41 | "@typescript-eslint/parser": "^4.31.0", |
11 | 42 | "eslint": "^7.32.0", |
12 | 43 | "eslint-config-prettier": "^8.3.0", |
13 | 44 | "eslint-plugin-prettier": "^4.0.0", |
| 45 | + "codecov": "^3.8.2", |
14 | 46 | "jest": "^27.2.5", |
15 | 47 | "@types/jest": "^27.0.0", |
16 | 48 | "prettier": "^2.4.0", |
|
27 | 59 | }, |
28 | 60 | "scripts": { |
29 | 61 | "clean": "rimraf './dist'", |
30 | | - "build": "tsc", |
31 | | - "test": "jest --no-cache", |
32 | | - "coverage": "jest --no-cache --coverage" |
33 | | - }, |
34 | | - "author": "Ajai Shankar", |
35 | | - "license": "MIT" |
| 62 | + "build": "npm run clean && tsc --project tsconfig.json && tsc --project tsconfig.cjs.json", |
| 63 | + "lint": "eslint .", |
| 64 | + "prepare": "npm run build", |
| 65 | + "test": "npm run build && jest", |
| 66 | + "test:coverage": "npm run build && jest --no-cache --coverage && codecov", |
| 67 | + "test:coverage:local": "npm run build && jest --no-cache --collectCoverage", |
| 68 | + "typecheck": "tsc --noEmit --project tsconfig.json" |
| 69 | + } |
36 | 70 | } |
0 commit comments