-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
101 lines (101 loc) · 2.85 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
{
"name": "custom-types-serializer",
"packageManager": "[email protected]",
"description": "Serialize any custom javascript type or structure of any complexity.",
"version": "3.0.0",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"types": "lib/cjs/index.d.ts",
"author": "Dmitry Steblyuk",
"repository": "https://github.com/dmitrysteblyuk/custom-types-serializer.git",
"license": "MIT",
"keywords": [
"serializer",
"deserializer",
"reviver",
"replacer",
"json",
"circular",
"references"
],
"files": [
"lib"
],
"scripts": {
"prepare": "yarn add-pre-commit-hook",
"add-pre-commit-hook": "node -e \"fs.writeFileSync('.git/hooks/pre-commit', ['#!/bin/sh', 'yarn lint-staged', ''].join('\\\\n'), {mode: fs.constants.S_IRWXU})\"",
"build": "yarn build:clean && yarn build:cjs && yarn build:esm",
"build:clean": "rimraf lib",
"build:cjs": "tsc --project tsconfig.cjs.json",
"build:esm": "tsc --project tsconfig.esm.json",
"test": "yarn test:dedupe && yarn test:audit && yarn test:prettier && yarn test:types && yarn test:unit",
"test:dedupe": "yarn dedupe --check",
"test:audit": "bash -c \"yarn npm audit; [[ $? -ge 1 ]] && exit 1 || exit 0\"",
"test:prettier": "prettier --check .",
"test:types": "tsc",
"test:unit": "jest",
"release:prepare": "yarn test && yarn build && npm pack --dry-run --json"
},
"devDependencies": {
"@jest/globals": "^27.1.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/npm": "^7.1.3",
"@semantic-release/release-notes-generator": "^9.0.3",
"jest": "^27.1.0",
"lint-staged": "^11.1.2",
"moment": "^2.29.1",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"semantic-release": "^17.4.7",
"ts-jest": "^27.0.5",
"typescript": "^4.4.2"
},
"jest": {
"preset": "ts-jest",
"testPathIgnorePatterns": [
"<rootDir>/lib/"
],
"globals": {
"ts-jest": {
"diagnostics": false
}
}
},
"lint-staged": {
"*": [
"prettier --write"
]
},
"prettier": {
"semi": true,
"singleQuote": true,
"arrowParens": "always",
"trailingComma": "all",
"jsxSingleQuote": true,
"tabWidth": 2,
"bracketSpacing": false,
"overrides": [
{
"files": "README.md",
"options": {
"bracketSpacing": true,
"trailingComma": "es5",
"singleQuote": false,
"printWidth": 200
}
}
]
},
"release": {
"repositoryUrl": "[email protected]:dmitrysteblyuk/custom-types-serializer.git",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
]
}
}