Skip to content

Commit

Permalink
feat: Yarn PnP (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis authored and SoonIter committed Jul 23, 2024
1 parent 7c0de70 commit e4bbcf7
Show file tree
Hide file tree
Showing 13 changed files with 7,849 additions and 38 deletions.
12 changes: 11 additions & 1 deletion .github/actions/pnpm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,15 @@ runs:
node-version-file: .node-version
cache: pnpm

- run: pnpm install
- name: yarn
shell: bash
run: |
cd fixtures/pnp
corepack enable
yarn install
- name: pnpm
shell: bash
run: |
corepack enable
pnpm install
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ once_cell = "1.19.0" # Use `std::sync::OnceLock::get_or_try_init` when it is sta
thiserror = "1.0.61"
json-strip-comments = "1.0.2"
indexmap = { version = "2.2.6", features = ["serde"] }
cfg-if = "1.0"

pnp = { version = "0.9.0", optional = true }

document-features = { version = "0.2.8", optional = true }

Expand All @@ -99,6 +102,8 @@ default = []
## Enables the [PackageJson::raw_json] API,
## which returns the `package.json` with `serde_json::Value`.
package_json_raw_json_api = []
## [Yarn Plug'n'Play](https://yarnpkg.com/features/pnp)
yarn_pnp = ["pnp"]
# For codspeed benchmark
codspeed = ["criterion2/codspeed"]

Expand Down
1 change: 1 addition & 0 deletions fixtures/pnp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
install_state.gz
Loading

0 comments on commit e4bbcf7

Please sign in to comment.