From 598215a68cbe8e82bec4eb5d3a9f79874bc8b492 Mon Sep 17 00:00:00 2001 From: Mauricio Bonani Date: Sat, 16 Dec 2023 11:09:07 -0500 Subject: [PATCH] Log package version on Node-RED start --- themes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes.js b/themes.js index 63a189c..e4d5dff 100644 --- a/themes.js +++ b/themes.js @@ -1,5 +1,6 @@ const { existsSync, readdirSync, readFileSync } = require('fs') const path = require('path') +const package = require('./package.json') module.exports = function (RED) { const themesPath = path.join(__dirname, 'themes') @@ -45,4 +46,5 @@ module.exports = function (RED) { RED.plugins.registerPlugin(themeName, Object.assign({}, type, css, mermaidOptions, monacoOptions)) RED.plugins.registerPlugin(themeName + '-scroll', Object.assign({}, type, cssScroll, mermaidOptions, monacoOptions)) }) + RED.log.info(`Node-RED Contrib Theme Collection version: v${package.version}`) } \ No newline at end of file