From 6d328e263d07cfecf91a6bd66fc974d20c039bd0 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 27 Jul 2017 21:51:38 +0200 Subject: [PATCH] update default publish target --- dist/mod_publish/index.js | 9 ++++++--- ts/mod_publish/index.ts | 7 +++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/dist/mod_publish/index.js b/dist/mod_publish/index.js index f85a3ff..5b6d7d8 100644 --- a/dist/mod_publish/index.js +++ b/dist/mod_publish/index.js @@ -18,10 +18,13 @@ const npmciMods = require("../npmci.mods"); exports.publish = (argvArg) => __awaiter(this, void 0, void 0, function* () { let whatToPublish = argvArg._[1]; switch (whatToPublish) { - case 'npm': - return yield publishNpm(argvArg); case 'docker': return yield publishDocker(argvArg); + case 'npm': + return yield publishNpm(argvArg); + default: + plugins.beautylog.info('no publish target sepcified, defaulting to npm...'); + return yield publishNpm(argvArg); } }); /** @@ -45,4 +48,4 @@ let publishDocker = (argvArg) => __awaiter(this, void 0, void 0, function* () { return dockerfileArray; }); }); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9tb2RfcHVibGlzaC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEseUNBQXdDO0FBQ3hDLDhDQUFvQztBQUdwQywyQ0FBMEM7QUFXMUM7OztHQUdHO0FBQ1EsUUFBQSxPQUFPLEdBQUcsQ0FBTyxPQUFZO0lBQ3RDLElBQUksYUFBYSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7SUFDaEMsTUFBTSxDQUFDLENBQUMsYUFBYSxDQUFDLENBQUMsQ0FBQztRQUN0QixLQUFLLEtBQUs7WUFDUixNQUFNLENBQUMsTUFBTSxVQUFVLENBQUMsT0FBTyxDQUFDLENBQUE7UUFDbE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FBRyxNQUFNLFNBQVMsQ0FBQyxTQUFTLENBQUMsSUFBSSxFQUFFLENBQUE7SUFDaEQsTUFBTSxDQUFDLE1BQU0sU0FBUyxDQUFDLGVBQWUsQ0FBQyxPQUFPLENBQUM7U0FDNUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxvQkFBb0IsQ0FBQztTQUNwQyxJQUFJLENBQUMsU0FBUyxDQUFDLGVBQWUsQ0FBQztTQUMvQixJQUFJLENBQUMsZUFBZTtRQUNuQixNQUFNLENBQUMsZUFBZSxDQUFBO0lBQ3hCLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFBLENBQUEifQ== \ No newline at end of file diff --git a/ts/mod_publish/index.ts b/ts/mod_publish/index.ts index 81955ef..7e31d2f 100644 --- a/ts/mod_publish/index.ts +++ b/ts/mod_publish/index.ts @@ -20,10 +20,13 @@ export type TPubService = 'npm' | 'docker' export let publish = async (argvArg: any) => { let whatToPublish = argvArg._[1] switch (whatToPublish) { - case 'npm': - return await publishNpm(argvArg) case 'docker': return await publishDocker(argvArg) + case 'npm': + return await publishNpm(argvArg) + default: + plugins.beautylog.info('no publish target sepcified, defaulting to npm...') + return await publishNpm(argvArg) } }