diff --git a/package.json b/package.json index 5a7203747..969f78dd9 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,9 @@ "engines": { "node": ">=14.14.0" }, + "exports": { + "./package.json": "./package.json" + }, "license": "MIT", "packageManager": "yarn@4.0.0-rc.15+sha224.7fa5c1d1875b041cea8fcbf9a364667e398825364bf5c5c8cd5f6601", "devDependencies": { diff --git a/tests/_runCli.ts b/tests/_runCli.ts index 0b3677452..e028af751 100644 --- a/tests/_runCli.ts +++ b/tests/_runCli.ts @@ -8,7 +8,7 @@ export async function runCli(cwd: PortablePath, argv: Array): Promise<{e return new Promise((resolve, reject) => { if (process.env.RUN_CLI_ID) (process.env.RUN_CLI_ID as any)++; - const child = spawn(process.execPath, [`--no-warnings`, `-r`, require.resolve(`./recordRequests.js`), require.resolve(`corepack/dist/corepack.js`), ...argv], { + const child = spawn(process.execPath, [`--no-warnings`, `-r`, require.resolve(`./recordRequests.js`), require.resolve(`../dist/corepack.js`), ...argv], { cwd: npath.fromPortablePath(cwd), env: process.env, stdio: `pipe`,