diff --git a/ts/mod_git/index.ts b/ts/mod_git/index.ts index 0d6b6d0..75cb61b 100644 --- a/ts/mod_git/index.ts +++ b/ts/mod_git/index.ts @@ -42,7 +42,7 @@ export let mirror = async () => { logger.log('info', 'found github token.'); logger.log('info', 'attempting the mirror the repository to GitHub'); - plugins.smartgit.GitRepo; + // plugins.smartgit.GitRepo; // add the mirror await bash( diff --git a/ts/mod_npm/index.ts b/ts/mod_npm/index.ts index f88bb70..ef501d3 100644 --- a/ts/mod_npm/index.ts +++ b/ts/mod_npm/index.ts @@ -82,6 +82,8 @@ const publish = async () => { if (config.npmAccessLevel === 'public') { publishVerdaccioAsWell = true; } + } else { + throw new Error('You need to set a npmAccessLevel!!!'); } // -> configure registry url if (config.npmRegistryUrl) { @@ -104,6 +106,11 @@ const publish = async () => { `package is public and verdaccio registry is specified. Also publishing to Verdaccio!` ); publishCommand = `${publishCommand} && npm publish ${npmAccessCliString} --registry=https://${verdaccioRegistry}`; + } else { + logger.log( + 'error', + `This package should also be published to Verdaccio, however there is no Verdaccio registry data available!` + ); } } return publishCommand;