-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
68 lines (68 loc) · 1.76 KB
/
package.json
File metadata and controls
68 lines (68 loc) · 1.76 KB
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
{
"name": "fentastic",
"version": "0.2.2",
"description": "Validate and parse Forsyth-Edwards Notation (FEN) used to describe a chess game board position.",
"author": "frederickf <ffeibel@gmailc.com>",
"license": "MIT",
"keywords": [
"FEN",
"chess"
],
"homepage": "https://github.com/frederickf/fentastic#readme",
"bugs": {
"url": "https://github.com/frederickf/fentastic/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/frederickf/fentastic.git"
},
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
}
},
"files": [
"dist/"
],
"scripts": {
"lint": "eslint src/**/*.ts",
"test": "jest --verbose",
"verify": "npm run lint && npm test",
"prebuild": "rimraf dist/",
"build": "npm run build:esm && npm run build:cjs",
"build:esm": "tsc --outDir dist/esm",
"build:cjs": "tsc --module CommonJS --outDir dist/cjs && node writeCjsPackage.js",
"preversion": "npm run verify",
"postversion": "git push && git push --tags",
"prepublishOnly": "npm run verify && npm run build"
},
"jest": {
"preset": "ts-jest/presets/default-esm",
"testEnvironment": "node",
"globals": {
"ts-jest": {
"useESM": true
}
},
"extensionsToTreatAsEsm": [
".ts"
],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
}
},
"devDependencies": {
"@types/jest": "^28.1.8",
"@types/node": "^18.6.3",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"eslint": "^8.23.0",
"rimraf": "^3.0.2",
"ts-jest": "^28.0.8",
"typescript": "^4.8.2"
}
}