v2c-any 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -9,7 +9,9 @@ import { MqttPullExecutableServiceFactory } from './factory/mqtt-pull-executable
9
9
  import { MqttPushExecutableServiceFactory } from './factory/mqtt-push-executable-service-factory.js';
10
10
  import { RestServiceFactory } from './factory/rest-service-factory.js';
11
11
  import { MqttServiceFactory } from './factory/mqtt-service-factory.js';
12
+ import { PROJECT_VERSION } from './version.js';
12
13
  async function main() {
14
+ logger.info({ version: PROJECT_VERSION }, 'Starting application');
13
15
  await loadDeviceModules();
14
16
  const configurationValidator = new ConfigurationValidator();
15
17
  const configurationLoader = new ConfigurationLoader(configurationValidator);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Auto-generated file containing project metadata.
3
+ * Do not edit manually - this file is generated by scripts/generate-version.js
4
+ */
5
+ /**
6
+ * Project name from package.json
7
+ */
8
+ export const PROJECT_NAME = 'v2c-any';
9
+ /**
10
+ * Project version from package.json
11
+ */
12
+ export const PROJECT_VERSION = '0.6.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "v2c-any",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "type": "module",
5
5
  "description": "Turn any device into V2C Dynamic Power Control",
6
6
  "main": "dist/index.js",
@@ -37,6 +37,7 @@
37
37
  "scripts": {
38
38
  "dev": "tsx watch src/index.ts",
39
39
  "start": "node dist/index.js",
40
+ "prebuild": "node scripts/generate-version.js",
40
41
  "build": "tsc -p tsconfig.json",
41
42
  "typecheck": "tsc -p tsconfig.json --noEmit",
42
43
  "lint": "eslint src",