-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
51 lines (51 loc) · 1.39 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
{
"name": "es-main",
"version": "1.3.0",
"description": "Test if an ES module is run directly (require.main replacement)",
"main": "main.js",
"type": "module",
"types": "main.d.ts",
"repository": {
"type": "git",
"url": "git://github.com/tschaub/es-main.git"
},
"files": [
"main.js",
"main.d.ts",
"main.d.ts.map"
],
"scripts": {
"lint": "eslint .",
"pretest": "npm run lint",
"generate-types": "npx tsc -declaration --declarationMap --emitDeclarationOnly --noEmit false",
"preversion": "npm run generate-types",
"test:with-extension": "node test/test.js",
"test:without-extension": "node test/test",
"test:without-node": "./test/test.js",
"test:resolve-index": "node test/resolve-index",
"test:resolve-main": "node test/resolve-main",
"test:repl": "node --eval \"import('./main.js').then(mod => {if (mod.default({})) throw new Error('expected false')})\"",
"test:types": "npx tsc --noEmit",
"test": "npm-run-all test:*"
},
"keywords": [
"require.main",
"process.mainModule",
"modules",
"import.meta.main"
],
"license": "MIT",
"devDependencies": {
"@types/node": "^22.2.0",
"eslint": "^8.18.0",
"eslint-config-tschaub": "^14.1.2",
"npm-run-all": "^4.1.5",
"typescript": "^5.2.2"
},
"eslintConfig": {
"extends": "tschaub",
"rules": {
"jsdoc/check-examples": "off"
}
}
}