Add set-version task to set version from package.json

This commit is contained in:
ahocevar
2018-06-21 11:18:52 +02:00
parent 6cddd2d44a
commit 5582914ffa
4 changed files with 30 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ import {VERSION, inherits} from './index.js';
*/
const AssertionError = function(code) {
const path = VERSION ? VERSION.split('-')[0] : 'latest';
const path = VERSION.split('-')[0];
/**
* @type {string}