From d3fda0d74b3cd7b31d1a45f220f9cf59c7139aa1 Mon Sep 17 00:00:00 2001 From: Steve Calvert Date: Fri, 3 Dec 2021 09:16:24 -0800 Subject: [PATCH] Fixing bin script issues --- README.md | 4 ++-- __tests__/index-test.js | 2 +- bin/{migrate-todos.js => index.js} | 4 ++-- package.json | 4 +--- 4 files changed, 6 insertions(+), 8 deletions(-) rename bin/{migrate-todos.js => index.js} (96%) diff --git a/README.md b/README.md index 78318c2..7b73f15 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,13 @@ Migration tool to migrate lint todo files from multi-file storage to single-file A migration tool for lint todos Usage - $ migrate-todos + $ npx @lint-todos/migrator Options --removeV1, -r Remove v1 todos from migration Examples - $ migrate-todos . + $ npx @lint-todos/migrator . ✔ Successfully migrated 10 todos to single file format ``` diff --git a/__tests__/index-test.js b/__tests__/index-test.js index 959a907..64a5731 100644 --- a/__tests__/index-test.js +++ b/__tests__/index-test.js @@ -114,7 +114,7 @@ add|ember-template-lint|no-implicit-this|26|46|26|46|3f2abc39f93d5bc0ea6587f9bc3 return execa( process.execPath, - [require.resolve('../bin/migrate-todos.js'), ...args], + [require.resolve('../bin/index.js'), ...args], Object.assign({}, defaults, options) ); } diff --git a/bin/migrate-todos.js b/bin/index.js similarity index 96% rename from bin/migrate-todos.js rename to bin/index.js index c4236f5..3030316 100644 --- a/bin/migrate-todos.js +++ b/bin/index.js @@ -11,13 +11,13 @@ const meow = require('meow'); const cli = meow( ` Usage - $ migrate-todos + $ npx @lint-todos/migrator Options --removeV1, -r Remove v1 todos from migration Examples - $ migrate-todos . + $ npx @lint-todos/migrator . ✔ Successfully migrated 10 todos to single file format `, { diff --git a/package.json b/package.json index 428b341..a32748b 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,7 @@ }, "license": "MIT", "author": "scalvert ", - "bin": { - "migrate-todos": "./bin/migrate-todos.js" - }, + "bin": "./bin/migrate-todos.js", "scripts": { "test": "npm-run-all lint test:*", "test:jest": "jest",