@@ -2,7 +2,6 @@ import { info, warning, debug } from "@actions/core";
22import { getExecOutput } from "@actions/exec" ;
33import { existsSync , readdirSync } from "node:fs" ;
44import { isAbsolute , join , basename } from "node:path" ;
5- import { homedir } from "node:os" ;
65import { LockFileType } from "./types.js" ;
76import type { LockFileInfo } from "./types.js" ;
87
@@ -12,7 +11,6 @@ const LOCK_FILES: Array<{ filename: string; type: LockFileType }> = [
1211 { filename : "package-lock.json" , type : LockFileType . Npm } ,
1312 { filename : "npm-shrinkwrap.json" , type : LockFileType . Npm } ,
1413 { filename : "yarn.lock" , type : LockFileType . Yarn } ,
15- { filename : "bun.lockb" , type : LockFileType . Bun } ,
1614] ;
1715
1816/**
@@ -67,9 +65,6 @@ function inferLockFileType(fullPath: string, filename: string): LockFileInfo {
6765 if ( filename . includes ( "yarn" ) ) {
6866 return { type : LockFileType . Yarn , path : fullPath , filename } ;
6967 }
70- if ( filename . includes ( "bun" ) ) {
71- return { type : LockFileType . Bun , path : fullPath , filename } ;
72- }
7368 // Default to npm
7469 return { type : LockFileType . Npm , path : fullPath , filename } ;
7570}
@@ -83,8 +78,6 @@ export async function getCacheDirectories(lockType: LockFileType): Promise<strin
8378 case LockFileType . Pnpm :
8479 case LockFileType . Yarn :
8580 return getViteCacheDir ( ) ;
86- case LockFileType . Bun :
87- return getBunCacheDir ( ) ;
8881 default :
8982 return [ ] ;
9083 }
@@ -112,13 +105,3 @@ async function getViteCacheDir(): Promise<string[]> {
112105 const cacheDir = await getCommandOutput ( "vite" , [ "pm" , "cache" , "dir" ] ) ;
113106 return cacheDir ? [ cacheDir ] : [ ] ;
114107}
115-
116- async function getBunCacheDir ( ) : Promise < string [ ] > {
117- const cacheDir = await getCommandOutput ( "bun" , [ "pm" , "cache" ] ) ;
118- if ( cacheDir ) return [ cacheDir ] ;
119-
120- // Fallback to default location
121- const home = homedir ( ) ;
122- const defaultCache = join ( home , ".bun" , "install" , "cache" ) ;
123- return existsSync ( defaultCache ) ? [ defaultCache ] : [ ] ;
124- }
0 commit comments