stable-ci 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { readFileSync } from 'node:fs';
2
3
  import { Command } from 'commander';
3
4
  import { createDemoAdapter } from './adapters/demo.js';
4
5
  import { createHttpDemoAdapter } from './adapters/http-demo.js';
@@ -8,6 +9,7 @@ import { loadConfig } from './config.js';
8
9
  import { runSuite } from './core/runner.js';
9
10
  import { writeJUnit } from './reporters/junit.js';
10
11
  import { scenarios } from './scenarios/builtins.js';
12
+ const packageJson = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
11
13
  const program = new Command();
12
14
  function printResults(adapterName, results) {
13
15
  console.log('Stablecoin Reliability CI');
@@ -33,7 +35,7 @@ function printResults(adapterName, results) {
33
35
  program
34
36
  .name('stable-ci')
35
37
  .description('Reliability CI for stablecoin payment integrations')
36
- .version('0.1.0');
38
+ .version(packageJson.version);
37
39
  program
38
40
  .command('scenarios')
39
41
  .description('List built-in reliability scenarios')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stable-ci",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Reliability CI for stablecoin payment integrations",
5
5
  "scripts": {
6
6
  "test": "vitest run",