Skip to content

Commit 3992999

Browse files
committed
fix(deps): update
1 parent 7298957 commit 3992999

File tree

4 files changed

+195
-13984
lines changed

4 files changed

+195
-13984
lines changed

build/pnpm.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function downloadAndInstallPnpm(): Promise<void> {
5353
const versionData = await getVersionData('https://registry.npmjs.org/@pnpm/exe')
5454

5555
let version: string
56-
56+
5757
// read the version from the package.json
5858
const packageJson = await fs.readFile('package.json', 'utf8')
5959
const packageJsonData = JSON.parse(packageJson)
@@ -122,8 +122,10 @@ function detectPlatform(): string {
122122
}
123123
}
124124

125+
type Arch = 'x64' | 'arm64' | 'arm' | 'ia32' | 'amd64' | 'aarch64'
126+
125127
function detectArch(): string {
126-
let arch = os.arch()
128+
let arch = os.arch() as Arch
127129
const is64Bit = os.arch() === 'x64' || os.arch() === 'arm64'
128130

129131
if (os.platform() === 'win32') {

0 commit comments

Comments
 (0)