@travetto/pack 8.0.0-alpha.6 → 8.0.0-alpha.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/pack",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Code packing utilities",
|
|
6
6
|
"keywords": [
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"@rollup/plugin-json": "^6.1.0",
|
|
31
31
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
32
32
|
"@rollup/plugin-terser": "^1.0.0",
|
|
33
|
-
"@travetto/runtime": "^8.0.0-alpha.
|
|
34
|
-
"@travetto/terminal": "^8.0.0-alpha.
|
|
33
|
+
"@travetto/runtime": "^8.0.0-alpha.5",
|
|
34
|
+
"@travetto/terminal": "^8.0.0-alpha.5",
|
|
35
35
|
"rollup": "^4.59.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@travetto/cli": "^8.0.0-alpha.
|
|
38
|
+
"@travetto/cli": "^8.0.0-alpha.8"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@travetto/cli": {
|
package/support/pack.base.ts
CHANGED
|
@@ -114,8 +114,8 @@ export abstract class BasePackCommand implements CliCommandShape {
|
|
|
114
114
|
*/
|
|
115
115
|
async * runOperations(): AsyncIterable<string> {
|
|
116
116
|
for (const operation of this.getOperations()) {
|
|
117
|
-
for await (const
|
|
118
|
-
yield
|
|
117
|
+
for await (const message of operation(this)) {
|
|
118
|
+
yield message.join(' ');
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -162,11 +162,11 @@ export abstract class BasePackCommand implements CliCommandShape {
|
|
|
162
162
|
|
|
163
163
|
await term.streamLines(stream);
|
|
164
164
|
|
|
165
|
-
let
|
|
165
|
+
let message = cliTpl`${{ success: 'Success' }} (${{ identifier: TimeUtil.asClock(Date.now() - start) }}) ${{ subtitle: 'module' }}=${{ param: this.module }}`;
|
|
166
166
|
if (this.output) {
|
|
167
|
-
|
|
167
|
+
message = cliTpl`${message} ${{ subtitle: 'output' }}=${{ path: this.output }}`;
|
|
168
168
|
}
|
|
169
|
-
await term.writer.writeLine(
|
|
169
|
+
await term.writer.writeLine(message).commit();
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}
|
|
@@ -18,7 +18,7 @@ export function travettoSourcemaps(config: CoreRollupConfig): Plugin {
|
|
|
18
18
|
return {
|
|
19
19
|
name: 'travetto-source-maps',
|
|
20
20
|
async load(this: PluginContext, id: string): Promise<LoadResult> {
|
|
21
|
-
if (!id.endsWith('.js') || id.endsWith('@travetto/runtime/support/
|
|
21
|
+
if (!id.endsWith('.js') || id.endsWith('@travetto/runtime/support/patch.js')) {
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
24
|
try {
|