mirror of
https://github.com/actions/setup-python.git
synced 2025-06-29 06:03:49 +00:00
Clean up node_modules
This commit is contained in:
parent
b581dd4017
commit
145e800d1f
7184 changed files with 11271 additions and 1877650 deletions
34
node_modules/husky/lib/installer/bin.js
generated
vendored
34
node_modules/husky/lib/installer/bin.js
generated
vendored
|
@ -1,34 +0,0 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const is_ci_1 = __importDefault(require("is-ci"));
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const debug_1 = __importDefault(require("../debug"));
|
||||
const _1 = require("./");
|
||||
const gitRevParse_1 = __importDefault(require("./gitRevParse"));
|
||||
// Debug
|
||||
debug_1.default(`CWD=${process.env.CWD}`);
|
||||
debug_1.default(`INIT_CWD=${process.env.INIT_CWD}`);
|
||||
// Action can be "install" or "uninstall"
|
||||
// huskyDir is ONLY used in dev, don't use this arguments
|
||||
const [, , action, huskyDir = path_1.default.join(__dirname, '../..')] = process.argv;
|
||||
// Find Git dir
|
||||
try {
|
||||
// Show un/install message
|
||||
console.log('husky > %s git hooks', action === 'install' ? 'Setting up' : 'Uninstalling');
|
||||
// Get top level and git dir
|
||||
const { topLevel, gitDir } = gitRevParse_1.default();
|
||||
// Install or uninstall
|
||||
if (action === 'install') {
|
||||
_1.install(topLevel, gitDir, huskyDir, is_ci_1.default);
|
||||
}
|
||||
else {
|
||||
_1.uninstall(gitDir, huskyDir);
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
console.log(error.message.trim());
|
||||
console.log(`husky > Failed to ${action}`);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue