-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
89 lines (89 loc) · 2.98 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
86
87
88
89
{
"name": "computed-types",
"version": "1.11.2",
"description": "Runtime validation types for TypeScript.",
"keywords": [
"runtime",
"validation",
"type",
"typescript",
"function",
"schema",
"functional",
"composition",
"interfaces",
"data",
"input",
"neuledge"
],
"scripts": {
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"clean": "rm -rf lib",
"build": "npm run build:types && npm run build:js",
"build:types": "tsc --emitDeclarationOnly",
"build:js": "babel src --out-dir lib --extensions \".js,.ts\" --source-maps inline",
"lint": "eslint \"src/**\"",
"lint:strict": "npm run lint -- --max-warnings 0",
"fix": "npm run fix:lint",
"fix:lint": "npm run lint -- --fix",
"mocha": "TS_NODE_FILES=true mocha -r ts-node/register \"src/**/*.test.ts\" --timeout 10000",
"mocha:coverage": "nyc npm run mocha && nyc report --reporter=lcov",
"mocha:build": "mocha lib/**/*.test.js --timeout 10000",
"test": "npm run type-check && npm run lint -- --quiet && npm run mocha",
"coverage": "npm run type-check && npm run lint -- --quiet && npm run mocha:coverage",
"test:build": "npm run mocha:build",
"test:commit": "if [[ -z \"$(git status --untracked-files=no --porcelain)\" ]]; then\n echo \"All filed committed.\"\nelse\n echo \"Uncommitted changes found. Please Commit them first.\" && exit 1\nfi",
"prepare": "npm run clean && npm run build && husky install",
"prepublishOnly": "npm run test:commit && npm run test:build && npm run lint:strict",
"postpublish": "git push && git push --tags",
"postversion": "npm publish"
},
"author": "Moshe Simantov <[email protected]>",
"repository": "https://github.com/neuledge/computed-types",
"license": "MIT",
"main": "lib/index",
"module": "lib/index",
"types": "lib/index",
"exports": {
".": {
"import": "./index.mjs",
"require": "./lib/index.js"
},
"./lib/*": "./lib/*"
},
"files": [
"index.mjs",
"/lib/*"
],
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.2",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.20.2",
"@babel/plugin-proposal-object-rest-spread": "^7.20.2",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@types/chai": "^4.3.4",
"@types/chai-as-promised": "^7.1.5",
"@types/mocha": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"babel-plugin-transform-typescript-metadata": "^0.3.2",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"coveralls": "^3.1.1",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2",
"mocha": "^10.1.0",
"nyc": "^15.1.0",
"prettier": "^2.7.1",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
},
"lint-staged": {
"src/**/*": "eslint"
}
}