Skip to content

Commit

Permalink
Include T71 dependency version numbers in config file.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesremuscat committed Feb 27, 2024
1 parent 62347d7 commit d41f6ff
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion bin/generateConfigFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,22 @@ global.TransformStream = TransformStream;
const packageJson = fs.readFileSync('package.json');
const manifest = JSON.parse(packageJson);

const commonJson = fs.readFileSync('node_modules/@timing71/common/package.json');
const commonManifest = JSON.parse(commonJson);

const servicesJson = fs.readFileSync('node_modules/@timing71/services/package.json') || '{}';
const servicesManifest = JSON.parse(servicesJson);

const OUTPUT_FILE = process.env.OUTPUT_FILE || './build/pluginConfig.json';

const pluginConfig = {
supportedURLs: [],
version: manifest.version
version: manifest.version,
versions: {
common: commonManifest.version,
services: servicesManifest.version,
web: manifest.version
}
};

import('@timing71/services').finally(
Expand Down

0 comments on commit d41f6ff

Please sign in to comment.