Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Commit

Permalink
fix: Remove commander-remaining-args
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed Jul 3, 2020
1 parent 3dd0dab commit 46ae086
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 24 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
},
"dependencies": {
"commander": "5.1.0",
"commander-remaining-args": "1.2.0",
"fs-extra": "9.0.1",
"logdown": "3.3.1",
"npm-packlist": "2.1.2"
Expand All @@ -18,7 +17,6 @@
"@ffflorian/semantic-release-config": "0.2.1",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/git": "9.0.0",
"@types/commander-remaining-args": "1.2.1",
"@types/fs-extra": "9.0.1",
"@types/node": "~14",
"@types/npm-packlist": "1.1.1",
Expand Down
5 changes: 1 addition & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node

import program from 'commander';
import getRemainingArgs from 'commander-remaining-args';
import fs from 'fs-extra';
import path from 'path';

Expand All @@ -26,13 +25,11 @@ program
.allowUnknownOption()
.parse(process.argv);

const remainingArgs = getRemainingArgs(program as any);

const flatPublisher = new PublishFlat({
dirToFlatten: program.flatten,
outputDir: program.output,
packageDir: program.dir || '.',
publishArguments: remainingArgs,
publishArguments: program.args,
useYarn: program.yarn || false,
});

Expand Down
18 changes: 0 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,6 @@
resolved "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==

"@types/commander-remaining-args@1.2.1":
version "1.2.1"
resolved "https://registry.npmjs.org/@types/commander-remaining-args/-/commander-remaining-args-1.2.1.tgz#7847b9ca5330c344a5361507a53562e11ebe94fe"
integrity sha512-3gQfZEhuO8hh4GIqwNzy9ai729gKdOKpUFA49ZLTnUYoZWnUDbnkxwhIBav+KG2w4k8q0aSVlHUamJfnMsOlnQ==
dependencies:
"@types/node" "*"
commander "^4.0.1"

"@types/eslint-visitor-keys@^1.0.0":
version "1.0.0"
resolved "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d"
Expand Down Expand Up @@ -1078,21 +1070,11 @@ combined-stream@^1.0.6, combined-stream@~1.0.6:
dependencies:
delayed-stream "~1.0.0"

commander-remaining-args@1.2.0:
version "1.2.0"
resolved "https://registry.npmjs.org/commander-remaining-args/-/commander-remaining-args-1.2.0.tgz#6fab4cce4a59db1698121f59105364adcb0b4c68"
integrity sha512-yH0yRUtHhJ/389HWgQlEMAwqKXMZr/JJH4xqDIzXCisNy2mS6YSAe3WncgjxZvhLJqZPxJn8MivRK+B0lSNXPw==

commander@5.1.0, commander@^5.1.0:
version "5.1.0"
resolved "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae"
integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==

commander@^4.0.1:
version "4.1.1"
resolved "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==

commander@~2.20.3:
version "2.20.3"
resolved "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
Expand Down

0 comments on commit 46ae086

Please sign in to comment.