chore(package): re-init package with commitizen and standard-release

This commit is contained in:
Pavel Pertsev
2018-05-16 12:54:46 +03:00
parent cb4e7a5643
commit eaf2328575
10640 changed files with 609660 additions and 117 deletions

48
node_modules/commitizen/dist/configLoader/findup.js generated vendored Normal file
View File

@@ -0,0 +1,48 @@
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _path = require('path');
var _path2 = _interopRequireDefault(_path);
var _glob = require('glob');
var _glob2 = _interopRequireDefault(_glob);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = findup;
// Before, "findup-sync" package was used,
// but it does not provide filter callback
function findup(patterns, options, fn) {
/* jshint -W083 */
var lastpath;
var file;
options = Object.create(options);
options.maxDepth = 1;
options.cwd = _path2.default.resolve(options.cwd);
do {
file = patterns.filter(function (pattern) {
var configPath = _glob2.default.sync(pattern, options)[0];
if (configPath) {
return fn(_path2.default.join(options.cwd, configPath));
}
})[0];
if (file) {
return _path2.default.join(options.cwd, file);
}
lastpath = options.cwd;
options.cwd = _path2.default.resolve(options.cwd, '..');
} while (options.cwd !== lastpath);
}