Skip to content

Commit

Permalink
fix: move src/cli.js to root
Browse files Browse the repository at this point in the history
tweaks because of ascjs, see WebReflection/ascjs#10

Signed-off-by: Charlike Mike Reagent <olsten.larck@gmail.com>
  • Loading branch information
Charlike Mike Reagent committed Jul 24, 2018
1 parent c5d94d6 commit f5374e2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .verb.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Project is [semantically](https://semver.org) & automatically released on [Circl
<!-- toc -->

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

```bash
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Project is [semantically](https://semver.org) & automatically released on [Circl
- [License](#license)

## Install
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).
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).
_We highly recommend to use Yarn when you think to contribute to this project._

```bash
Expand Down
2 changes: 1 addition & 1 deletion src/cli.js → cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const esm = require('esm');
const mri = require('mri');

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

const argv = mri(proc.argv.slice(2), {
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"licenseStart": "2018",
"scripts": {
"lint": "node src/cli.js",
"lint": "node cli.js",
"test": "nyc --require esm asia",
"gitadd": "git status --porcelain && git add -A",
"commit-dry": "yarn gitadd && gitcommit -sS",
Expand Down Expand Up @@ -36,9 +36,10 @@
},
"files": [
"src",
"dist"
"dist",
"cli.js"
],
"bin": "src/cli.js",
"bin": "cli.js",
"main": "dist/index.js",
"module": "src/index.js",
"version": "0.0.0-semantically-released",
Expand Down

0 comments on commit f5374e2

Please sign in to comment.