generated from gagoar/ts-node-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
141 lines (141 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"name": "github-app-installation-token",
"repository": "git@github.com:gagoar/github-app-installation-token.git",
"license": "MIT",
"version": "1.2.0",
"description": "npm/script and binary 📦 to get a token from a GitHub App",
"main": "dist/index.js",
"types": "types/index.d.ts",
"bin": {
"github-app-installation-token": "cli/cli.js"
},
"scripts": {
"precommit": "lint-staged",
"test": "jest",
"build": "esbuild --bundle ./index.ts --platform=node --target=node12 --main-fields=main --outdir=dist/",
"build-cli": "esbuild --bundle src/bin/cli.ts --platform=node --target=node12 --main-fields=main --outdir=cli/",
"build-binaries": "pkg cli/cli.js",
"build-types": "tsc --emitDeclarationOnly --outDir types",
"lint": "eslint src/* --ext .ts",
"version": "auto-changelog -p && git add CHANGELOG.md",
"release": "npm run build && npm run build-cli && npm run build-binaries && npm run build-types && npm publish"
},
"engines": {
"node": ">10.0.0"
},
"keywords": [
"cli",
"GitHub",
"token",
"node"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*": [
"pretty-quick --staged"
],
"*.ts": [
"eslint --fix",
"bash -c \"npm run build\""
]
},
"prettier": {
"singleQuote": true,
"semi": true,
"printWidth": 120
},
"eslintConfig": {
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.eslint.json"
},
"rules": {
"quotes": [
2,
"single",
"avoid-escape"
],
"no-debugger": "error",
"no-process-env": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"new-cap": [
"error",
{
"capIsNewExceptions": [
"Injectable",
"Inject"
]
}
],
"prefer-destructuring": [
"error",
{
"VariableDeclarator": {
"array": false,
"object": true
},
"AssignmentExpression": {
"array": true,
"object": false
}
},
{
"enforceForRenamedProperties": false
}
]
}
},
"author": "Gago <xeroice@gmail.com>",
"dependencies": {
"@octokit/auth-app": "3.6.1",
"@octokit/rest": "18.12.0",
"commander": "6.2.1",
"debug": "4.3.4",
"node-rsa": "1.1.1",
"ora": "6.0.1"
},
"devDependencies": {
"@types/debug": "4.1.12",
"@types/jest": "26.0.24",
"@types/node": "16.18.14",
"@types/node-rsa": "1.1.4",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"auto-changelog": "2.4.0",
"esbuild": "0.23.1",
"eslint": "8.7.0",
"eslint-config-prettier": "8.7.0",
"eslint-plugin-prettier": "4.2.1",
"husky": "4.3.8",
"jest": "26.6.3",
"jest-mock-process": "1.5.1",
"lint-staged": "10.5.4",
"nock": "13.5.4",
"pkg": "5.8.0",
"prettier": "2.8.8",
"prettier-eslint": "12.0.0",
"prettier-eslint-cli": "5.0.1",
"pretty-quick": "3.1.3",
"ts-jest": "26.5.6",
"ts-node": "10.9.1",
"tslib": "2.6.2",
"typescript": "4.2.4"
}
}