-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
103 lines (103 loc) · 2.6 KB
/
package.json
File metadata and controls
103 lines (103 loc) · 2.6 KB
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
{
"name": "@knighted/module",
"version": "1.5.0",
"description": "Bidirectional transform for ES modules and CommonJS.",
"type": "module",
"main": "dist/module.js",
"bin": {
"dub": "dist/cli.js"
},
"exports": {
".": {
"import": {
"types": "./dist/module.d.ts",
"default": "./dist/module.js"
},
"require": {
"types": "./dist/cjs/module.d.cts",
"default": "./dist/cjs/module.cjs"
},
"default": "./dist/module.js"
},
"./package.json": "./package.json"
},
"engines": {
"node": ">=22.21.1 <23 || >=24 <25"
},
"engineStrict": true,
"scripts": {
"check-types": "tsc -p tsconfig.test.json",
"prettier": "prettier -w .",
"prettier:check": "prettier -c .",
"lint": "oxlint --config oxlint.json .",
"prepare": "husky",
"test:base": "tsx --test --test-reporter=spec",
"test:cli": "npm run test:base -- test/cli.ts",
"test:module": "npm run test:base -- test/module.ts",
"test": "c8 --reporter=text --reporter=text-summary --reporter=lcov npm run test:base -- test/*.ts",
"build:types": "tsc --emitDeclarationOnly",
"build:dual": "babel-dual-package src --extensions .ts",
"build": "npm run build:types && npm run build:dual",
"cycles": "madge --circular src --extensions ts,js --ts-config tsconfig.json",
"prepack": "npm run build"
},
"keywords": [
"esm",
"commonjs",
"transform",
"cjs-to-esm",
"esm-to-cjs",
"import.meta",
"__dirname",
"__filename"
],
"files": [
"dist"
],
"author": "KCM <knightedcodemonkey@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/knightedcodemonkey/module.git"
},
"bugs": {
"url": "https://github.com/knightedcodemonkey/module/issues"
},
"devDependencies": {
"@knighted/dump": "^1.0.3",
"@types/node": "^22.19.3",
"babel-dual-package": "^1.2.3",
"c8": "^10.1.3",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"madge": "^8.0.0",
"oxlint": "^1.35.0",
"prettier": "^3.7.4",
"tsx": "^4.21.0",
"typescript": "^5.9.3"
},
"dependencies": {
"glob": "^13.0.0",
"magic-string": "^0.30.21",
"oxc-parser": "^0.105.0",
"periscopic": "^4.0.2"
},
"overrides": {
"module-lookup-amd": {
"glob": "^9.0.0"
}
},
"prettier": {
"arrowParens": "avoid",
"printWidth": 90,
"semi": false,
"singleQuote": true
},
"lint-staged": {
"*.{js,ts,tsx,jsx,cjs,mjs}": [
"prettier -c",
"oxlint --config oxlint.json"
],
"*.{json,md,yml,yaml,css,scss,html}": "prettier -c"
}
}