@travetto/pack 8.0.0-alpha.13 → 8.0.0-alpha.15
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 +5 -5
- package/support/pack.base.ts +5 -5
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.15",
|
|
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.
|
|
35
|
-
"rollup": "^4.60.
|
|
33
|
+
"@travetto/runtime": "^8.0.0-alpha.12",
|
|
34
|
+
"@travetto/terminal": "^8.0.0-alpha.12",
|
|
35
|
+
"rollup": "^4.60.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@travetto/cli": "^8.0.0-alpha.
|
|
38
|
+
"@travetto/cli": "^8.0.0-alpha.18"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@travetto/cli": {
|
package/support/pack.base.ts
CHANGED
|
@@ -121,14 +121,14 @@ export abstract class BasePackCommand implements CliCommandShape {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
* Get all
|
|
124
|
+
* Get all external dependencies
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
getModuleExternalDependencies(): string[] {
|
|
127
127
|
return [...RuntimeIndex.getModuleList('all')]
|
|
128
128
|
.map(name => RuntimeIndex.getModule(name))
|
|
129
129
|
.filter((module): module is IndexedModule => !!module?.production)
|
|
130
130
|
.map(module => PackageUtil.readPackage(module?.sourcePath))
|
|
131
|
-
.map(pkg => pkg?.travetto?.build?.
|
|
131
|
+
.map(pkg => pkg?.travetto?.build?.externalDependencies ?? [])
|
|
132
132
|
.flat();
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -146,8 +146,8 @@ export abstract class BasePackCommand implements CliCommandShape {
|
|
|
146
146
|
this.mainName ??= path.basename(this.module);
|
|
147
147
|
this.mainFile = `${this.mainName}.js`;
|
|
148
148
|
|
|
149
|
-
// Collect
|
|
150
|
-
const dependencies = this.
|
|
149
|
+
// Collect unmanaged dependencies
|
|
150
|
+
const dependencies = this.getModuleExternalDependencies();
|
|
151
151
|
this.externalDependencies = [...this.externalDependencies, ...dependencies];
|
|
152
152
|
|
|
153
153
|
const stream = this.runOperations();
|