Skip to content

Commit

Permalink
Rename CLI command from webstore to chrome-webstore-upload (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Sep 18, 2021
1 parent 51eddc7 commit 45fd16b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "CLI Utility to quickly upload + publish extensions to the Chrome Web Store",
"repository": "fregante/chrome-webstore-upload-cli",
"bin": {
"webstore": "index.js"
"chrome-webstore-upload": "cli.js"
},
"type": "module",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function env(vars = {}) {

test('Exits w/ message when param required by "Web Store Upload" is not provided', async t => {
try {
await execa('./index.js', ['upload', '--source', 'test.zip']);
await execa('./cli.js', ['upload', '--source', 'test.zip']);
t.fail('Should have errored');
} catch (error) {
t.regex(error.message, /Option ".+" is required/);
Expand All @@ -22,7 +22,7 @@ test('Exits w/ message when param required by "Web Store Upload" is not provided

test('It should not exit when --source param is not provided', async t => {
try {
await execa('./index.js', ['upload'], {
await execa('./cli.js', ['upload'], {
env: env(),
});
t.pass();
Expand Down

0 comments on commit 45fd16b

Please sign in to comment.