@travetto/scaffold 5.0.0-rc.7 → 5.0.0-rc.9

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": "5.0.0-rc.7",
3
+ "version": "5.0.0-rc.9",
4
4
  "description": "App Scaffold for the Travetto framework",
5
5
  "keywords": [
6
6
  "generator",
@@ -27,14 +27,14 @@
27
27
  "trv-scaffold": "./bin/trv-scaffold.js"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/runtime": "^5.0.0-rc.7",
31
- "@travetto/cli": "^5.0.0-rc.7",
30
+ "@travetto/runtime": "^5.0.0-rc.9",
31
+ "@travetto/cli": "^5.0.0-rc.9",
32
32
  "enquirer": "^2.4.1",
33
33
  "mustache": "^4.2.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/mustache": "^4.2.5",
37
- "@travetto/model": "^5.0.0-rc.7"
37
+ "@travetto/model": "^5.0.0-rc.9"
38
38
  },
39
39
  "travetto": {
40
40
  "displayName": "App Scaffold"
@@ -4,7 +4,7 @@ import path from 'node:path';
4
4
 
5
5
  import mustache from 'mustache';
6
6
 
7
- import { ExecUtil, RuntimeIndex } from '@travetto/runtime';
7
+ import { castKey, castTo, ExecUtil, 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';
@@ -165,8 +165,7 @@ export class Context {
165
165
  }
166
166
  }
167
167
  if (feat.field) {
168
- // @ts-expect-error
169
- this[feat.field] = feat.value!;
168
+ this[castKey(feat.field)] = castTo(feat.value);
170
169
  }
171
170
  if (feat.context) {
172
171
  this.#featureContexts.push(feat.context);