-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
67 lines (67 loc) · 2.04 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
{
"name": "optics-ts",
"version": "2.4.1",
"description": "Type-safe, ergonomic, polymorphic optics for TypeScript",
"repository": "https://github.com/akheron/optics-ts",
"author": "Petri Lehtinen <[email protected]>",
"license": "MIT",
"keywords": [
"optics",
"lens",
"prism",
"traveral",
"isomorphism",
"immutable",
"functional-programming"
],
"main": "./dist/cjs/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./dist/mjs/index.js",
"require": "./dist/cjs/index.js"
},
"./standalone": {
"types": "./standalone/index.d.ts",
"import": "./dist/mjs/standalone/index.js",
"require": "./dist/cjs/standalone/index.js"
},
"./interop": {
"types": "./interop.d.ts",
"import": "./dist/mjs/interop.js",
"require": "./dist/cjs/interop.js"
}
},
"files": [
"dist",
"standalone",
"*.d.ts"
],
"scripts": {
"typecheck": "tsc --noEmit",
"build": "yarn build:cjs && yarn build:mjs && yarn build:typings && scripts/fixup",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:mjs": "tsc -p tsconfig.mjs.json",
"build:typings": "tsc -p tsconfig.typings.json",
"build:test": "tsc -p tsconfig.test.json",
"test": "yarn build:test && jest",
"clean": "rm -rf dist/ dist-test/ standalone/ *.d.ts",
"lint": "eslint --max-warnings 0 '**/*.ts' && prettier --check \"**/*.{json,md}\"",
"lint:fix": "eslint --fix '**/*.ts' && prettier --write '**/*.{json,md}'",
"prepublishOnly": "yarn run clean && yarn run build",
"generate-index": "ts-node ./scripts/generate-index.ts > src/index.ts && prettier --write src/index.ts"
},
"devDependencies": {
"@babel/types": "^7.12.1",
"@types/jest": "^29.5.2",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"eslint": "^8.46.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.5.0",
"prettier": "^3.0.1",
"ts-jest": "^29.1.0",
"typescript": "^4.1.2"
}
}