-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
66 lines (66 loc) · 2.17 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
{
"name": "uom",
"version": "6.0.0",
"main": "lib-cjs/index.js",
"module": "lib-esm/index.js",
"types": "lib-cjs/index",
"description": "Extensible unit of measure conversion with type safety for typescript",
"author": "[email protected]",
"repository": "https://github.com/dividab/uom",
"license": "MIT",
"files": [
"/lib-cjs",
"/lib-esm",
"/src",
"package.json",
"CHANGELOG.md",
"LICENSE",
"README.md"
],
"devDependencies": {
"@types/jest": "^26.0.15",
"@types/node": "^12.7.11",
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^4.5.0",
"codecov": "^3.8.0",
"confusing-browser-globals": "^1.0.9",
"eslint": "^7.11.0",
"eslint-config-divid": "^0.5.1",
"eslint-plugin-functional": "^3.1.0",
"eslint-plugin-import": "^2.22.1",
"husky": "^4.3.0",
"jest": "^26.6.0",
"jsdoc-to-markdown": "^5.0.1",
"lint-staged": "^10.4.2",
"prettier": "^2.1.2",
"rimraf": "^2.6.2",
"ts-jest": "^26.4.1",
"typescript": "^4.0.3"
},
"scripts": {
"lint": "eslint './{src,test}/**/*.ts' --ext .ts -f visualstudio ",
"build": "yarn clean && yarn build:cjs && yarn build:esm && yarn gen-docs",
"clean": "rm -rf ./lib-cjs ./lib-esm",
"build:cjs": "tsc -p src",
"build:esm": "tsc -p src --module es2015 --moduleResolution node --outDir ./lib-esm",
"test": "jest --no-coverage",
"verify": "yarn lint && yarn build && yarn test-coverage",
"test-coverage": "jest",
"report-coverage": "codecov -f coverage/lcov.info",
"gen-docs": "jsdoc2md --partial docs/scope.hbs --files lib-esm/serialize.js lib-esm/unit-map.js lib-esm/amount.js lib-esm/unit.js > docs/api.md",
"preversion": "git checkout master && git pull && yarn test && yarn build",
"postversion": "git push --tags && yarn publish --new-version $npm_package_version && git push --follow-tags && echo \"Successfully released version $npm_package_version!\""
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx}": "eslint --ext .ts -f visualstudio",
"*.{ts,tsx,json,css}": [
"prettier --write",
"git add"
]
}
}