Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
fix: 🐛 Allow usage of package on win32
Browse files Browse the repository at this point in the history
In win32, command line parameters must be formatted with double quotes
or it will fail if the commit message contains a whitespace. Usage of
npm package 'any-shell-escape' automatically choses the correct quotes
to use.

✅ Closes: #21
  • Loading branch information
unknown authored and unknown committed Mar 25, 2019
1 parent 2f6000b commit 41c2170
Show file tree
Hide file tree
Showing 3 changed files with 1,104 additions and 162 deletions.
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const {spawn} = require('child_process');
const shellescape = require('shell-escape');
const shellescape = require('any-shell-escape');
const minimist = require('minimist');
const signale = require('signale');
const createState = require('./createState');
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,18 @@
"eslint": "eslint lib/*.js"
},
"devDependencies": {
"mmarkdown": "^1.0.0",
"any-shell-escape": "^0.1.1",
"browserify": "^16.2.2",
"mocha": "^5.2.0",
"inquirer": "^6.0.0",
"word-wrap": "^1.2.3",
"pad-right": "^0.2.2",
"signale": "^1.1.0",
"chalk": "^2.4.1",
"commitizen": "^2.9.6",
"eslint": "^4.19.1",
"eslint-config-mailonline": "^9.0.0",
"husky": "^0.14.3",
"inquirer": "^6.2.2",
"minimist": "^1.2.0",
"rimraf": "^2.6.2",
"shell-escape": "^0.2.0",
"minimist": "^1.2.0"
"signale": "^1.4.0",
"word-wrap": "^1.2.3"
},
"config": {
"commitizen": {
Expand All @@ -52,5 +49,9 @@
"out": "./README.md",
"scripts": "./build/readme.js",
"backup": false
},
"dependencies": {
"global": "^4.3.2",
"mocha": "^6.0.2"
}
}
Loading

0 comments on commit 41c2170

Please sign in to comment.