Skip to content

Commit

Permalink
fix: convert bin/ to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Dec 28, 2021
1 parent d97a2b4 commit a932cb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/eslint-interactive → bin/eslint-interactive.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env -S node -r source-map-support/register

const { run } = require('../dist/index.js');
import { run } from '../dist/index.js';

run({
argv: process.argv,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "module",
"scripts": {
"build": "tsc -p tsconfig.src.json",
"dev": "tsc-watch -p tsconfig.src.json --onSuccess 'bin/eslint-interactive fixtures --rulesdir fixtures/rules --ext .js,.jsx,.mjs'",
"dev": "tsc-watch -p tsconfig.src.json --onSuccess 'bin/eslint-interactive.js fixtures --rulesdir fixtures/rules --ext .js,.jsx,.mjs'",
"lint": "run-s -c lint:*",
"lint:tsc": "run-s -c lint:tsc:*",
"lint:tsc:src": "tsc -p tsconfig.src.json --noEmit",
Expand Down Expand Up @@ -73,7 +73,7 @@
"registry": "https://registry.npmjs.org/"
},
"bin": {
"eslint-interactive": "bin/eslint-interactive"
"eslint-interactive": "bin/eslint-interactive.js"
},
"keywords": [
"eslint"
Expand Down

0 comments on commit a932cb1

Please sign in to comment.