-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
96 lines (96 loc) · 2.53 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
{
"name": "dirfilename",
"version": "0.0.0-development",
"description": "Alternatives to `__dirname` and `__filename` when using ES modules.",
"type": "module",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"exports": {
".": {
"types": "./build/index.d.ts",
"default": "./build/index.js"
},
"./async": {
"types": "./build/async/index.d.ts",
"default": "./build/async/index.js"
}
},
"typesVersions": {
"*": {
"async": [
"./build/async/index.d.ts"
]
}
},
"scripts": {
"prepare": "is-ci || husky install",
"node": "node --loader ts-node/esm",
"start": "node --loader ts-node/esm src/index.ts",
"lint": "eslint . --cache --fix --ext js,ts",
"format": "prettier --write '**/*.{js,ts,json}'",
"watch": "vitest watch --coverage",
"test": "vitest run --coverage",
"test-ci": "vitest related src/index.ts src/async/index.ts --coverage --run",
"build": "rimraf ./build && tsc",
"semantic-release": "semantic-release"
},
"lint-staged": {
"src/**/*.{js,ts}": [
"npm run lint",
"npm run format",
"npm run test-ci"
]
},
"engines": {
"node": ">=16.0.0"
},
"packageManager": "npm@8.5.0",
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"repository": {
"type": "git",
"url": "https://github.com/keidrun/dirfilename.git"
},
"keywords": [
"__dirname",
"__filename",
"dirname",
"filename",
"import.meta.url",
"esm"
],
"author": "keidrun",
"license": "MIT",
"bugs": {
"url": "https://github.com/keidrun/dirfilename/issues"
},
"homepage": "https://github.com/keidrun/dirfilename#readme",
"devDependencies": {
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/github": "^8.0.4",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@tsconfig/node16-strictest-esm": "^1.0.0",
"@types/node": "^17.0.23",
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
"c8": "^7.11.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.12.0",
"eslint-config-prettier": "^8.5.0",
"husky": "^7.0.4",
"is-ci": "^3.0.1",
"lint-staged": "^12.3.7",
"prettier": "^2.6.2",
"rimraf": "^3.0.2",
"semantic-release": "^19.0.2",
"ts-node": "^10.7.0",
"typescript": "^4.6.3",
"vitest": "^0.14.1"
}
}