We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c98f9e0 commit b638ad0Copy full SHA for b638ad0
core/lib/patternlab.js
@@ -197,6 +197,10 @@ const patternlab_engine = function (config) {
197
const paths = patternlab.config.paths;
198
199
function getVersion() {
200
+ return patternlab.package.version;
201
+ }
202
+
203
+ function logVersion() {
204
console.log(patternlab.package.version);
205
}
206
@@ -641,6 +645,9 @@ const patternlab_engine = function (config) {
641
645
642
646
return {
643
647
version: function () {
648
+ return logVersion();
649
+ },
650
+ v: function () {
644
651
return getVersion();
652
},
653
build: function (callback, deletePatternDir) {
0 commit comments