Skip to content

Commit

Permalink
Fixing bin script issues
Browse files Browse the repository at this point in the history
  • Loading branch information
scalvert committed Dec 3, 2021
1 parent bfe3554 commit d3fda0d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <working directory>
$ npx @lint-todos/migrator <working directory>

Options
--removeV1, -r Remove v1 todos from migration

Examples
$ migrate-todos .
$ npx @lint-todos/migrator .
✔ Successfully migrated 10 todos to single file format
```

Expand Down
2 changes: 1 addition & 1 deletion __tests__/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
}
Expand Down
4 changes: 2 additions & 2 deletions bin/migrate-todos.js → bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ const meow = require('meow');
const cli = meow(
`
Usage
$ migrate-todos <working directory>
$ npx @lint-todos/migrator <working directory>
Options
--removeV1, -r Remove v1 todos from migration
Examples
$ migrate-todos .
$ npx @lint-todos/migrator .
✔ Successfully migrated 10 todos to single file format
`,
{
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
},
"license": "MIT",
"author": "scalvert <[email protected]>",
"bin": {
"migrate-todos": "./bin/migrate-todos.js"
},
"bin": "./bin/migrate-todos.js",
"scripts": {
"test": "npm-run-all lint test:*",
"test:jest": "jest",
Expand Down

0 comments on commit d3fda0d

Please sign in to comment.