Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
switching lerna scope
  • Loading branch information
BSd3v committed Sep 2, 2025
commit 03c7a1cdd5a547c6d1646c1f2fc26171e152f42f
4 changes: 2 additions & 2 deletions dash/development/update_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def bootstrap_components(components_source, concurrency, install_type):
else "{dash-core-components,dash-html-components,dash-table}"
)

cmdstr = f"npx lerna exec --concurrency {concurrency} --scope='{source_glob}' -- npm {install_type}"
cmdstr = f"npx lerna exec --concurrency {concurrency} --scope={source_glob} -- npm {install_type}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We needed those '' for spaces that might be in the directory path, while ' is not windows compatible, " is and work on both os.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tried it, and it did not work.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was an issue with the posix, needed to be passed True

cmd = shlex.split(cmdstr, posix=not is_windows)
status_print(cmdstr)

Expand Down Expand Up @@ -79,7 +79,7 @@ def build_components(components_source, concurrency):
else "{dash-core-components,dash-html-components,dash-table}"
)

cmdstr = f"npx lerna exec --concurrency {concurrency} --scope='{source_glob}' -- npm run build"
cmdstr = f"npx lerna exec --concurrency {concurrency} --scope={source_glob} -- npm run build"
cmd = shlex.split(cmdstr, posix=not is_windows)
status_print(cmdstr)

Expand Down
Loading