@nx/docker 0.0.0-pr-32117-a841f88 → 0.0.0-pr-32117-ebf1c19
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/docker",
|
|
3
3
|
"description": "The Nx Plugin for Docker to aid in containerizing projects.",
|
|
4
|
-
"version": "0.0.0-pr-32117-
|
|
4
|
+
"version": "0.0.0-pr-32117-ebf1c19",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"executors": "./executors.json",
|
|
48
48
|
"generators": "./generators.json",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nx/devkit": "0.0.0-pr-32117-
|
|
50
|
+
"@nx/devkit": "0.0.0-pr-32117-ebf1c19",
|
|
51
51
|
"enquirer": "~2.3.6",
|
|
52
52
|
"tslib": "^2.3.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"nx": "0.0.0-pr-32117-
|
|
55
|
+
"nx": "0.0.0-pr-32117-ebf1c19"
|
|
56
56
|
},
|
|
57
57
|
"types": "./src/index.d.ts"
|
|
58
58
|
}
|
|
@@ -48,7 +48,11 @@ function readVersionFromFile(projectRoot) {
|
|
|
48
48
|
async function checkDockerImageExistsLocally(imageRef) {
|
|
49
49
|
try {
|
|
50
50
|
return await new Promise((res) => {
|
|
51
|
-
|
|
51
|
+
// If the ref starts with 'docker.io/', then we need to strip it since it is the default value and Docker CLI will not find it.
|
|
52
|
+
const normalizedImageRef = imageRef.startsWith('docker.io/')
|
|
53
|
+
? imageRef.split('docker.io/')[1]
|
|
54
|
+
: imageRef;
|
|
55
|
+
const childProcess = (0, child_process_1.exec)(`docker images --filter "reference=${normalizedImageRef}" --quiet`, { encoding: 'utf8' });
|
|
52
56
|
let result = '';
|
|
53
57
|
childProcess.stdout?.on('data', (data) => {
|
|
54
58
|
result += data;
|