-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
98 lines (98 loc) · 2.89 KB
/
package.json
File metadata and controls
98 lines (98 loc) · 2.89 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
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
{
"name": "decode-json",
"version": "1.0.0",
"description": "Convert unknown JSON values to TypeScript safe structures",
"license": "BSD-3-Clause",
"homepage": "https://github.com/owanturist/decode-json",
"repository": "git@github.com:owanturist/decode-json.git",
"issues": "https://github.com/owanturist/decode-json/issues",
"keywords": [
"decoding",
"json",
"typescript",
"elm"
],
"author": "Anton Ovechkin <owanturist@gmail.com> (https://github.com/owanturist)",
"types": "types/index.d.ts",
"main": "lib/index.js",
"unpkg": "dist",
"module": "es",
"exports": {
".": {
"import": "./es/decode-json.js",
"require": "./lib/decode-json.js",
"browser": "./es/decode-json.mjs",
"default": "./lib/decode-json.js"
},
"./error-to-human-readable": {
"import": "./es/error-to-human-readable.js",
"require": "./lib/error-to-human-readable.js",
"browser": "./es/error-to-human-readable.mjs",
"default": "./lib/error-to-human-readable.js"
}
},
"files": [
"dist",
"lib",
"es",
"src",
"tests",
"types"
],
"directories": {
"lib": "src",
"test": "tests"
},
"scripts": {
"clean": "rm -rf ./dist ./es ./lib ./types",
"prebuild": "npm run clean",
"build": "rollup --config",
"prepublish": "npm run build",
"postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags",
"test": "ava",
"test:watch": "npm test -- --watch",
"test:coverage": "nyc ava",
"test:report": "nyc report --reporter=text-lcov | coveralls",
"lint": "eslint . --config=.eslintrc.prod.json --ext=js,ts",
"prettify": "prettier . --write",
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"husky": {
"hooks": {
"prepare-commit-msg": "./scripts/git-commit-message.sh $HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{js,ts,json,md}": [
"prettier --write"
],
"**/*.{js,ts}": [
"eslint --config=.eslintrc.prod.json --fix"
]
},
"devDependencies": {
"@ava/typescript": "^1.1.1",
"@rollup/plugin-node-resolve": "^11.0.1",
"@skypack/package-check": "^0.2.2",
"@typescript-eslint/eslint-plugin": "^4.12.0",
"@typescript-eslint/parser": "^4.12.0",
"ava": "^3.15.0",
"coveralls": "^3.1.0",
"eslint": "^7.17.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-ava": "^11.0.0",
"eslint-plugin-prettier": "^3.3.1",
"husky": "^4.3.7",
"lint-staged": "^10.5.3",
"nyc": "^15.1.0",
"prettier": "^2.2.1",
"rollup": "^2.36.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.29.0",
"ts-node": "^9.1.1",
"ts-transformer-minify-privates": "^0.3.0",
"typescript": "^4.1.3"
},
"sideEffects": false
}