forked from ratson/is-main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
74 lines (74 loc) · 1.45 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
{
"name": "is-main",
"version": "0.3.4",
"description": "Check if current module is main module.",
"type": "module",
"main": "./dist/cjs/index.js",
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"scripts": {
"build": "tsc -b",
"lint": "xo",
"pretest": "npm run build",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@types/jest": "^27.4.1",
"@types/node": "^17.0.23",
"cross-env": "^7.0.3",
"esm": "^3.2.25",
"execa": "^6.1.0",
"jest": "^27.5.1",
"lint-staged": "^12.3.7",
"simple-git-hooks": "^2.7.0",
"ts-jest": "^27.1.4",
"ts-node": "^10.7.0",
"typescript": "next",
"xo": "^0.48.0"
},
"repository": "ratson/is-main",
"license": "MIT",
"engines": {
"node": ">= 8"
},
"files": [
"*.md",
"src",
"dist",
"!**/*.tsbuildinfo"
],
"keywords": [
"require.main",
"main-module",
"import",
"process",
"main",
"esm",
"es-main",
"es-module"
],
"lint-staged": {
"*.js": [
"xo --fix"
]
},
"prettier": {
"singleQuote": false,
"useTabs": false,
"bracketSpacing": true
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged",
"pre-push": "npm run test"
},
"xo": {
"prettier": true,
"ignores": [
"test/fixtures"
]
}
}