@ape-egg/vibe-compiler 3.0.5 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ape-egg/vibe-compiler",
3
- "version": "3.0.5",
3
+ "version": "4.0.1",
4
4
  "type": "module",
5
5
  "description": "Optional Rust compiler for Vibe — pre-renders, inlines components, and optimizes iterations. The runtime never needs it.",
6
6
  "homepage": "https://vibe.korte.kim",
package/src/Cargo.lock CHANGED
@@ -1599,7 +1599,7 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
1599
1599
 
1600
1600
  [[package]]
1601
1601
  name = "vibe-compiler"
1602
- version = "3.0.2"
1602
+ version = "4.0.1"
1603
1603
  dependencies = [
1604
1604
  "clap",
1605
1605
  "colored",
package/src/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "vibe-compiler"
3
- version = "3.0.2"
3
+ version = "4.0.1"
4
4
  edition = "2021"
5
5
  description = "Vibe framework compiler - compiles Vibe source files into optimized output"
6
6
  authors = ["Kim Korte"]
@@ -2485,6 +2485,7 @@ impl Compiler {
2485
2485
 
2486
2486
  // 2. Copy lockfile if it exists (needed for reproducible installs)
2487
2487
  let lockfile_name = match pkg_manager.as_str() {
2488
+ "bun" if self.config.working_dir.join("bun.lock").exists() => "bun.lock",
2488
2489
  "bun" => "bun.lockb",
2489
2490
  "pnpm" => "pnpm-lock.yaml",
2490
2491
  "yarn" => "yarn.lock",
@@ -2520,7 +2521,7 @@ impl Compiler {
2520
2521
 
2521
2522
  /// Detect package manager from lockfiles
2522
2523
  fn detect_package_manager(dir: &Path) -> Result<String, CompileError> {
2523
- if dir.join("bun.lockb").exists() {
2524
+ if dir.join("bun.lockb").exists() || dir.join("bun.lock").exists() {
2524
2525
  return Ok("bun".to_string());
2525
2526
  }
2526
2527
  if dir.join("pnpm-lock.yaml").exists() {