EroticDungeonGame/node_modules/commitizen/dist/cli/strategies/git.js
3944Realms 8c4ce2709c fix(兼容emotescraft和rideeverything): 修改骑乘逻辑和tick取消EmtoesCraft表情
使用Mixin中检测绕过骑乘取消和开始骑乘逻辑,避免原版的unRide方法导致非预期的退出设备;在每tick检测,如果在设备上则停止表情动画
2026-02-20 14:45:57 +08:00

25 lines
936 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _child_process = _interopRequireDefault(require("child_process"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = git; // We don't have a config, so either we use raw args to try to commit
// or if debug is enabled then we do a strict check for a config file.
exports.default = _default;
function git(rawGitArgs, environment) {
if (environment.debug === true) {
console.error('COMMITIZEN DEBUG: No cz friendly config was detected. I looked for .czrc, .cz.json, or czConfig in package.json.');
} else {
var vanillaGitArgs = ["commit"].concat(rawGitArgs);
var child = _child_process.default.spawn('git', vanillaGitArgs, {
stdio: 'inherit'
});
child.on('error', function (e, code) {
console.error(e);
throw e;
});
}
}