Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nx:run-command replaces only first {projectName} in command #15983

Closed
mvrana-cen81948 opened this issue Mar 30, 2023 · 1 comment · Fixed by #16783
Closed

nx:run-command replaces only first {projectName} in command #15983

mvrana-cen81948 opened this issue Mar 30, 2023 · 1 comment · Fixed by #16783
Assignees
Labels

Comments

@mvrana-cen81948
Copy link

mvrana-cen81948 commented Mar 30, 2023

Current Behavior

projectName is example

nx.json, targetDefaults:

"publish": {
      "executor": "nx:run-commands",
      "options": {
        "commands": [
          "echo first: {projectName} second: {projectName}"
        ],
        "parallel": false
      }
    }

console:
first: example second: {projectName}

Expected Behavior

console:
first: example second: example

GitHub Repo

No response

Steps to Reproduce

Nx Report

>  NX   Report complete - copy this into the issue template

   Node : 16.14.2
   OS   : win32 x64
   npm  : 8.5.0

   nx : 15.6.3
   @nrwl/angular : 15.6.3
   @nrwl/cypress : 15.6.3
   @nrwl/detox : Not Found
   @nrwl/devkit : 15.6.3
   @nrwl/esbuild : Not Found
   @nrwl/eslint-plugin-nx : 15.6.3
   @nrwl/expo : Not Found
   @nrwl/express : Not Found
   @nrwl/jest : 15.6.3
   @nrwl/js : 15.6.3
   @nrwl/linter : 15.6.3
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : Not Found
   @nrwl/nx-cloud : Not Found
   @nrwl/nx-plugin : Not Found
   @nrwl/react : 15.6.3
   @nrwl/react-native : Not Found
   @nrwl/rollup : 15.8.6
   @nrwl/schematics : Not Found
   @nrwl/storybook : Not Found
   @nrwl/web : Not Found
   @nrwl/webpack : 15.6.3
   @nrwl/workspace : 15.6.3
   @nrwl/vite : 15.6.3
   typescript : 4.8.4
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:
         @jscutlery/semver: 2.29.3

Failure Logs

No response

Additional Information

No response

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants