Skip to content

Conversation

@alexlamsl
Copy link
Contributor

  • change current working directory for workspaces
  • add node_modules/.bin to PATH before running

- change current working directory for workspaces
- add `node_modules/.bin` to `PATH` before running
var needs_colon = false;
if (package_json_dir.len > 0) {
defer needs_colon = true;
if (needs_colon) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This branch will always be true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

would this defer be executed at the end of if (package_json_dir.len > 0) {...}? 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah


pub const Scripts = struct {
const StringArrayList = std.ArrayListUnmanaged(string);
const Entry = struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

we almost could add a --filter with this! Just missing another map to say "which package.json name does it belong to"

@Jarred-Sumner Jarred-Sumner merged commit 893ec2f into oven-sh:main Jan 15, 2023
@Jarred-Sumner
Copy link
Collaborator

Looks good, thanks for fixing

@alexlamsl alexlamsl deleted the workspace-scripts branch January 15, 2023 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants