@nx/docker 24.0.0-pr.37405.acdaf31 → 24.0.0-rc.0
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.
|
@@ -72,10 +72,12 @@ function interpolateDockerTargetOptions(options, projectRoot, imageRef, context)
|
|
|
72
72
|
}
|
|
73
73
|
function getProjectNameFromPath(projectRoot, workspaceRoot) {
|
|
74
74
|
const root = projectRoot === '.' ? workspaceRoot : projectRoot;
|
|
75
|
+
// Docker image names allow only these characters, and the name goes unquoted
|
|
76
|
+
// into the inferred targets' shell commands.
|
|
75
77
|
const normalized = root
|
|
76
78
|
.replace(/^[\\/]/, '')
|
|
77
|
-
.
|
|
78
|
-
.
|
|
79
|
+
.toLowerCase()
|
|
80
|
+
.replace(/[^a-z0-9._-]+/g, '-');
|
|
79
81
|
return normalized.length > 128 ? normalized.slice(-128) : normalized;
|
|
80
82
|
}
|
|
81
83
|
function getProjectName(projectRoot, workspaceRoot) {
|
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": "24.0.0-
|
|
4
|
+
"version": "24.0.0-rc.0",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -85,10 +85,10 @@
|
|
|
85
85
|
"executors": "./executors.json",
|
|
86
86
|
"generators": "./generators.json",
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@nx/devkit": "24.0.0-
|
|
88
|
+
"@nx/devkit": "24.0.0-rc.0",
|
|
89
89
|
"tslib": "^2.3.0"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"nx": "24.0.0-
|
|
92
|
+
"nx": "24.0.0-rc.0"
|
|
93
93
|
}
|
|
94
94
|
}
|