@travetto/pack 8.0.0-alpha.7 → 8.0.0-alpha.8
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 +2 -2
- package/support/pack.base.ts +2 -3
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.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Code packing utilities",
|
|
6
6
|
"keywords": [
|
|
@@ -35,7 +35,7 @@
|
|
|
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.9"
|
|
39
39
|
},
|
|
40
40
|
"peerDependenciesMeta": {
|
|
41
41
|
"@travetto/cli": {
|
package/support/pack.base.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { type CliCommandShape, CliFlag, CliModuleFlag, CliParseUtil, cliTpl } fr
|
|
|
5
5
|
import { TimeUtil, Runtime, RuntimeIndex } from '@travetto/runtime';
|
|
6
6
|
import { Terminal } from '@travetto/terminal';
|
|
7
7
|
import { Ignore, Method, Required, Schema } from '@travetto/schema';
|
|
8
|
-
import { PackageUtil } from '@travetto/manifest';
|
|
8
|
+
import { PackageUtil, type IndexedModule } from '@travetto/manifest';
|
|
9
9
|
|
|
10
10
|
import { PackOperation } from './bin/operation.ts';
|
|
11
11
|
import { PackUtil } from './bin/util.ts';
|
|
@@ -126,8 +126,7 @@ export abstract class BasePackCommand implements CliCommandShape {
|
|
|
126
126
|
getBinaryDependencies(): string[] {
|
|
127
127
|
return [...RuntimeIndex.getModuleList('all')]
|
|
128
128
|
.map(name => RuntimeIndex.getModule(name))
|
|
129
|
-
.filter(module => !!module)
|
|
130
|
-
.filter(module => module.production)
|
|
129
|
+
.filter((module): module is IndexedModule => !!module?.production)
|
|
131
130
|
.map(module => PackageUtil.readPackage(module?.sourcePath))
|
|
132
131
|
.map(pkg => pkg?.travetto?.build?.binaryDependencies ?? [])
|
|
133
132
|
.flat();
|