@travetto/pack 5.0.17 → 5.0.18

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": "5.0.17",
3
+ "version": "5.0.18",
4
4
  "description": "Code packing utilities",
5
5
  "keywords": [
6
6
  "travetto",
@@ -29,12 +29,12 @@
29
29
  "@rollup/plugin-json": "^6.1.0",
30
30
  "@rollup/plugin-node-resolve": "^16.0.0",
31
31
  "@rollup/plugin-terser": "^0.4.4",
32
- "@travetto/runtime": "^5.0.14",
33
- "@travetto/terminal": "^5.0.16",
32
+ "@travetto/runtime": "^5.0.15",
33
+ "@travetto/terminal": "^5.0.17",
34
34
  "rollup": "^4.28.1"
35
35
  },
36
36
  "peerDependencies": {
37
- "@travetto/cli": "^5.0.17"
37
+ "@travetto/cli": "^5.0.18"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@travetto/cli": {
package/src/types.ts CHANGED
@@ -26,7 +26,6 @@ export type CommonPackConfig = {
26
26
  includeWorkspaceResources?: boolean;
27
27
  };
28
28
 
29
-
30
29
  export type DockerPackConfig = {
31
30
  dockerFactory: string;
32
31
  dockerBuildPlatform?: string;
@@ -47,7 +46,6 @@ export type DockerPackConfig = {
47
46
  };
48
47
  } & CommonPackConfig;
49
48
 
50
-
51
49
  export type ShellCommandImpl = {
52
50
  var(name: string): string;
53
51
  createFile(file: string, text: string[], mode?: string): string[][];
@@ -21,7 +21,7 @@ export class DockerPackOperation {
21
21
  static async* detectDockerImageOs(cfg: DockerPackConfig): AsyncIterable<string[]> {
22
22
  // Read os before writing
23
23
  cfg.dockerRuntime.os = await PackUtil.runCommand(
24
- ['docker', 'run', '--entrypoint', '/bin/sh', cfg.dockerImage, '-c', 'cat /etc/*release*']
24
+ ['docker', 'run', '--rm', '--entrypoint', '/bin/sh', cfg.dockerImage, '-c', 'cat /etc/*release*']
25
25
  ).then(out => {
26
26
  const found = out.match(/\b(?:debian|alpine|centos)\b/i)?.[0].toLowerCase();
27
27
  switch (found) {