@escape.tech/mookme
Advanced tools
@@ -18,2 +18,3 @@ "use strict"; | ||
| .option('--yes', 'Skip confirmation prompter') | ||
| .option('-t, --types <types...>', 'A list of valid git hooks ("pre-commit", "prepare-commit", "commit-msg", "post-commit")') | ||
| .action(async (opts) => { | ||
@@ -20,0 +21,0 @@ debug('Running init command with options', opts); |
@@ -19,3 +19,3 @@ "use strict"; | ||
| exports.choiceQuestion = choiceQuestion; | ||
| async function selectHookTypes(skip = false) { | ||
| async function selectHookTypes(skip = false, hookCollection) { | ||
| let typesToHook; | ||
@@ -25,2 +25,5 @@ if (skip) { | ||
| } | ||
| else if (hookCollection) { | ||
| typesToHook = hookCollection; | ||
| } | ||
| else { | ||
@@ -27,0 +30,0 @@ const { types } = (await inquirer_1.default.prompt([ |
@@ -25,3 +25,3 @@ "use strict"; | ||
| if (opts.onlyHook) { | ||
| const hookTypes = await (0, init_1.selectHookTypes)(opts.skipTypesSelection); | ||
| const hookTypes = await (0, init_1.selectHookTypes)(opts.skipTypesSelection, opts.types); | ||
| this.gitToolkit.writeGitHooksFiles(hookTypes); | ||
@@ -41,3 +41,3 @@ process.exit(0); | ||
| }; | ||
| const hookTypes = await (0, init_1.selectHookTypes)(opts.skipTypesSelection); | ||
| const hookTypes = await (0, init_1.selectHookTypes)(opts.skipTypesSelection, opts.types); | ||
| clear(); | ||
@@ -47,3 +47,3 @@ logger_1.default.info(`The following configuration will be written into \`${root}/.mookme.json\`:`); | ||
| logger_1.default.info(''); | ||
| logger_1.default.info('The follwowing git hooks will be created:'); | ||
| logger_1.default.info('The following git hooks will be created:'); | ||
| hookTypes.forEach((t) => logger_1.default.log(`${root}/.git/hooks/${t}`)); | ||
@@ -50,0 +50,0 @@ logger_1.default.info(''); |
@@ -106,3 +106,3 @@ "use strict"; | ||
| logger_1.default.info(`- ${gitFolderPath}/hooks/${type}`); | ||
| const mookmeCmd = `npx mookme run --type ${type} --args "$1"`; | ||
| const mookmeCmd = `npx @escape.tech/mookme run --type ${type} --args "$1"`; | ||
| if (fs_1.default.existsSync(`${gitFolderPath}/hooks/${type}`)) { | ||
@@ -109,0 +109,0 @@ const hook = fs_1.default.readFileSync(`${gitFolderPath}/hooks/${type}`).toString(); |
+1
-1
| { | ||
| "name": "@escape.tech/mookme", | ||
| "version": "2.4.1", | ||
| "version": "2.5.0", | ||
| "description": "A git hook manager designed for monorepos", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
67348
0.39%1490
0.27%