-
Notifications
You must be signed in to change notification settings - Fork 9
fix: execute inside of matrix package not root #180
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,8 @@ | |
| "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
| "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
| "clean": "rm -rf dist && rm -rf .svelte-kit", | ||
| "is-release-needed": "bash ../../scripts/is-release-needed.sh" | ||
| "check-release-type": "bash ../../scripts/check-release-type.sh", | ||
| "publish-next-release": "bash ../../scripts/publish-next-release.sh" | ||
|
Comment on lines
+15
to
+16
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consider improving script robustness and cross-platform compatibility. While the current implementation works, consider these improvements:
Example improvement: - "check-release-type": "bash ../../scripts/check-release-type.sh",
- "publish-next-release": "bash ../../scripts/publish-next-release.sh"
+ "check-release-type": "node ../../scripts/check-release-type.js",
+ "publish-next-release": "node ../../scripts/publish-next-release.js"This would:
|
||
| }, | ||
| "exports": { | ||
| ".": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,8 @@ | |
| "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", | ||
| "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", | ||
| "clean": "rm -rf dist && rm -rf .svelte-kit", | ||
| "is-release-needed": "bash ../../scripts/is-release-needed.sh" | ||
| "check-release-type": "bash ../../scripts/check-release-type.sh", | ||
| "publish-next-release": "bash ../../scripts/publish-next-release.sh" | ||
|
Comment on lines
+15
to
+16
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification The referenced shell scripts exist and are consistently used across all packages, but they lack executable permissions:
Please add executable permissions to these scripts: chmod +x scripts/check-release-type.sh scripts/publish-next-release.sh🔗 Analysis chainLGTM! Verify referenced shell scripts exist. The script changes correctly use relative paths to ensure execution from the package context, which aligns with the PR objective. Let's verify the referenced shell scripts exist and have proper permissions: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify the existence and permissions of the referenced shell scripts
# Test: Check if the scripts exist and are executable
ls -l scripts/check-release-type.sh scripts/publish-next-release.sh
# Test: Verify these scripts are consistently used across all packages
fd -t f "package.json" packages/ -x grep -l "check-release-type\|publish-next-release"
Length of output: 471 Script: #!/bin/bash
# Let's verify if the scripts have consistent usage across all packages by checking their content
for pkg in packages/*/package.json; do
echo "=== $pkg ==="
grep -A 2 "check-release-type\|publish-next-release" "$pkg"
done
Length of output: 1584 |
||
| }, | ||
| "exports": { | ||
| ".": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
Document release process changes
Consider adding comments in the package.json or updating the repository's documentation to explain:
check-release-typeandpublish-next-release