-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
65 lines (65 loc) · 1.99 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
{
"name": "@funboxteam/chronos",
"version": "5.0.3",
"description": "One library to rule the time",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"sideEffects": false,
"author": "Natalia Andreychenko <[email protected]> (https://github.com/natrey)",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/funbox/chronos"
},
"files": [
"dist/",
"MIGRATION.md",
"CHANGELOG.md"
],
"types": "dist/types/",
"scripts": {
"build": "npm run clean && npm run build-esm-and-types && npm run build-cjs",
"build-cjs": "tsc --outDir ./dist/cjs --module CommonJS",
"build-esm-and-types": "tsc --outDir ./dist/esm --module ES6 --declaration true --declarationDir ./dist/types",
"clean": "rm -rf dist/",
"lint": "eslint --cache -c .eslintrc.js --ext .ts lib tests",
"prebuild": "npm run lint",
"prepublishOnly": "if [ -z \"$CI\" ]; then lawyer; fi && npm run build",
"test": "npm run lint && nyc mocha -- --require ts-node/register tests/*.ts",
"start": "nodemon -e ts,js,json --exec 'npm test'",
"coverage": "mkdir -p ./coverage/ && nyc report --reporter=text-lcov > ./coverage/lcov.info",
"prepack": "npm run build"
},
"devDependencies": {
"@funboxteam/eslint-config": "7.3.0",
"@types/chai": "4.2.11",
"@types/chai-datetime": "0.0.37",
"@types/mocha": "8.0.0",
"@types/node": "14.6.0",
"@typescript-eslint/eslint-plugin": "5.59.7",
"@typescript-eslint/parser": "5.59.7",
"chai": "4.2.0",
"chai-datetime": "1.5.0",
"eslint": "7.32.0",
"husky": "3.0.8",
"lint-staged": "10.2.11",
"mocha": "10.2.0",
"nodemon": "2.0.20",
"nyc": "15.1.0",
"ts-node": "8.10.2",
"typescript": "3.9.6"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged -q"
}
},
"lint-staged": {
"lib/**/*.{js,ts}": [
"eslint --fix --cache -c .eslintrc.js"
],
"tests/**/*.js": [
"eslint --fix --cache -c tests/.eslintrc.js"
]
}
}