The Bolt Design System provides robust Twig and Web Component-powered UI components, reusable visual styles, and powerful tooling to help developers, designers, and content authors build, maintain, and scale best of class digital experiences.
Remove semver-compare dependency. The semver package we already use has a function for comparing.
Get lerna.json using process.cwd() rather than relative path from package.
Refactor a couple JS loops to use ES6 methods that are shorter and do the same thing.
Use semver validation instead of RegEx to filter out tags. Regex works just fine here, but I thought the semver validation would be a more explicit check for what we're looking for, and I prefer to use RegEx only as a last resort.
Jira
n/a
Summary
Refactors some JS in #2406.
Details
semver-compare
dependency. Thesemver
package we already use has a function for comparing.lerna.json
usingprocess.cwd()
rather than relative path from package.