From 616cf8bf883afa67f99a952901b4b44fcabc0cfe Mon Sep 17 00:00:00 2001 From: Lucas Fernandes da Costa Date: Mon, 5 Jun 2017 14:12:19 -0300 Subject: [PATCH] Revert get version package json (#986) * Revert getting version from package.json * chai@4.0.2 --- Makefile | 2 +- chai.js | 61 ++-------------------------------------------------- lib/chai.js | 2 +- package.json | 2 +- 4 files changed, 5 insertions(+), 62 deletions(-) diff --git a/Makefile b/Makefile index 45116d717..87fd49ba9 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ chai.js: node_modules lib/* # define release - ./node_modules/.bin/bump -y --$(1) package.json + ./node_modules/.bin/bump -y --$(1) package.json lib/chai.js make chai.js git add --force chai.js lib/chai.js package.json bower.json npm ls --depth=-1 --long . --loglevel silent | head -1 | git commit -F- diff --git a/chai.js b/chai.js index 69f18e92a..a2689f327 100644 --- a/chai.js +++ b/chai.js @@ -14,7 +14,7 @@ var used = []; * Chai version */ -exports.version = require('../package').version; +exports.version = '4.0.2'; /*! * Assertion Error @@ -95,7 +95,7 @@ exports.use(should); var assert = require('./chai/interface/assert'); exports.use(assert); -},{"../package":40,"./chai/assertion":3,"./chai/config":4,"./chai/core/assertions":5,"./chai/interface/assert":6,"./chai/interface/expect":7,"./chai/interface/should":8,"./chai/utils":22,"assertion-error":33}],3:[function(require,module,exports){ +},{"./chai/assertion":3,"./chai/config":4,"./chai/core/assertions":5,"./chai/interface/assert":6,"./chai/interface/expect":7,"./chai/interface/should":8,"./chai/utils":22,"assertion-error":33}],3:[function(require,module,exports){ /*! * chai * http://chaijs.com @@ -10979,62 +10979,5 @@ module.exports = function typeDetect(obj) { module.exports.typeDetect = module.exports; -},{}],40:[function(require,module,exports){ -module.exports={ - "author": "Jake Luer ", - "name": "chai", - "description": "BDD/TDD assertion library for node.js and the browser. Test framework agnostic.", - "keywords": [ - "test", - "assertion", - "assert", - "testing", - "chai" - ], - "homepage": "http://chaijs.com", - "license": "MIT", - "contributors": [ - "Jake Luer ", - "Domenic Denicola (http://domenicdenicola.com)", - "Veselin Todorov ", - "John Firebaugh " - ], - "version": "4.0.0", - "repository": { - "type": "git", - "url": "https://github.com/chaijs/chai" - }, - "bugs": { - "url": "https://github.com/chaijs/chai/issues" - }, - "main": "./index", - "browser": "./chai.js", - "scripts": { - "test": "make test" - }, - "engines": { - "node": ">=4" - }, - "dependencies": { - "assertion-error": "^1.0.1", - "check-error": "^1.0.1", - "deep-eql": "^2.0.1", - "get-func-name": "^2.0.0", - "pathval": "^1.0.0", - "type-detect": "^4.0.0" - }, - "devDependencies": { - "browserify": "^13.0.1", - "bump-cli": "^1.1.3", - "istanbul": "^0.4.3", - "karma": "^1.0.0", - "karma-firefox-launcher": "^1.0.0", - "karma-mocha": "^1.0.1", - "karma-phantomjs-launcher": "^1.0.0", - "karma-sauce-launcher": "^1.0.0", - "mocha": "^3.0.0" - } -} - },{}]},{},[1])(1) }); \ No newline at end of file diff --git a/lib/chai.js b/lib/chai.js index 67a428c00..50de77193 100644 --- a/lib/chai.js +++ b/lib/chai.js @@ -10,7 +10,7 @@ var used = []; * Chai version */ -exports.version = require('../package').version; +exports.version = '4.0.2'; /*! * Assertion Error diff --git a/package.json b/package.json index 967578d35..fadaceba6 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "Veselin Todorov ", "John Firebaugh " ], - "version": "4.0.1", + "version": "4.0.2", "repository": { "type": "git", "url": "https://github.com/chaijs/chai"