Skip to content

Commit 20fe7c1

Browse files
committed
Cleanup package.json dependencies
1 parent daf5ab0 commit 20fe7c1

File tree

4 files changed

+33
-8
lines changed

4 files changed

+33
-8
lines changed

tools/cli/src/index.ts

+32
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,38 @@ import { validate } from '@lg-tools/validate';
55
import { Command, Option } from 'commander';
66

77
const cli = new Command('lg');
8+
cli.description('Command line tools for the LeafyGreen UI library by MongoDB');
9+
10+
/** Build */
11+
// TODO:
12+
cli
13+
.command('build')
14+
.description('Uses the local `turbo.json` to build packages in the repo')
15+
.argument('[packages...]', 'A list of packages to build')
16+
.option('--packagesOnly', 'Only build packages (no TS)', false)
17+
.option('--tsOnly', 'Only build TypeScript (no packages)', false);
18+
19+
/** Create */
20+
// TODO:
21+
cli
22+
.command('create')
23+
.description('Creates a new package with the provided name')
24+
.argument('<name>', 'The name of the package')
25+
.option('-s, --scope', 'The npm scope of the new package', '@leafygreen-ui');
26+
27+
/** Install */
28+
// TODO:
29+
cli
30+
.command('install')
31+
.description('Installs LeafyGreen packages to the current app')
32+
.argument('[packages...]', 'A list of packages to install');
33+
34+
/** Update */
35+
// TODO:
36+
cli
37+
.command('update')
38+
.description('Updates LeafyGreen packages to the latest version')
39+
.argument('[packages...]', 'A list of packages to update');
840

941
/** Test */
1042
cli

tools/link/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"access": "public"
1313
},
1414
"dependencies": {
15-
"chalk": "^4.1.2",
16-
"commander": "^11.0.0"
15+
"chalk": "^4.1.2"
1716
}
1817
}

tools/lint/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"@typescript-eslint/eslint-plugin": "^5.60.0",
2121
"@typescript-eslint/parser": "^5.60.0",
2222
"chalk": "^4.1.2",
23-
"commander": "^11.0.0",
2423
"eslint": "^8.43.0",
2524
"eslint-config-prettier": "^8.8.0",
2625
"eslint-plugin-import": "^2.27.0",

yarn.lock

-5
Original file line numberDiff line numberDiff line change
@@ -6542,11 +6542,6 @@ commander@^8.3.0:
65426542
resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66"
65436543
integrity sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==
65446544

6545-
commander@^9.4.0:
6546-
version "9.4.0"
6547-
resolved "https://registry.yarnpkg.com/commander/-/commander-9.4.0.tgz#bc4a40918fefe52e22450c111ecd6b7acce6f11c"
6548-
integrity sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==
6549-
65506545
commander@^9.4.1:
65516546
version "9.5.0"
65526547
resolved "https://registry.yarnpkg.com/commander/-/commander-9.5.0.tgz#bc08d1eb5cedf7ccb797a96199d41c7bc3e60d30"

0 commit comments

Comments
 (0)