-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
60 lines (60 loc) · 1.83 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"$schema": "https://json.schemastore.org/package.json",
"name": "openapi-msw",
"type": "module",
"version": "1.1.0",
"license": "MIT",
"author": "Christoph Fricke <[email protected]>",
"description": "Tiny, type-safe wrapper around MSW for type inference from OpenAPI schemas.",
"repository": "github:christoph-fricke/openapi-msw",
"files": [
"cjs",
"dist",
"CHANGELOG.md",
"README.md",
"LICENSE"
],
"sideEffects": false,
"types": "./dist/exports/main.d.ts",
"main": "./cjs/exports/main.js",
"module": "./dist/exports/main.js",
"exports": {
".": {
"types": {
"import": "./dist/exports/main.d.ts",
"require": "./cjs/exports/main.d.ts"
},
"import": "./dist/exports/main.js",
"require": "./cjs/exports/main.js"
}
},
"scripts": {
"prepare": "lefthook install",
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "rimraf ./dist && tsc -p tsconfig.build.json",
"build:cjs": "rimraf ./cjs && tsc -p tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > ./cjs/package.json",
"format": "prettier --write .",
"lint": "eslint . && prettier -c .",
"generate": "openapi-typescript -c ./test/fixtures/.redocly.yml",
"test:unit": "TEST_SUITE=unit vitest",
"test:int": "TEST_SUITE=integration vitest --typecheck",
"version": "changeset version && npm i",
"release": "changeset publish"
},
"peerDependencies": {
"msw": "^2.7.0"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.12",
"eslint": "^9.19.0",
"lefthook": "^1.10.10",
"openapi-typescript": "^7.6.0",
"prettier": "^3.4.2",
"prettier-plugin-organize-imports": "^4.1.0",
"rimraf": "^6.0.1",
"typescript": "^5.7.3",
"typescript-eslint": "^8.21.0",
"vitest": "^3.0.4"
}
}