@travetto/scaffold 7.0.0-rc.2 → 7.0.0-rc.4

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": "@travetto/scaffold",
3
- "version": "7.0.0-rc.2",
3
+ "version": "7.0.0-rc.4",
4
4
  "description": "App Scaffold for the Travetto framework",
5
5
  "keywords": [
6
6
  "generator",
@@ -27,13 +27,13 @@
27
27
  "trv-scaffold": "bin/trv-scaffold.js"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/cli": "^7.0.0-rc.2",
31
- "@travetto/runtime": "^7.0.0-rc.2",
30
+ "@travetto/cli": "^7.0.0-rc.4",
31
+ "@travetto/runtime": "^7.0.0-rc.4",
32
32
  "enquirer": "^2.4.1",
33
33
  "mustache": "^4.2.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@travetto/model": "^7.0.0-rc.2",
36
+ "@travetto/model": "^7.0.0-rc.4",
37
37
  "@types/mustache": "^4.2.6"
38
38
  },
39
39
  "travetto": {
@@ -4,7 +4,7 @@ import path from 'node:path';
4
4
 
5
5
  import mustache from 'mustache';
6
6
 
7
- import { castKey, castTo, ExecUtil, RuntimeIndex } from '@travetto/runtime';
7
+ import { castKey, castTo, ExecUtil, JSONUtil, RuntimeIndex } from '@travetto/runtime';
8
8
  import { cliTpl } from '@travetto/cli';
9
9
  import { NodePackageManager, PackageUtil } from '@travetto/manifest';
10
10
  import { Terminal } from '@travetto/terminal';
@@ -81,7 +81,7 @@ export class Context {
81
81
  }
82
82
 
83
83
  get sourceListing(): Promise<Listing> {
84
- return fs.readFile(this.source('listing.json'), 'utf8').then(text => JSON.parse(text));
84
+ return JSONUtil.readFile<Listing>(this.source('listing.json'));
85
85
  }
86
86
 
87
87
  async resolvedSourceListing(): Promise<[string, ListingEntry][]> {