-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
77 lines (77 loc) · 2.99 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"name": "openapi-to-effect",
"version": "0.9.1",
"license": "MPL-2.0",
"homepage": "https://github.com/fortanix/openapi-to-effect",
"description": "OpenAPI to Effect Schema code generator",
"author": "Fortanix",
"repository": {
"type": "git",
"url": "[email protected]:fortanix/openapi-to-effect.git"
},
"files": [
"./dist"
],
"type": "module",
"bin": {
"openapi-to-effect": "./dist/esm/cli.mjs"
},
"exports": {
"./generation/generationSpec.ts": {
"types": "./dist/types/generation/generationSpec.d.ts",
"require": "./dist/cjs/generation/generationSpec.cjs",
"default": "./dist/esm/generation/generationSpec.mjs"
},
"./generation/effSchemGen/genUtil.ts": {
"types": "./dist/types/generation/effSchemGen/genUtil.d.ts",
"require": "./dist/cjs/generation/effSchemGen/genUtil.cjs",
"default": "./dist/esm/generation/effSchemGen/genUtil.mjs"
},
".": {
"types": "./dist/types/openapiToEffect.d.ts",
"require": "./dist/cjs/openapiToEffect.cjs",
"default": "./dist/esm/openapiToEffect.mjs"
}
},
"scripts": {
"repl": "tsx",
"node": "node --import=tsx",
"check:types": "tsc --noEmit && echo 'No type errors found'",
"//test:unit": "node --import=tsx --test --test-reporter=spec \"**/*.test.ts\" # Note: glob requires Node v22",
"test:unit": "find src -type f -iname '*.test.ts' -print0 | xargs -0 node --import=tsx --test --test-reporter=spec",
"test:integration": "find tests/integration -type f -iname '*.test.ts' -print0 | xargs -0 node --import=tsx --test --test-reporter=spec",
"test": "npm run test:integration && npm run test:unit",
"test-watch": "node --import=tsx --test --test-reporter=spec --watch tests",
"_build": "NODE_ENV=production babel src --extensions=.ts,.tsx --delete-dir-on-start",
"build:cjs": "BABEL_ENV=cjs npm run _build -- --out-dir=dist/cjs --out-file-extension=.cjs",
"build:esm": "BABEL_ENV=esm npm run _build -- --out-dir=dist/esm --out-file-extension=.mjs",
"build:types": "tsc --project ./tsconfig.decl.json",
"build": "npm run check:types && npm run build:cjs && npm run build:esm && npm run build:types && chmod +x ./dist/cjs/cli.cjs ./dist/esm/cli.mjs",
"generate": "node --import=tsx ./src/openapiToEffect.ts gen",
"prepare": "npm run build"
},
"devDependenciesComments": {
"babel": "// Still needed because tsc doesn't like to emit files with .ts extensions"
},
"devDependencies": {
"typescript": "^5.7.2",
"tsx": "^4.19.2",
"@babel/core": "^7.26.0",
"@babel/cli": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"babel-plugin-replace-import-extension": "^1.1.4",
"@types/node": "^22.10.1",
"openapi-types": "^12.1.3"
},
"dependencies": {
"ts-dedent": "^2.2.0",
"immutable-json-patch": "^6.0.1",
"prettier": "^3.4.1",
"prettier-plugin-jsdoc": "^1.3.0",
"effect": "^3.10.19"
},
"peerDependencies": {
"openapi-types": "^12.0.0"
}
}