From 4e76faa35a51d738ed33bbe816c380610b45dbf5 Mon Sep 17 00:00:00 2001 From: dslak Date: Mon, 26 Sep 2022 18:53:52 +0200 Subject: [PATCH] add if condition --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 259c15f..66b473a 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,6 @@ exports.printVersion = () => { - console.log('Staples v0.0.1') + const pjson = require('./package.json') + console.log(`Staples ${pjson.version}`) } exports.compile = (template, input) => {