-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
112 lines (112 loc) · 2.69 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
{
"name": "one-package-manager-enforcer",
"version": "1.0.5",
"description": "Prevent developers from using many package managers ( yarn, npm or bower ) in one project.",
"main": "./dist/index.js",
"author": "sztadii",
"license": "ISC",
"homepage": "https://github.com/sztadii/one-package-manager-enforcer",
"keywords": [
"enforcer",
"validation",
"npm enforcer",
"yarn enforcer",
"package manager enforcer",
"package manager validation"
],
"files": [
"dist"
],
"scripts": {
"prepare": "npm run build",
"start": "concurrently -k -r -s first 'npm run lint-watch' 'npm run test-watch'",
"validate-npm": "REQUIRED=npm node dist",
"test": "jest --silent",
"test-watch": "jest --watch",
"build": "npm run clean && tsc --project tsconfig.build.json",
"lint": "esw './**/*.ts' --ignore-path .gitignore --color --max-warnings 0",
"lint-watch": "esw './**/*.ts' --ignore-path .gitignore --color --watch --cache",
"format": "prettier 'src/**/*.ts' --write",
"clean": "rm -rf dist",
"types-check": "tsc --noEmit"
},
"bin": {
"one-package-manager-enforcer": "./dist/index.js"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"npm run lint",
"npm run format",
"git add"
]
},
"jest": {
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx"
],
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.ts?$"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.6",
"@babel/preset-env": "^7.12.11",
"@babel/preset-typescript": "^7.8.3",
"@types/jest": "^24.9.1",
"@types/node": "^11.15.7",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.3",
"concurrently": "^5.3.0",
"eslint": "^5.11.1",
"eslint-plugin-jest": "^22.21.0",
"eslint-watch": "^4.0.2",
"husky": "^1.3.1",
"jest": "^25.1.0",
"jest-mock-process": "^1.3.2",
"lint-staged": "^8.1.0",
"prettier": "^1.19.1",
"regenerator-runtime": "^0.13.1",
"typescript": "^3.8.2"
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-typescript"
]
},
"eslintConfig": {
"parser": "babel-eslint",
"plugins": [
"jest"
],
"extends": [
"eslint:recommended",
"plugin:jest/recommended"
],
"env": {
"node": true,
"jest": true
},
"rules": {
"no-console": "off"
}
},
"prettier": {
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"semi": false
}
}