@travetto/pack 3.4.8 → 3.4.10

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": "3.4.8",
3
+ "version": "3.4.10",
4
4
  "description": "Code packing utilities",
5
5
  "keywords": [
6
6
  "travetto",
@@ -28,11 +28,11 @@
28
28
  "@rollup/plugin-json": "^6.0.1",
29
29
  "@rollup/plugin-node-resolve": "^15.2.3",
30
30
  "@rollup/plugin-terser": "^0.4.4",
31
- "@travetto/base": "^3.4.1",
31
+ "@travetto/base": "^3.4.2",
32
32
  "rollup": "^4.5.0"
33
33
  },
34
34
  "peerDependencies": {
35
- "@travetto/cli": "^3.4.6"
35
+ "@travetto/cli": "^3.4.9"
36
36
  },
37
37
  "peerDependenciesMeta": {
38
38
  "@travetto/cli": {
@@ -1,6 +1,6 @@
1
1
  import os from 'os';
2
2
 
3
- import { CliCommandShape, CliFlag, CliParseUtil, cliTpl } from '@travetto/cli';
3
+ import { CliCommandShape, CliFlag, ParsedState, cliTpl } from '@travetto/cli';
4
4
  import { path, RootIndex } from '@travetto/manifest';
5
5
  import { TimeUtil } from '@travetto/base';
6
6
  import { GlobalTerminal } from '@travetto/terminal';
@@ -23,6 +23,9 @@ export abstract class BasePackCommand implements CliCommandShape {
23
23
  .map(x => x.import.replace(/[.][^.]+s$/, ''));
24
24
  }
25
25
 
26
+ @Ignore()
27
+ _parsed: ParsedState;
28
+
26
29
  @CliFlag({ desc: 'Workspace for building', short: 'w' })
27
30
  workspace: string = path.resolve(os.tmpdir(), RootIndex.mainModule.sourcePath.replace(/[\/\\: ]/g, '_'));
28
31
 
@@ -96,7 +99,7 @@ export abstract class BasePackCommand implements CliCommandShape {
96
99
  this.workspace = path.resolve(this.workspace);
97
100
 
98
101
  // Update entry points
99
- this.entryArguments = [...this.entryArguments ?? [], ...args, ...CliParseUtil.getState(this)?.unknown ?? []];
102
+ this.entryArguments = [...this.entryArguments ?? [], ...args, ...this._parsed.unknown];
100
103
  this.module ||= RootIndex.mainModuleName;
101
104
  this.mainName ??= path.basename(this.module);
102
105