Skip to content

Commit c0c056a

Browse files
test: add nested package json case (#40)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 96e08b4 commit c0c056a

File tree

16 files changed

+106
-2
lines changed

16 files changed

+106
-2
lines changed

.github/actions/pnpm/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,16 @@ runs:
2828
corepack enable
2929
pnpm install
3030
31-
- name: yarn
31+
- name: yarn pnp
3232
shell: bash
3333
run: |
3434
cd fixtures/pnp
3535
corepack enable
3636
yarn install
37+
38+
- name: nested-package-json
39+
shell: bash
40+
run: |
41+
cd fixtures/misc/nested-package-json
42+
corepack enable
43+
yarn install
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.yarn/*
2+
!.yarn/patches
3+
!.yarn/plugins
4+
!.yarn/releases
5+
!.yarn/sdks
6+
!.yarn/versions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
enableTelemetry: false
2+
3+
nodeLinker: node-modules
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "nested-test",
3+
"packageManager": "yarn@4.8.0",
4+
"dependencies": {
5+
"@root/package": "link:./package"
6+
}
7+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"main": "../output/nested.js",
3+
"types": "../output/nested.d.ts"
4+
}

fixtures/misc/nested-package-json/package/output/index.d.ts

Whitespace-only changes.

fixtures/misc/nested-package-json/package/output/index.js

Whitespace-only changes.

fixtures/misc/nested-package-json/package/output/nested.d.ts

Whitespace-only changes.

fixtures/misc/nested-package-json/package/output/nested.js

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "@root/package",
3+
"version": "0.0.1",
4+
"main": "./output/index.js",
5+
"types": "./output/index.d.ts"
6+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy