-
Notifications
You must be signed in to change notification settings - Fork 340
/
package.json
125 lines (125 loc) · 3.52 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"name": "chrono-node",
"description": "A natural language date parser in Javascript",
"homepage": "http://github.com/wanasit/chrono",
"repository": {
"type": "git",
"url": "https://github.com/wanasit/chrono.git"
},
"prettier": {
"quoteProps": "preserve"
},
"jest": {
"verbose": true,
"testURL": "http://localhost/",
"preset": "ts-jest"
},
"license": "MIT",
"version": "2.7.7",
"directories": {
"source": "./src",
"test": "./test"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
".": {
"require": "./dist/cjs/index.js",
"import": "./dist/esm/index.js"
},
"./*": {
"require": "./dist/cjs/locales/*/index.js",
"import": "./dist/esm/locales/*/index.js"
},
"./*/*": {
"require": "./dist/cjs/locales/*/*/index.js",
"import": "./dist/esm/locales/*/*/index.js"
}
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
"sideEffects": false,
"types": "dist/esm/index.d.ts",
"devDependencies": {
"@types/jest": "^26.0.4",
"@typescript-eslint/eslint-plugin": "^4.7.0",
"@typescript-eslint/parser": "^4.7.0",
"benny": "^3.6.15",
"eslint": "^7.13.0",
"eslint-config-prettier": "^6.15.0",
"husky": "^4.2.5",
"jest": "^26.1.0",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"run-script-os": "^1.1.6",
"ts-jest": "^26.1.1",
"tsc-esm-fix": "^2.12.4",
"typedoc": "^0.20.36",
"typescript": "~4.2.4"
},
"husky": {
"hooks": {
"pre-commit": "npm run prettier && npm run test:silent"
}
},
"scripts": {
"build": "rimraf dist && npm run build-cjs && npm run build-esm && npm run add-package.json",
"build-cjs": "tsc -p tsconfig.build.json",
"build-esm": "tsc -p tsconfig.build.esm.json && tsc-esm-fix --target=dist/esm",
"add-package.json": "run-script-os",
"add-package.json:nix": "echo '{\"type\":\"commonjs\",\"sideEffects\":false}' > dist/cjs/package.json && echo '{\"type\":\"module\",\"sideEffects\":false}' > dist/esm/package.json",
"add-package.json:windows": "echo {\"type\":\"commonjs\",\"sideEffects\":false} > dist/cjs/package.json && echo {\"type\":\"module\",\"sideEffects\":false} > dist/esm/package.json",
"benchmark": "npm run build && node ./benchmark/benchmark.js",
"document": "typedoc",
"prepare": "npm run build",
"eslint": "eslint src test",
"prettier": "npm run prettier:src && npm run prettier:test",
"prettier:src": "prettier --write src --loglevel=warn",
"prettier:test": "prettier --write test --loglevel=warn",
"watch": "jest --watch",
"test": "jest --coverage",
"test:silent": "jest --silent"
},
"dependencies": {
"dayjs": "^1.10.0"
},
"eslintConfig": {
"env": {
"es6": true,
"node": true,
"browser": true
},
"ignorePatterns": [
"benchmark/*.js"
],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"modules": true
},
"project": "./tsconfig.json"
},
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint"
],
"plugins": [
"@typescript-eslint"
],
"reportUnusedDisableDirectives": true,
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "none"
}
],
"prefer-const": "warn"
}
}
}