-
Notifications
You must be signed in to change notification settings - Fork 302
Add versioned bundle builder with x-github-api-versions support #5904
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 |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| node_modules/ | ||
| node_modules/ | ||
| output/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,13 +7,19 @@ | |
| }, | ||
| "license": "MIT", | ||
| "scripts": { | ||
| "lint": "eslint descriptions/**/*.json --ext .json" | ||
| "lint": "eslint descriptions/**/*.json --ext .json", | ||
| "build": "node scripts/build-versioned-bundles.js", | ||
| "build:versioned": "node scripts/build-versioned-bundles.js --output output/versioned", | ||
| "build:api.github.com": "node scripts/build-versioned-bundles.js --releases api.github.com", | ||
| "build:ghec": "node scripts/build-versioned-bundles.js --releases ghec", | ||
| "build:ghes": "node scripts/build-versioned-bundles.js --releases $(ls descriptions | grep ghes | tr '\\n' ',')" | ||
|
||
| }, | ||
| "eslintConfig": { | ||
| "extends": ["plugin:json/recommended"] | ||
| }, | ||
| "devDependencies": { | ||
| "eslint": "^8.13.0", | ||
| "eslint-plugin-json": "^3.1.0" | ||
| "eslint-plugin-json": "^3.1.0", | ||
| "js-yaml": "^4.1.0" | ||
| } | ||
| } | ||
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.
The shell command substitution $(ls descriptions | grep ghes | tr '\n' ',') in the build:ghes script will result in a trailing comma (e.g., "ghes-3.16,ghes-3.17,"). While the script may handle this gracefully due to the .trim() operation on split results, it could lead to an empty string in the releases array. Consider trimming the trailing comma or handling empty strings in the releases array explicitly.