diff --git a/dist/index.js b/dist/index.js index 8867301..5149cd7 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/src/install-pnpm/run.ts b/src/install-pnpm/run.ts index 7a547f0..72c7e8b 100644 --- a/src/install-pnpm/run.ts +++ b/src/install-pnpm/run.ts @@ -16,7 +16,7 @@ export async function runSelfInstaller(inputs: Inputs): Promise { // prepare target pnpm const target = await readTarget({ version, packageJsonFile, standalone }) - const cp = spawn(execPath, [path.join(__dirname, 'pnpm.js'), 'install', target, '--no-lockfile'], { + const cp = spawn(execPath, [path.join(__dirname, 'pnpm.cjs'), 'install', target, '--no-lockfile'], { cwd: dest, stdio: ['pipe', 'inherit', 'inherit'], }) diff --git a/tsconfig.json b/tsconfig.json index 0f323f6..dcb9a1b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,11 @@ { "compilerOptions": { - "target": "ES2018", - "module": "CommonJS", - "moduleResolution": "Node", + "target": "ES2022", + "module": "Node16", "resolveJsonModule": true, "lib": [ - "ES2018", - "ES2019", - "ES2020", - "ESNext" + "ES2023" ], "outDir": "./dist/tsc", "preserveConstEnums": true,