@travetto/scaffold 5.0.0-rc.1 → 5.0.0-rc.3
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.
|
|
3
|
+
"version": "5.0.0-rc.3",
|
|
4
4
|
"description": "App Scaffold for the Travetto framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"generator",
|
|
@@ -27,13 +27,14 @@
|
|
|
27
27
|
"trv-scaffold": "./bin/trv-scaffold.js"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@travetto/
|
|
31
|
-
"@travetto/cli": "^5.0.0-rc.
|
|
30
|
+
"@travetto/runtime": "^5.0.0-rc.3",
|
|
31
|
+
"@travetto/cli": "^5.0.0-rc.3",
|
|
32
32
|
"enquirer": "^2.4.1",
|
|
33
33
|
"mustache": "^4.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/mustache": "^4.2.5"
|
|
36
|
+
"@types/mustache": "^4.2.5",
|
|
37
|
+
"@travetto/model": "^5.0.0-rc.3"
|
|
37
38
|
},
|
|
38
39
|
"travetto": {
|
|
39
40
|
"displayName": "App Scaffold"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Authorizer, Authenticator } from '@travetto/auth';
|
|
2
2
|
import { SessionModelⲐ } from '@travetto/rest-session';
|
|
3
3
|
import { InjectableFactory } from '@travetto/di';
|
|
4
|
-
import { AppError } from '@travetto/
|
|
4
|
+
import { AppError } from '@travetto/runtime';
|
|
5
5
|
import { ModelExpirySupport, MemoryModelService } from '@travetto/model';
|
|
6
6
|
|
|
7
7
|
export const BasicAuthⲐ = Symbol.for('AUTH_BASIC');
|
package/support/bin/context.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import { spawn } from 'node:child_process';
|
|
3
|
-
import rl from 'node:readline/promises';
|
|
4
3
|
import path from 'node:path';
|
|
5
4
|
|
|
6
5
|
import mustache from 'mustache';
|
|
7
6
|
|
|
8
|
-
import { ExecUtil,
|
|
7
|
+
import { ExecUtil, RuntimeIndex } from '@travetto/runtime';
|
|
9
8
|
import { cliTpl } from '@travetto/cli';
|
|
10
|
-
import {
|
|
9
|
+
import { NodePackageManager, PackageUtil } from '@travetto/manifest';
|
|
11
10
|
import { Terminal } from '@travetto/terminal';
|
|
12
11
|
|
|
13
12
|
import { Feature } from './features';
|
|
@@ -64,7 +63,7 @@ export class Context {
|
|
|
64
63
|
});
|
|
65
64
|
|
|
66
65
|
if (proc.stderr) {
|
|
67
|
-
|
|
66
|
+
ExecUtil.readLines(proc.stderr,
|
|
68
67
|
line => term.writer.writeLine(cliTpl` ${{ identifier: [cmd, ...args].join(' ') }}: ${line.trimEnd()}`).commit());
|
|
69
68
|
}
|
|
70
69
|
|