Skip to content

Commit 3117413

Browse files
committed
chore: wip
1 parent 374ac04 commit 3117413

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

packages/launchpad/src/binary-downloader.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* eslint-disable no-console */
2+
import type { GitHubRelease } from './types'
23
import { Buffer } from 'node:buffer'
34
import { execSync } from 'node:child_process'
45
import * as fs from 'node:fs'
56
import * as path from 'node:path'
67
import process from 'node:process'
78
import { config } from './config'
8-
import type { GitHubRelease } from './types'
99

1010
export interface BinaryInfo {
1111
filename: string
@@ -220,7 +220,7 @@ export class PrecompiledBinaryDownloader {
220220
const release = await response.json() as GitHubRelease
221221

222222
// Find manifest.json in release assets
223-
const manifestAsset = release.assets?.find((asset) => asset.name === 'manifest.json')
223+
const manifestAsset = release.assets?.find(asset => asset.name === 'manifest.json')
224224
if (!manifestAsset) {
225225
throw new Error('No manifest.json found in latest release')
226226
}
@@ -235,7 +235,7 @@ export class PrecompiledBinaryDownloader {
235235

236236
// Add download URLs to binaries
237237
manifest.binaries = manifest.binaries.map((binary) => {
238-
const asset = release.assets?.find((asset) => asset.name === binary.filename)
238+
const asset = release.assets?.find(asset => asset.name === binary.filename)
239239
return {
240240
...binary,
241241
download_url: asset?.browser_download_url || '',

packages/launchpad/src/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4095,7 +4095,7 @@ export async function installDependenciesOnly(packages: string[], installPath?:
40954095
await fs.promises.mkdir(targetPath, { recursive: true })
40964096

40974097
const allInstalledFiles: string[] = []
4098-
let totalDepsProcessed = 0
4098+
// const totalDepsProcessed = 0
40994099
let totalDepsAlreadyInstalled = 0
41004100

41014101
try {

packages/launchpad/src/php/php-strategy.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ export class SourceBuildPHPStrategy implements PHPStrategy {
7979
}
8080

8181
async install(): Promise<PHPInstallResult> {
82-
const path = await import('node:path')
83-
const os = await import('node:os')
84-
8582
try {
8683
// Get the latest PHP version dynamically
8784
const latestVersion = await getLatestPHPVersion()

0 commit comments

Comments
 (0)