-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
package.json
166 lines (166 loc) · 5.68 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"name": "ctix",
"version": "2.7.0",
"description": "Automatic create index.ts file",
"scripts": {
"clean": "rimraf ./dist",
"dev": "cross-env TS_NODE_PROJECT=tsconfig.json node -r ts-node/register -r tsconfig-paths/register ./src/cli.ts",
"debug": "cross-env TS_NODE_PROJECT=tsconfig.json node -r ts-node/register -r tsconfig-paths/register --nolazy --inspect-brk=9229 ./src/cli.ts ",
"test": "cross-env NODE_ENV=develop vitest --run --coverage",
"test:ci": "vitest --run --coverage",
"test:debug": "node --nolazy --inspect ./node_modules/vitest/bin/vitest --runInBand",
"build": "pnpm run clean && tsc --incremental --project tsconfig.prod.json",
"ctix": "cross-env TS_NODE_PROJECT=tsconfig.json node -r ts-node/register -r tsconfig-paths/register ./src/cli.ts build -p tsconfig.json -o ./src --overwrite --no-backup",
"ctix-rm": "rimraf src/index.ts",
"dts": "tsc -p tsconfig.dts.json",
"dts-alias": "tsc-alias -p tsconfig.dts.json",
"dts-gen": "rollup --config ./.configs/rollup.config.mjs",
"dts-pack": "run-s dts dts-alias dts-gen dts-rm",
"dts-rm": "rimraf dist/types/origin",
"esbuild-lib-cjs": "FORMAT=cjs node .configs/esbuild.mjs",
"esbuild-lib-esm": "FORMAT=esm node .configs/esbuild.mjs",
"bundle-lib-pack": "run-p esbuild-lib-cjs esbuild-lib-esm dts-pack",
"bundle-lib": "run-s ctix bundle-lib-pack ctix-rm",
"bundle-cli": "FORMAT=cjs node .configs/esbuild.cli.mjs",
"bundle": "run-s clean bundle-cli bundle-lib",
"pub": "pnpm run bundle && cross-env RELEASE_MODE=true pnpm publish --registry http://localhost:8901 --force",
"unpub": "pnpm unpublish $npm_package_name@$npm_package_version --registry http://localhost:8901",
"pub:prod": "pnpm run bundle && cross-env RELEASE_MODE=true pnpm publish --access=public",
"lint": "eslint --cache .",
"lint-staged": "lint-staged",
"commitlint": "commitlint",
"prettier": "prettier --write src/**/*.ts",
"dd": "deps-diff md -d prod -d dev --title-list-type '*' --deps-list-type '*' --content-list-type '*'",
"prepublishOnly": "node prepublish.js",
"prepare": "husky install"
},
"repository": {
"type": "git",
"url": "git+https://github.com/imjuni/ctix.git"
},
"engines": {
"node": ">=18"
},
"keywords": [],
"author": "ByungJoon Lee",
"license": "MIT",
"bugs": {
"url": "https://github.com/imjuni/ctix/issues"
},
"homepage": "https://imjuni.github.io/ctix",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"require": {
"require": "./dist/cjs/index.cjs",
"default": "./dist/cjs/index.cjs",
"types": "./dist/types/index.d.ts"
},
"import": {
"import": "./dist/esm/index.mjs",
"default": "./dist/esm/index.mjs",
"types": "./dist/types/index.d.ts"
}
}
},
"files": [
"dist"
],
"bin": {
"ctix": "./dist/cjs/cli.cjs"
},
"devDependencies": {
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@tsconfig/node18": "^18.2.2",
"@types/cli-progress": "^3.11.4",
"@types/debug": "^4.1.10",
"@types/inquirer": "^9.0.6",
"@types/minimatch": "^5.1.2",
"@types/minimist": "^1.2.4",
"@types/node": "^20.8.7",
"@types/source-map-support": "^0.5.9",
"@types/type-check": "^0.3.30",
"@types/yargs": "^17.0.32",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"@vitest/coverage-v8": "^1.5.0",
"cross-env": "^7.0.3",
"deps-diff": "^1.0.2",
"esbuild": "^0.20.2",
"eslint": "^8.57.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^48.2.3",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-prettier": "^5.1.3",
"fast-copy": "^3.0.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.5",
"prettier-eslint": "^16.3.0",
"prettier-plugin-organize-imports": "^4.0.0",
"read-pkg": "^5.2.0",
"rimraf": "^5.0.5",
"rollup": "^4.14.2",
"rollup-plugin-dts": "^6.1.0",
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.8",
"tsconfig-paths": "^4.2.0",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.5.0",
"vue": "^3.4.21"
},
"dependencies": {
"chalk": "^4.1.2",
"change-case": "^4.1.2",
"cli-progress": "^3.12.0",
"comment-json": "^4.2.4",
"comment-parser": "^1.4.1",
"consola": "^3.2.3",
"dayjs": "^1.11.10",
"eta": "^3.4.0",
"filenamify": "^4.3.0",
"find-up": "^5.0.0",
"fuse.js": "^7.0.0",
"glob": "^10.3.12",
"inquirer": "^8.2.5",
"inquirer-ts-checkbox-plus-prompt": "^1.0.1",
"json5": "^2.2.3",
"jsonc-parser": "^3.2.1",
"mathjs": "^12.0.0",
"minimist": "^1.2.8",
"my-easy-fp": "^0.22.0",
"my-node-fp": "^0.10.3",
"my-only-either": "^1.3.0",
"ora": "^5.4.1",
"pathe": "^1.1.2",
"source-map-support": "^0.5.21",
"ts-morph": "^23.0.0",
"ts-pattern": "^5.0.5",
"tslib": "^2.6.2",
"type-check": "^0.4.0",
"type-fest": "^4.15.0",
"yaml": "^2.4.1",
"yargs": "^17.7.2"
},
"peerDependencies": {
"prettier": ">=3",
"prettier-plugin-organize-imports": ">=3",
"typescript": ">=5"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"cross-env NODE_ENV=production eslint --cache"
],
"*.{js,jsx,ts,tsx},*.json,.{eslintrc.cjs,prettierrc}": [
"cross-env NODE_ENV=production prettier --ignore-path .eslintignore --parser json --write"
]
}
}