diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..95d34dc6 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,4 @@ +{ + "name": "minimatch", + "version": "3.0.3" +} diff --git a/package.json b/package.json index ec4b9fd8..493a40da 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,10 @@ }, "main": "minimatch.js", "scripts": { - "posttest": "standard minimatch.js test/*.js", - "test": "tap test/*.js" + "test": "tap test/*.js --cov", + "preversion": "npm test", + "postversion": "npm publish", + "postpublish": "git push origin --all; git push origin --tags" }, "engines": { "node": "*" @@ -19,8 +21,7 @@ "brace-expansion": "^1.0.0" }, "devDependencies": { - "standard": "^3.7.2", - "tap": "^5.6.0" + "tap": "^10.3.2" }, "license": "ISC", "files": [ diff --git a/test/basic.js b/test/basic.js index 465795ad..4f96c8e0 100644 --- a/test/basic.js +++ b/test/basic.js @@ -54,7 +54,7 @@ tap.test('basic tests', function (t) { tap.test('global leak test', function (t) { var globalAfter = Object.keys(global).filter(function (k) { - return (k !== '__coverage__') + return (k !== '__coverage__' && k !== '__core-js_shared__') }) t.equivalent(globalAfter, globalBefore, 'no new globals, please') t.end()