@travetto/scaffold 4.0.0-rc.6 → 4.0.0-rc.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/bin/trv-scaffold.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/scaffold",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.7",
|
|
4
4
|
"description": "App Scaffold for the Travetto framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"generator",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"trv-scaffold": "./bin/trv-scaffold.js"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@travetto/base": "^4.0.0-rc.
|
|
31
|
-
"@travetto/cli": "^4.0.0-rc.
|
|
32
|
-
"@travetto/compiler": "^4.0.0-rc.
|
|
30
|
+
"@travetto/base": "^4.0.0-rc.7",
|
|
31
|
+
"@travetto/cli": "^4.0.0-rc.7",
|
|
32
|
+
"@travetto/compiler": "^4.0.0-rc.6",
|
|
33
33
|
"enquirer": "^2.4.1",
|
|
34
34
|
"mustache": "^4.2.0"
|
|
35
35
|
},
|
|
@@ -5,7 +5,6 @@ import { ModelQuery } from '@travetto/model-query';
|
|
|
5
5
|
import { Schema } from '@travetto/schema';
|
|
6
6
|
// {{#modules.auth_rest}}
|
|
7
7
|
import { AuthService, Authenticated } from '@travetto/auth-rest';
|
|
8
|
-
import { } from '@travetto/auth-rest';
|
|
9
8
|
// {{/modules.auth_rest}}
|
|
10
9
|
// @ts-expect-error
|
|
11
10
|
import { $_modelService_$ } from '$_modelImport_$';
|
package/support/bin/context.ts
CHANGED
|
@@ -135,8 +135,9 @@ export class Context {
|
|
|
135
135
|
.replaceAll('_$', '}}}'),
|
|
136
136
|
this.templateContext(),
|
|
137
137
|
)
|
|
138
|
-
.replace(
|
|
139
|
-
.replace(
|
|
138
|
+
.replace(/\/\/\s*@ts-expect-error.*$/gm, '')
|
|
139
|
+
.replace(/(\/\/.*@doc-exclude.*)$/gm, '')
|
|
140
|
+
.replace(/\s*(\/\/.*@doc-exclude.*)/gm, '')
|
|
140
141
|
.replace(/^\s*(\/\/\s*)\n/gsm, '');
|
|
141
142
|
await fs.mkdir(path.dirname(out), { recursive: true });
|
|
142
143
|
await fs.writeFile(out, rendered, 'utf8');
|