Skip to content

Commit

Permalink
bun test lockfile support (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys authored Jan 16, 2025
1 parent 763f98d commit edf8105
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions gdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ export class GDF {
'package-lock.json', '.npmrc',
'pnpm-lock.yaml',
'yarn.lock', '.yarnrc', '.yarnrc.yml',
'bun.lockb'
'bun.lockb', 'bun.lock'
]

for (const file of files) {
Expand All @@ -612,7 +612,7 @@ export class GDF {

const packageFiles = this.packageFiles

if (packageFiles.includes('bun.lockb')) {
if (packageFiles.includes('bun.lockb') || packageFiles.includes('bun.lock')) {
this.#packager = 'bun'
} else if (packageFiles.includes('pnpm-lock.yaml')) {
this.#packager = 'pnpm'
Expand Down
2 changes: 1 addition & 1 deletion test/base/bun/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential pkg-config python-is-python3

# Install node modules
COPY bun.lockb package.json ./
COPY bun.lock package.json ./
RUN bun install --ci

# Copy application code
Expand Down
25 changes: 25 additions & 0 deletions test/base/bun/bun.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"lockfileVersion": 0,
"workspaces": {
"": {
"name": "bunserver",
"devDependencies": {
"bun-types": "latest",
},
"peerDependencies": {
"typescript": "^5.0.0",
},
},
},
"packages": {
"@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~5.26.4" } }, "sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg=="],

"@types/ws": ["@types/[email protected]", "", { "dependencies": { "@types/node": "*" } }, "sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA=="],

"bun-types": ["[email protected]", "", { "dependencies": { "@types/node": "~20.12.8", "@types/ws": "~8.5.10" } }, "sha512-W0wCtVH+bwFp7p3Zgs03CqxEDmXxEvmmUM/FBKgWIv9T8gyeotvIjIbHzuDScc2DphhRNtr7hJLCR5PspYL5qw=="],

"typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw=="],

"undici-types": ["[email protected]", "", {}, "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="],
}
}
Binary file removed test/base/bun/bun.lockb
Binary file not shown.

0 comments on commit edf8105

Please sign in to comment.