modscape 1.1.5 → 1.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modscape",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Modscape: A YAML-driven data modeling visualizer CLI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,9 @@
20
20
  "scripts": {
21
21
  "build-ui": "cd visualizer && npm run build && rm -rf ../visualizer-dist && mv dist ../visualizer-dist",
22
22
  "dev": "node src/index.js dev",
23
- "test:e2e": "playwright test"
23
+ "test:e2e": "playwright test",
24
+ "test:all": "npm run build-ui && npm run test:e2e",
25
+ "test:update": "npm run build-ui && npm run test:e2e -- --update-snapshots"
24
26
  },
25
27
  "dependencies": {
26
28
  "@inquirer/prompts": "^8.3.0",
package/src/index.js CHANGED
@@ -8,6 +8,10 @@ import { build } from './build.js';
8
8
  import { initProject } from './init.js';
9
9
  import { exportModel } from './export.js';
10
10
  import { createModel } from './create.js';
11
+ import { createRequire } from 'module';
12
+
13
+ const require = createRequire(import.meta.url);
14
+ const pkg = require('../package.json');
11
15
 
12
16
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
13
17
  const VISUALIZER_PATH = path.resolve(__dirname, '../visualizer');
@@ -16,7 +20,7 @@ const program = new Command();
16
20
  program
17
21
  .name('modscape')
18
22
  .description('Modscape: A YAML-driven data modeling visualizer CLI')
19
- .version('1.0.9');
23
+ .version(pkg.version);
20
24
 
21
25
  program
22
26
  .command('init')
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "visualizer",
3
3
  "private": true,
4
- "version": "1.1.5",
4
+ "version": "1.1.7",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",