Skip to content
This repository was archived by the owner on Aug 19, 2019. It is now read-only.

Commit 0d91c59

Browse files
author
deepsweet
committed
🔧 remove resolving ./tasks by default
1 parent 02a3e57 commit 0d91c59

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ npm i -S start-simple-cli
1919
## Usage
2020

2121
```
22-
start [tasks file or moduleID to require] <tasks runner name>
22+
start <tasks file or moduleID to require> <tasks runner name>
2323
```
2424

25-
`[tasks file or moduleID to require]` is optional and equal to `./tasks` by default. See [documentation](https://github.com/start-runner/start#readme) for details.
25+
See [documentation](https://github.com/start-runner/start#readme) for details.

lib/index.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22
import path from 'path';
33
import requireCwd from 'req-cwd';
44

5-
if (process.argv.length < 3) {
6-
throw 'Usage: start [tasks file or moduleID to require] <tasks runner name>';
5+
if (process.argv.length < 4) {
6+
throw 'Usage: start <tasks file or moduleID to require> <tasks runner name>';
77
}
88

9-
let tasksPath = process.argv[2];
10-
let tasksRunnerName = process.argv[3];
11-
12-
if (typeof tasksRunnerName === 'undefined') {
13-
tasksRunnerName = tasksPath;
14-
tasksPath = './tasks';
15-
}
9+
const tasksPath = process.argv[2];
10+
const tasksRunnerName = process.argv[3];
1611

1712
// `start start-my-preset` or `start ./tasks-file`
1813
let tasks = requireCwd.silent(tasksPath);

0 commit comments

Comments
 (0)