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 d8b58d3 commit 4683cd0Copy full SHA for 4683cd0
packages/core/src/index.js
@@ -42,6 +42,15 @@ const getDefaultConfig = function() {
42
return defaultConfig;
43
};
44
45
+/**
46
+ * Returns current version
47
+ *
48
+ * @returns {string} current patternlab-node version as defined in `package.json`, as string
49
+ */
50
+const getVersion = function() {
51
+ return packageInfo.version;
52
+};
53
+
54
const patternlab_module = function(config) {
55
const PatternLabClass = require('./lib/patternlab');
56
const patternlab = new PatternLabClass(config);
@@ -222,5 +231,6 @@ const patternlab_module = function(config) {
222
231
223
232
224
233
patternlab_module.getDefaultConfig = getDefaultConfig;
234
+patternlab_module.getVersion = getVersion;
225
235
226
236
module.exports = patternlab_module;
0 commit comments