migrate: switch from Node.js/npm to Bun runtime - #94
Open
charudatta10 wants to merge 4 commits into
Open
Conversation
Migrate project to Bun v1.3.14 as runtime, package manager, and task runner. BREAKING CHANGES: - Removed: package-lock.json, node_modules, cross-env dependency - Generated: bun.lock - Scripts now use: bun, bunx, bun --bun instead of node, npm, npx - Removed: --max-old-space-size V8 flags (unnecessary with Bun/JavaScriptCore) MODIFIED FILES (12): package.json - Scripts use bun/bunx with --bun flag for JS-native runtime - Removed cross-env from devDependencies - Added typecheck script - Removed --max-old-space-size flags README.md, CONTRIBUTING.md - npm install/run/npx/node -> bun install/run/bunx/bun .github/workflows/lint-js.yml, fmt.yml, release.yml, audit.yml - setup-node -> oven-sh/setup-bun@v2 - npm ci -> bun install - npx -> bunx - NODE_OPTIONS env removed - package-lock.json trigger -> bun.lock - npm-audit job -> bun-audit .devcontainer/devcontainer.json, Dockerfile - postCreateCommand: npm ci -> bun install - Dockerfile: Node.js install -> Bun install scripts/generate-extension-meta.js - writeFileSync -> Bun.write() (async, top-level await) - readFileSync -> Bun.file().text() - Restructured with async main() for proper await scripts/postbuild.js - fs.statSync -> Bun.file().size getter - esbuild-style import cleanup NEW FILES (2): - .gitattributes (bun.lock linguist-generated) - bun.lock VALIDATION: - bun install: 192 packages, 22.31s - bun run lint: clean - bun run typecheck: clean - bun run build: 34.17s - bun test: no tests found (project has Rust tests via cargo test)
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Author
|
port node to bun #88 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrate project to Bun v1.3.14 as runtime, package manager, and task runner.
BREAKING CHANGES:
MODIFIED FILES (12):
package.json
README.md, CONTRIBUTING.md
.github/workflows/lint-js.yml, fmt.yml, release.yml, audit.yml
.devcontainer/devcontainer.json, Dockerfile
scripts/generate-extension-meta.js
scripts/postbuild.js
NEW FILES (2):
VALIDATION: