File tree Expand file tree Collapse file tree 4 files changed +195
-13984
lines changed
Expand file tree Collapse file tree 4 files changed +195
-13984
lines changed Original file line number Diff line number Diff 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+
125127function 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' ) {
You can’t perform that action at this time.
0 commit comments