@nx/docker 23.3.0-pr.37068.f95e11e → 23.3.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.
package/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](<>)
13
13
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
14
14
  [![Join us on the Official Nx Discord Server](https://img.shields.io/discord/1143497901675401286?label=discord)](https://go.nx.dev/community)
15
- [![Nx Sandboxing](https://staging.nx.app/workspaces/62d013ea0852fe0a2df74438/sandbox-badge.svg)](https://nx.dev/docs/features/ci-features/sandboxing)
15
+ [![Hours saved](https://img.shields.io/endpoint?url=https%3A%2F%2Fstaging.nx.app%2Fnx-cloud%2Fbadge%2F62d013ea0852fe0a2df74438%2Fhours-saved.json)](https://nx.dev/nx-cloud)
16
16
 
17
17
  </div>
18
18
 
@@ -47,15 +47,26 @@ async function createNodesInternal(configFilePath, hash, normalizedOptions, cont
47
47
  };
48
48
  }
49
49
  function interpolateDockerTargetOptions(options, projectRoot, imageRef, context) {
50
- const commitSha = (0, internal_1.getLatestCommitSha)();
50
+ let commitSha;
51
+ const getCommitSha = () => {
52
+ if (commitSha === undefined) {
53
+ commitSha = (0, internal_1.getLatestCommitSha)();
54
+ }
55
+ return commitSha;
56
+ };
51
57
  const projectName = getProjectName(projectRoot, context.workspaceRoot);
52
58
  const tokens = {
53
59
  projectRoot,
54
60
  projectName,
55
61
  imageRef,
56
62
  currentDate: new Date(),
57
- commitSha,
58
- shortCommitSha: commitSha ? commitSha.slice(0, 7) : null,
63
+ get commitSha() {
64
+ return getCommitSha();
65
+ },
66
+ get shortCommitSha() {
67
+ const sha = getCommitSha();
68
+ return sha ? sha.slice(0, 7) : null;
69
+ },
59
70
  };
60
71
  return (0, interpolate_pattern_1.interpolateObject)(options, tokens);
61
72
  }
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": "23.3.0-pr.37068.f95e11e",
4
+ "version": "23.3.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
- "tslib": "^2.3.0",
89
- "@nx/devkit": "23.3.0-pr.37068.f95e11e"
88
+ "@nx/devkit": "23.3.0-rc.0",
89
+ "tslib": "^2.3.0"
90
90
  },
91
91
  "devDependencies": {
92
- "nx": "23.3.0-pr.37068.f95e11e"
92
+ "nx": "23.3.0-rc.0"
93
93
  }
94
94
  }
@@ -0,0 +1,20 @@
1
+ <p style="text-align: center;">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
+ <img alt="Nx - Smart Monorepos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
+ </picture>
6
+ </p>
7
+
8
+ {{links}}
9
+
10
+ <hr>
11
+
12
+ # Nx: Smart Monorepos · Fast Builds
13
+
14
+ Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
15
+
16
+ This package is a [Docker plugin for Nx](https://nx.dev/technologies/build-tools/docker/introduction).
17
+
18
+ **Experimental**: Support for Docker is currently experimental. Breaking changes may occur and not adhere to semver versioning.
19
+
20
+ {{content}}