-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
92 lines (92 loc) · 2.78 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
{
"name": "dpdm",
"version": "3.15.0",
"description": "Analyze circular dependencies in your JavaScript/TypeScript projects.",
"keywords": [
"circular",
"dependency",
"dependencies",
"detect",
"static",
"JavaScript",
"TypeScript"
],
"author": "acrazing <[email protected]>",
"main": "lib/index.js",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",
"files": [
"assets/",
"lib/",
"src/"
],
"bin": {
"dpdm": "lib/bin/dpdm.js"
},
"sideEffects": [
"*.css",
"*.less",
"*.scss"
],
"scripts": {
"build": "run-s clean && run-p build:cjs build:esm && run-s build:esm:rename build:cjs:rename",
"build:cjs": "tsc --outDir cjs --module commonjs",
"build:cjs:rename": "run-p build:cjs:rename:js build:cjs:rename:map",
"build:cjs:rename:js": "find ./cjs -type f -name '*.js' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%",
"build:cjs:rename:map": "find ./cjs -type f -name '*.js.map' | sed -E 's/^\\.\\/cjs\\/(.+)$/\\1/' | xargs -I % mv ./cjs/% ./lib/%",
"build:esm": "tsc --outDir lib --module esnext --declaration",
"build:esm:rename": "run-p build:esm:rename:js build:esm:rename:map",
"build:esm:rename:js": "find ./lib -type f -name '*.js' | sed -E 's/^(.+)\\.js$/\\1/' | xargs -I % mv %.js %.mjs",
"build:esm:rename:map": "find ./lib -type f -name '*.js.map' | sed -E 's/^(.+)\\.js\\.map$/\\1/' | xargs -I % mv %.js.map %.mjs.map",
"clean": "rm -rf cjs esm lib build temp .cache",
"prepublishOnly": "run-s test build",
"start": "npm run clean && npm run build:esm -- --watch",
"test": "jest",
"demo": "ts-node -T ./src/bin/dpdm.ts ./example/index.js",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "[email protected]:acrazing/dpdm.git"
},
"license": "MIT",
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.13",
"@types/yargs": "^17.0.33",
"husky": "^9.1.6",
"jest": "^29.7.0",
"lint-staged": "^15.2.10",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"pretty-quick": "^4.0.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2"
},
"dependencies": {
"chalk": "^4.1.2",
"fs-extra": "^11.2.0",
"glob": "^10.3.10",
"ora": "^5.4.1",
"tslib": "^2.7.0",
"typescript": "^5.6.3",
"yargs": "^17.7.2"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown"
},
"prettier": {
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"endOfLine": "lf"
},
"packageManager": "[email protected]+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
}