forked from acrazing/dpdm
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
106 lines (106 loc) · 3.1 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "dpdm-fast",
"version": "1.0.7",
"private": false,
"description": "Analyze circular dependencies in your JavaScript/TypeScript projects with Rust.",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
},
"keywords": [
"dpdm",
"circular",
"dependency",
"dependencies",
"detect",
"static",
"JavaScript",
"TypeScript",
"Rust"
],
"author": {
"name": "GrinZero",
"email": "[email protected]"
},
"main": "lib/index.js",
"module": "lib/index.mjs",
"types": "lib/index.d.ts",
"files": [
"assets/",
"lib/",
"src/",
"target/release/dpdm",
"scripts/dpdm.js",
"target/aarch64-apple-darwin/release/dpdm",
"target/x86_64-apple-darwin/release/dpdm",
"target/aarch64-unknown-linux-musl/release/dpdm",
"target/x86_64-unknown-linux-musl/release/dpdm",
"target/x86_64-pc-windows-gnu/release/dpdm"
],
"bin": {
"dpdm": "scripts/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",
"start": "npm run clean && npm run build:esm -- --watch",
"test": "echo 'Pass'",
"demo": "tsx ./src/bin/dpdm.ts -T ./example/index.js"
},
"repository": {
"type": "git",
"url": "https://github.com/GrinZero/dpdm"
},
"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"
}
}