Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

refactor!: rename 'bin/mocha' to 'bin/mocha.js' (#4863)

Juerg B592905b204fb
diff --git a/.eslintignore b/.eslintignore
index e31c136b..1b6fa387 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -7,6 +7,7 @@ docs/api
docs/_dist
docs/example
out/
+!bin/mocha.js
!lib/mocha.js
test/integration/fixtures
!.*.js
diff --git a/.gitignore b/.gitignore
index a575d78b..adce588d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,6 +6,7 @@ docs/api
mocha.js
mocha.js.map
.karma/
+!bin/mocha.js
!lib/mocha.js
# Bundle debugging
diff --git a/bin/mocha b/bin/mocha.js
old mode 100755
new mode 100644
similarity index 100%
rename from bin/mocha
rename to bin/mocha.js
diff --git a/package.json b/package.json
index 4ea2cc4f..236ec8b9 100644
--- a/package.json
+++ b/package.json
@@ -36,7 +36,7 @@
"logo": "https://cldup.com/S9uQ-cOLYz.svg",
"notifyLogo": "https://ibin.co/4QuRuGjXvl36.png",
"bin": {
- "mocha": "./bin/mocha",
+ "mocha": "./bin/mocha.js",
"_mocha": "./bin/_mocha"
},
"directories": {
@@ -155,7 +155,7 @@
"webpack-cli": "^4.9.1"
},
"files": [
- "bin/*mocha",
+ "bin/*mocha*",
"assets/growl/*.png",
"lib/**/*.{js,html,json}",
"index.js",