Skip to content

Commit f5374e2

Browse files
author
Charlike Mike Reagent
committed
fix: move src/cli.js to root
tweaks because of ascjs, see WebReflection/ascjs#10 Signed-off-by: Charlike Mike Reagent <olsten.larck@gmail.com>
1 parent c5d94d6 commit f5374e2

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.verb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Project is [semantically](https://semver.org) & automatically released on [Circl
3535
<!-- toc -->
3636

3737
## Install
38-
This project requires [**Node.js**][nodeversion-url] **{%= engines.node %}**. Install it using [**yarn**](https://yarnpkg.com) or [**npm**](https://npmjs.com).
38+
This project requires [**Node.js**](https://nodejs.org) **{%= engines.node %}**. Install it using [**yarn**](https://yarnpkg.com) or [**npm**](https://npmjs.com).
3939
_We highly recommend to use Yarn when you think to contribute to this project._
4040

4141
```bash

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Project is [semantically](https://semver.org) & automatically released on [Circl
4040
- [License](#license)
4141

4242
## Install
43-
This project requires [**Node.js**][nodeversion-url] **^8.9.0 || ^10.6.0**. Install it using [**yarn**](https://yarnpkg.com) or [**npm**](https://npmjs.com).
43+
This project requires [**Node.js**](https://nodejs.org) **^8.9.0 || ^10.6.0**. Install it using [**yarn**](https://yarnpkg.com) or [**npm**](https://npmjs.com).
4444
_We highly recommend to use Yarn when you think to contribute to this project._
4545

4646
```bash

src/cli.js renamed to cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const esm = require('esm');
1515
const mri = require('mri');
1616

1717
const esmRequire = esm(module);
18-
const { normalizeOptions, lintText, lintFiles } = esmRequire('./index');
18+
const { normalizeOptions, lintText, lintFiles } = esmRequire('./src/index');
1919
const { input, exit, warnings, extensions, reporter } = normalizeOptions();
2020

2121
const argv = mri(proc.argv.slice(2), {

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "Apache-2.0",
55
"licenseStart": "2018",
66
"scripts": {
7-
"lint": "node src/cli.js",
7+
"lint": "node cli.js",
88
"test": "nyc --require esm asia",
99
"gitadd": "git status --porcelain && git add -A",
1010
"commit-dry": "yarn gitadd && gitcommit -sS",
@@ -36,9 +36,10 @@
3636
},
3737
"files": [
3838
"src",
39-
"dist"
39+
"dist",
40+
"cli.js"
4041
],
41-
"bin": "src/cli.js",
42+
"bin": "cli.js",
4243
"main": "dist/index.js",
4344
"module": "src/index.js",
4445
"version": "0.0.0-semantically-released",

0 commit comments

Comments
 (0)