Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite71e325

Browse files
committed
feat: support text-based
1 parent946a292 commite71e325

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎index.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎src/index.js‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ async function run(octokit, context, token) {
5252

5353
letyarnLock=awaitfileExists(path.resolve(cwd,'yarn.lock'));
5454
letpnpmLock=awaitfileExists(path.resolve(cwd,'pnpm-lock.yaml'));
55-
letbunLock=awaitfileExists(path.resolve(cwd,'bun.lockb'));
55+
letbunLockb=awaitfileExists(path.resolve(cwd,'bun.lockb'));
56+
letbunLock=awaitfileExists(path.resolve(cwd,'bun.lock'));
5657
letpackageLock=awaitfileExists(path.resolve(cwd,'package-lock.json'));
5758

5859
letpackageManager='npm';
@@ -63,7 +64,7 @@ async function run(octokit, context, token) {
6364
}elseif(pnpmLock){
6465
installScript='pnpm install --frozen-lockfile';
6566
packageManager='pnpm';
66-
}elseif(bunLock){
67+
}elseif(bunLockb||bunLock){
6768
installScript='bun install --frozen-lockfile';
6869
packageManager='bun';
6970
}elseif(packageLock){
@@ -129,7 +130,8 @@ async function run(octokit, context, token) {
129130

130131
yarnLock=awaitfileExists(path.resolve(cwd,'yarn.lock'));
131132
pnpmLock=awaitfileExists(path.resolve(cwd,'pnpm-lock.yaml'));
132-
bunLock=awaitfileExists(path.resolve(cwd,'bun.lockb'));
133+
bunLockb=awaitfileExists(path.resolve(cwd,'bun.lockb'));
134+
bunLock=awaitfileExists(path.resolve(cwd,'bun.lock'));
133135
packageLock=awaitfileExists(path.resolve(cwd,'package-lock.json'));
134136

135137
packageManager='npm';
@@ -140,7 +142,7 @@ async function run(octokit, context, token) {
140142
}elseif(pnpmLock){
141143
installScript=`pnpm install --frozen-lockfile`;
142144
packageManager=`pnpm`;
143-
}elseif(bunLock){
145+
}elseif(bunLockb||bunLock){
144146
installScript=`bun install --frozen-lockfile`;
145147
packageManager=`bun`;
146148
}elseif(packageLock){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp