-
Notifications
You must be signed in to change notification settings - Fork 17
Feature/update cli to bun and update depedencies phoen 147 #492
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
Feature/update cli to bun and update depedencies phoen 147 #492
Conversation
- Updated all instances of `import program from 'commander'` to `import { Command } from 'commander'` across multiple files.
- Introduced a new build script using Bun to compile TypeScript files from the `src` directory to the `build` directory.
- Changed the main entry point in `package.json` to point to the new TypeScript file structure.
- Added `@types/bun` as a development dependency.
- Removed deprecated files related to function testing and icon conversion.
- Enhanced error handling in various files to provide clearer feedback.
- Removes obsolete `runtimeVersion` option and v2 specific logic. - Updates dependencies and file handling for increased reliability. - Ensures consistent error handling by wrapping errors in a standard format. - Fixes prefab filtering to avoid errors. - Updates component serving port
Updates `@betty-blocks/cli` and `@betty-blocks/component-sdk` dependencies to their latest versions. Refactors command argument parsing to use explicit `argument` definitions, improving clarity and maintainability.
Migrates the CI/CD pipeline from Node.js and Yarn to Bun for improved performance and maintainability. Updates dependencies and scripts to be compatible with Bun.
Migrates from the deprecated `.eslintrc.js` style to the new flat config file `eslint.config.mjs`. This involves updating eslint, typescript-eslint and prettier related dependencies to latest version and adjusting the configuration.
Updates prettier scripts for improved readability and maintainability.
Updates the prettier execution command in the CI workflow to use the `fix` script.
Addresses potential null/undefined values by incorporating nullish coalescing operators and optional chaining. Also, applies minor cleanup: - Adds missing return type annotations for better type safety. - Uses destructuring for more concise variable assignment. - Removes unused imports.
Updates the `validatePrefabs` function to accept a single object containing prefabs, styles, and other configuration options, instead of multiple arguments. This change improves code readability and maintainability by grouping related parameters into a single object. Updates tests to reflect the new signature of `validatePrefabs`.
Updates linting and formatting setup. - Adds prettierignore to ignore build files, node_modules, lock files, changelog, coverage and readme files. - Updates ci.yml to use format:check and lint:check scripts for checking formatting and linting. - Updates lint and format scripts in package.json - Fixes minor code style issues.
This resolves compatibility issues and ensures the application benefits from the latest features and security patches.
Refactors the `validatePrefabs` and `publish` functions to accept options objects, improving code clarity and maintainability.
- @babel - form-data - fs-extra - joi
- ora - prismjs - serve-handler
Updates minimist dependency to version 1.2.8 for security fixes. Refactors eslint configuration to improve performance by removing unnecessary ignored paths and simplifies JSDoc comment processing by using TypeScript's factory for more concise object creation.
Refactors code structure for better readability and maintainability across multiple test files.
Updates dependencies to their latest versions, including @types/adm-zip, adm-zip, @types/babel__generator, and @types/babel__traverse. Increases the timeout for block validation tests to prevent failures due to slow validation. Adds instructions for local development in the README.
- Improves error handling throughout the CLI, ensuring more informative error messages. - Moves `stripVTControlCharacters` to `__tests__/utils.ts` - Updates dependencies in `bun.lock` and `package.json`.
Replaces lodash's kebabCase and other string manipulation libraries with the 'case' package for consistent and more comprehensive string case conversions. The 'pick' utility function is also introduced to replace lodash's pick.
Refactors test file imports for consistency and improves test assertions for component and interaction compatibility.
|
🎉 This PR is included in version 26.0.0-beta.15 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 26.0.0-beta.16 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Updates the shebang to use node instead of bun. This change ensures compatibility with environments where bun is not available but node is.
|
🎉 This PR is included in version 26.0.0-beta.17 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 26.0.0-beta.18 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 26.0.0-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 26.0.0-alpha.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
|
🎉 This PR is included in version 26.0.0-alpha.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |




DO NOT MERGE YET
The component set also needs to be updated to support this CLI release.