-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
100 lines (100 loc) · 2.56 KB
/
package.json
File metadata and controls
100 lines (100 loc) · 2.56 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
{
"name": "@knighted/module",
"version": "1.0.0-beta.1",
"description": "Transforms differences between ES modules and CommonJS.",
"type": "module",
"main": "dist/module.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"
},
"imports": {
"#parse": "./src/parse.js",
"#format": "./src/format.js",
"#utils/*.js": "./src/utils/*.js",
"#walk": "./src/walk.js",
"#helpers/*.js": "./src/helpers/*.js",
"#formatters/*.js": "./src/formatters/*.js"
},
"engines": {
"node": ">=20.11.0"
},
"engineStrict": true,
"scripts": {
"check-types": "tsc -p tsconfig.test.json",
"prettier": "prettier -w .",
"prettier:check": "prettier -c .",
"lint": "oxlint --config oxlint.json .",
"prepare": "husky install",
"test": "c8 --reporter=text --reporter=text-summary --reporter=lcov tsx --test --test-reporter=spec test/*.ts",
"build:types": "tsc --emitDeclarationOnly",
"build:dual": "babel-dual-package src --extensions .ts",
"build": "npm run build:types && npm run build:dual",
"prepack": "npm run build"
},
"keywords": [
"transform",
"es module",
"commonjs",
"require",
"require.resolve",
"import.meta.url",
"import.meta.dirname",
"__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.13.17",
"babel-dual-package": "^1.2.3",
"c8": "^10.1.3",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"oxlint": "^1.35.0",
"prettier": "^3.7.4",
"tsx": "^4.21.0",
"typescript": "^5.9.3"
},
"dependencies": {
"@knighted/specifier": "^2.0.9",
"magic-string": "^0.30.21",
"node-module-type": "^1.0.4",
"oxc-parser": "^0.105.0",
"periscopic": "^4.0.2"
},
"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"
}
}