Skip to content

Commit

Permalink
3.3.6: fixes dist
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Oct 22, 2017
1 parent 02d6001 commit 3363984
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions ignore.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var IgnoreBase = function () {
return pattern && typeof pattern === 'string' && !REGEX_BLANK_LINE.test(pattern)

// > A line starting with # serves as a comment.
&& pattern.indexOf('#') !== 0;
&& pattern.indexOf('#') !== 0;
}
}, {
key: 'filter',
Expand Down Expand Up @@ -409,7 +409,9 @@ function make_regex(pattern, negative) {
// Windows
// --------------------------------------------------------------
/* istanbul ignore if */
if (process.env.IGNORE_TEST_WIN32 || process.platform === 'win32') {
if (
// Detect `process` so that it can run in browsers.
typeof process !== 'undefined' && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === 'win32')) {

var filter = IgnoreBase.prototype._filter;
var make_posix = function make_posix(str) {
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# babel-preset-es2015 fails to install on nodejs < 0.10
npm install babel-cli babel-preset-es2015
npm install babel-cli babel-preset-es2015 --no-save
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ignore",
"version": "3.3.5",
"version": "3.3.6",
"description": "Ignore is a manager and filter for .gitignore rules.",
"main": "./ignore.js",
"files": [
Expand Down Expand Up @@ -44,7 +44,7 @@
"mkdirp": "^0.5.1",
"mocha": "~1.13.0",
"pre-suf": "^1.0.4",
"rimraf": "^2.6.1",
"rimraf": "^2.6.2",
"spawn-sync": "^1.0.15",
"tmp": "0.0.33"
}
Expand Down
4 changes: 3 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ abort() {
exit 1
}

rm -rf ./coverage

type babel && babel -o ignore.js index.js || abort 'warn: babel failed'

./node_modules/.bin/mocha --reporter spec ./test/ignore.js || abort 'test failed'
npm test

0 comments on commit 3363984

Please sign in to comment.