npm-pkgbuild 11.4.3 → 11.4.4

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": "npm-pkgbuild",
3
- "version": "11.4.3",
3
+ "version": "11.4.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -92,17 +92,23 @@ ENTRYPOINT ["node", ${Object.values(options.entrypoints)[0]}]
92
92
  console.log(await readFile(join(staging, DOCKERFILE), utf8StreamOptions));
93
93
  }
94
94
 
95
+ let image = "";
96
+
95
97
  if (!options.dry) {
96
98
  const docker = await execa(this.constructor.name, ["build", staging], {
97
99
  cwd: staging
98
100
  });
99
101
 
102
+ const lines = docker.stdout.split(/\n/);
103
+ image = lines[lines.length - 1];
104
+
100
105
  if (options.verbose) {
101
106
  console.log(docker.stdout);
102
107
  }
103
108
  }
104
109
 
105
- return join(destination, this.packageFileName);
110
+ //console.log("IMAGE",image);
111
+ return image;
106
112
  }
107
113
  }
108
114