-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(node): Docker generator should work (#23452)
Also fixes the unit tests for node package ## Currently When you generate a docker file using either the node generator or the node:setup-docker generator using inferred targets would create the DockerFile but the COPY command would be incorrect. It would resemble something similar to ``` //... COPY acme //etc... ``` ## Expected Now it generates the correct command. ``` //... COPY dist/acme acme/ //etc... ``` closes: #23365 (cherry picked from commit 1b7cf42)
- Loading branch information
1 parent
31236a1
commit 40aca15
Showing
5 changed files
with
98 additions
and
19 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
packages/node/src/generators/application/application.legacy.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import 'nx/src/internal-testing-utils/mock-project-graph'; | ||
|
||
import { | ||
readNxJson, | ||
readProjectConfiguration, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters