Skip to content

Commit 7d92bd2

Browse files
committed
fix: update package configuration and TypeScript settings, change chalk version and bin path
1 parent 9d06b4d commit 7d92bd2

4 files changed

Lines changed: 11 additions & 24 deletions

File tree

package.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
"description": "Github 레포지토리 및 사용자 정보를 분석하고 가져오는 CLI",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
7-
"type": "module",
87
"bin": {
9-
"github": "dist/index.js"
8+
"github": "./dist/index.js"
109
},
1110
"repository": {
1211
"type": "git"
@@ -32,9 +31,8 @@
3231
"@types/node": "^22.13.5",
3332
"axios": "^1.8.2",
3433
"biome": "^0.3.3",
35-
"chalk": "5.4.1",
34+
"chalk": "4.1.2",
3635
"commander": "^13.1.0",
37-
"github-cli.ts": "link:../../Users/gaons/AppData/Local/pnpm/global/5/node_modules/github-cli.ts",
3836
"ts-node": "^10.9.2",
3937
"typescript": "^5.7.3"
4038
},
@@ -50,10 +48,5 @@
5048
"packageManager": "pnpm@10.6.2",
5149
"engines": {
5250
"node": ">=18.0.0"
53-
},
54-
"pnpm": {
55-
"overrides": {
56-
"github-cli.ts": "link:../../Users/gaons/AppData/Local/pnpm/global/5/node_modules/github-cli.ts"
57-
}
5851
}
5952
}

pnpm-lock.yaml

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { getUserData } from "./commands/user";
88
const program = new Command();
99

1010
program
11-
.name("github-cli.ts")
11+
.name("github")
1212
.description("Github 정보를 분석하고 가져오는 CLI")
1313
.version("0.0.0", "-v", "--version")
1414
.showHelpAfterError();

tsconfig.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "ES2020" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
14+
"target": "ES2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1616
// "jsx": "preserve", /* Specify what JSX code is generated. */
1717
"experimentalDecorators": true /* Enable experimental support for legacy experimental decorators. */,
@@ -25,9 +25,9 @@
2525
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
2626

2727
/* Modules */
28-
"module": "ESNext" /* Specify what module code is generated. */,
28+
"module": "CommonJS" /* Specify what module code is generated. */,
2929
// "rootDir": "./", /* Specify the root folder within your source files. */
30-
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
30+
// "moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
3131
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3232
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3333
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
@@ -52,7 +52,7 @@
5252
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
5353
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
5454
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55-
"sourceMap": true /* Create source map files for emitted JavaScript files. */,
55+
// "sourceMap": true /* Create source map files for emitted JavaScript files. */,
5656
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
5757
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
5858
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
@@ -106,6 +106,6 @@
106106
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
107107
"skipLibCheck": true /* Skip type checking all .d.ts files. */
108108
},
109-
"include": ["./src/**/*.ts"],
110-
"exclude": ["node_modules"]
109+
"include": ["./src"],
110+
"exclude": ["node_modules", "dist"]
111111
}

0 commit comments

Comments
 (0)