@travetto/scaffold 5.0.9 → 5.0.11

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.9",
3
+ "version": "5.0.11",
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": "^5.0.6",
31
- "@travetto/runtime": "^5.0.6",
30
+ "@travetto/cli": "^5.0.7",
31
+ "@travetto/runtime": "^5.0.7",
32
32
  "enquirer": "^2.4.1",
33
33
  "mustache": "^4.2.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@travetto/model": "^5.0.6",
36
+ "@travetto/model": "^5.0.7",
37
37
  "@types/mustache": "^4.2.5"
38
38
  },
39
39
  "travetto": {
@@ -25,9 +25,9 @@
25
25
  ],
26
26
  "license": "MIT",
27
27
  "scripts": {
28
- "watch": "npx trv watch",
29
- "build": "npx trv build",
30
- "start": "npx trv run rest",
28
+ "watch": "npx trvc watch",
29
+ "build": "npx trvc build",
30
+ "start": "npx trv run:rest",
31
31
  "test": "npx trv test",
32
32
  "lint": "npx trv lint"
33
33
  },
@@ -139,6 +139,7 @@ export class Context {
139
139
  .replaceAll('_$', '}}}'),
140
140
  this.templateContext(),
141
141
  )
142
+ .replace(/^[ ]*[/][/][ ]*\n/gsm, '')
142
143
  .replace(/[ ]*[/][/][ ]*@ts-expect-error[^\n]*\n/gsm, '') // Excluding errors
143
144
  .replace(/^[ ]*[/][/][ ]*[{][{][^\n]*\n/gsm, '') // Excluding conditional comments, full-line
144
145
  .replace(/[ ]*[/][/][ ]*[{][{][^\n]*/gsm, ''); // Excluding conditional comments