-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
122 lines (122 loc) · 3.23 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "dpdm",
"version": "3.7.1",
"description": "Analyze circular dependencies in your JavaScript/TypeScript projects.",
"keywords": [
"circular",
"dependency",
"dependencies",
"detect",
"static",
"JavaScript",
"TypeScript"
],
"author": "acrazing <joking.young@gmail.com>",
"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",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "git@github.com:acrazing/dpdm.git"
},
"license": "MIT",
"devDependencies": {
"@types/jest": "^26.0.24",
"husky": "^7.0.1",
"jest": "^27.0.6",
"lint-staged": "^11.1.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2",
"rollup": "^2.56.0",
"ts-jest": "^27.0.4",
"ts-node": "^10.1.0"
},
"dependencies": {
"@types/fs-extra": "^9.0.12",
"@types/glob": "^7.1.4",
"@types/yargs": "^17.0.2",
"chalk": "^4.1.2",
"fs-extra": "^10.0.0",
"glob": "^7.1.7",
"ora": "^5.4.1",
"tslib": "^2.3.0",
"typescript": "^4.3.5",
"yargs": "^17.1.0"
},
"cliVersion": "8.8.4",
"lint-staged": {
"*.{js,jsx,ts,tsx,json,css,less,scss,md}": [
"prettier --write"
]
},
"jest": {
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node",
"mjs"
],
"cacheDirectory": ".cache/jest",
"collectCoverage": false,
"collectCoverageFrom": [
"<rootDir>/src/**/*.{ts,tsx}",
"!**/*.d.ts"
],
"coverageDirectory": "temp/coverage",
"globals": {
"__DEV__": true,
"ENV": {}
},
"testMatch": [
"<rootDir>/src/**/*.spec.{ts,tsx}"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
}
},
"prettier": {
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"endOfLine": "lf"
}
}