-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
package.json
85 lines (85 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"name": "chessops",
"version": "0.14.1",
"description": "Chess and chess variant rules and operations",
"keywords": [
"chess",
"lichess",
"fen",
"pgn",
"uci",
"typescript"
],
"repository": "github:niklasf/chessops",
"author": "Niklas Fiekas <niklas.fiekas@backscattering.de>",
"funding": "https://github.com/sponsors/niklasf",
"license": "GPL-3.0-or-later",
"type": "module",
"module": "dist/esm/index.js",
"main": "dist/cjs/index.js",
"types": "index.d.ts",
"typesVersions": {
"*": {
"*": [
"dist/types/*"
]
}
},
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts"
},
"./*": {
"import": "./dist/esm/*.js",
"require": "./dist/cjs/*.js",
"types": "./dist/types/*.d.ts"
}
},
"sideEffects": false,
"dependencies": {
"@badrap/result": "^0.2"
},
"devDependencies": {
"@jest/globals": "^29",
"@typescript-eslint/eslint-plugin": "^7",
"@typescript-eslint/parser": "^7",
"dprint": "^0.45",
"eslint": "^8",
"jest": "^29",
"ts-jest": "^29",
"typedoc": "^0.25",
"typescript": "^5"
},
"scripts": {
"prepare": "tsc --declarationDir dist/types && tsc --outDir dist/cjs --module commonjs --declaration false",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"doc": "typedoc src/types.ts src/attacks.ts src/util.ts src/squareSet.ts src/board.ts src/setup.ts src/chess.ts src/compat.ts src/debug.ts src/fen.ts src/san.ts src/transform.ts src/variant.ts src/pgn.ts",
"lint": "eslint src/*.ts",
"format": "dprint fmt",
"check-format": "dprint check"
},
"files": [
"/src",
"/dist",
"!/**/*.test.*"
],
"jest": {
"testRegex": ".*\\.test\\.ts$",
"transform": {
"\\.ts$": [
"ts-jest",
{
"useESM": true
}
]
},
"extensionsToTreatAsEsm": [
".ts"
],
"moduleNameMapper": {
"^(.*)\\.js$": "$1"
}
}
}