Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support yarn PnP out of box, propagate PnP runtime (#98)
Co-authored-by: JounQin <admin@1stg.me>
- Loading branch information
Showing
12 changed files
with
10,666 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"synckit": patch | ||
--- | ||
|
||
feat: support yarn PnP out of box, propagate PnP runtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { resolve } from 'node:path' | ||
|
||
import { execaNode } from 'execa' | ||
|
||
test('yarn-pnp', async () => { | ||
const { stdout } = await execaNode('index.js', [], { | ||
nodeOptions: ['-r', './.pnp.cjs'], | ||
cwd: resolve('test/fixtures/yarn-pnp'), | ||
}) | ||
expect(stdout).toBe([1, 2, 5].join(' ')) | ||
}) |
Oops, something went wrong.