-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
98 lines (98 loc) · 2.6 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
{
"name": "node-version",
"version": "3.0.0",
"description": "Get Node current version",
"keywords": [
"node",
"version"
],
"author": {
"name": "Rodolphe Stoclin",
"email": "rodolphe@2clics.net",
"url": "http://2clics.net"
},
"homepage": "https://github.com/srod/node-version",
"license": "MIT",
"engines": {
"node": ">=16.0.0"
},
"packageManager": "pnpm@8.15.9",
"directories": {
"lib": "dist",
"test": "__tests__"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"files": [
"dist/**/*"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/srod/node-version.git"
},
"bugs": {
"url": "https://github.com/srod/node-version/issues"
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build",
"coverage": "vitest run --coverage",
"precoverage:ci": "pnpm run build && pnpm run eslint",
"coverage:ci": "vitest run --coverage",
"eslint": "eslint --ext .ts .",
"lint": "pnpm run eslint || true",
"release-patch": "npm version patch -m 'Bump %s' && git push --tags origin HEAD:master",
"release-minor": "npm version minor -m 'Bump %s' && git push --tags origin HEAD:master",
"release-major": "npm version major -m 'Bump %s' && git push --tags origin HEAD:master",
"pretest": "pnpm run build && pnpm run eslint",
"publish-latest": "NPM_CONFIG_OTP=xxx npm publish",
"publish-beta": "NPM_CONFIG_OTP=xxx npm publish --tag beta",
"test": "vitest"
},
"devDependencies": {
"@tsconfig/node16": "1.0.4",
"@types/node": "18.19.68",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"@vitest/coverage-c8": "0.33.0",
"codecov": "3.8.3",
"eslint": "8.57.1",
"eslint-config-prettier": "8.10.0",
"eslint-plugin-prettier": "4.2.1",
"husky": "8.0.3",
"lint-staged": "13.3.0",
"node-notifier": "10.0.1",
"prettier": "2.8.8",
"rimraf": "5.0.10",
"tsup": "6.7.0",
"typescript": "5.7.2",
"vitest": "0.34.6"
},
"lint-staged": {
"*.ts": [
"prettier --write",
"git add"
]
},
"prettier": {
"singleQuote": true,
"printWidth": 120,
"arrowParens": "avoid",
"trailingComma": "none"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}