-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tests] add fixture with conditions in directory export
- Loading branch information
Showing
8 changed files
with
206 additions
and
0 deletions.
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
packages/tests/fixtures/ex-conditions-in-folder/expected-without-conditions.json
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,74 @@ | ||
{ | ||
"name": "conditions-in-folder", | ||
"version": "0.0.0", | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"binaries": [], | ||
"require": [ | ||
"conditions-in-folder/package.json" | ||
], | ||
"import": [ | ||
"conditions-in-folder/package.json" | ||
], | ||
"files": [ | ||
"./package.json" | ||
], | ||
"tree": { | ||
"conditions-in-folder": { | ||
"package.json": [ | ||
"conditions-in-folder/package.json" | ||
] | ||
} | ||
}, | ||
"require (pre-exports)": [ | ||
"conditions-in-folder", | ||
"conditions-in-folder/cjs", | ||
"conditions-in-folder/cjs/", | ||
"conditions-in-folder/cjs/index", | ||
"conditions-in-folder/cjs/index.js", | ||
"conditions-in-folder/cjs/utils", | ||
"conditions-in-folder/cjs/utils.js", | ||
"conditions-in-folder/mjs/index.mjs", | ||
"conditions-in-folder/mjs/utils.mjs", | ||
"conditions-in-folder/package", | ||
"conditions-in-folder/package.json" | ||
], | ||
"files (pre-exports)": [ | ||
"./cjs/index.js", | ||
"./cjs/utils.js", | ||
"./mjs/index.mjs", | ||
"./mjs/utils.mjs", | ||
"./package.json" | ||
], | ||
"tree (pre-exports)": { | ||
"conditions-in-folder": { | ||
"cjs": { | ||
"index.js": [ | ||
"conditions-in-folder", | ||
"conditions-in-folder/cjs", | ||
"conditions-in-folder/cjs/", | ||
"conditions-in-folder/cjs/index", | ||
"conditions-in-folder/cjs/index.js" | ||
], | ||
"utils.js": [ | ||
"conditions-in-folder/cjs/utils", | ||
"conditions-in-folder/cjs/utils.js" | ||
] | ||
}, | ||
"mjs": { | ||
"index.mjs": [ | ||
"conditions-in-folder/cjs/index.mjs" | ||
], | ||
"utils.mjs": [ | ||
"conditions-in-folder/cjs/utils.mjs" | ||
] | ||
}, | ||
"package.json": [ | ||
"conditions-in-folder/package", | ||
"conditions-in-folder/package.json" | ||
] | ||
} | ||
}, | ||
"errors": [] | ||
} |
116 changes: 116 additions & 0 deletions
116
packages/tests/fixtures/ex-conditions-in-folder/expected.json
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,116 @@ | ||
{ | ||
"name": "conditions-in-folder", | ||
"version": "0.0.0", | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"binaries": [], | ||
"require": [ | ||
"conditions-in-folder", | ||
"conditions-in-folder/index", | ||
"conditions-in-folder/index.js", | ||
"conditions-in-folder/package.json", | ||
"conditions-in-folder/utils", | ||
"conditions-in-folder/utils.js" | ||
], | ||
"import": [ | ||
"conditions-in-folder", | ||
"conditions-in-folder/index.mjs", | ||
"conditions-in-folder/package.json", | ||
"conditions-in-folder/utils.mjs" | ||
], | ||
"files": [ | ||
"./index.js", | ||
"./cjs/index.js", | ||
"./cjs/utils.js", | ||
"./mjs/index.mjs", | ||
"./mjs/utils.mjs", | ||
"./package.json" | ||
], | ||
"tree": { | ||
"conditions-in-folder": { | ||
"cjs": { | ||
"index.js": [ | ||
"conditions-in-folder", | ||
"conditions-in-folder/index", | ||
"conditions-in-folder/index.js" | ||
], | ||
"utils.js": [ | ||
"conditions-in-folder/utils", | ||
"conditions-in-folder/utils.js" | ||
] | ||
}, | ||
"mjs": { | ||
"index.mjs": [ | ||
"conditions-in-folder", | ||
"conditions-in-folder/index.mjs" | ||
], | ||
"utils.mjs": [ | ||
"conditions-in-folder/utils.mjs" | ||
] | ||
}, | ||
"package.json": [ | ||
"conditions-in-folder/package.json" | ||
] | ||
} | ||
}, | ||
"require (pre-exports)": [ | ||
"conditions-in-folder", | ||
"conditions-in-folder/", | ||
"conditions-in-folder/index", | ||
"conditions-in-folder/index.js", | ||
"conditions-in-folder/cjs", | ||
"conditions-in-folder/cjs/", | ||
"conditions-in-folder/cjs/index", | ||
"conditions-in-folder/cjs/index.js", | ||
"conditions-in-folder/cjs/utils", | ||
"conditions-in-folder/cjs/utils.js", | ||
"conditions-in-folder/mjs/index.mjs", | ||
"conditions-in-folder/mjs/utils.mjs", | ||
"conditions-in-folder/package", | ||
"conditions-in-folder/package.json" | ||
], | ||
"files (pre-exports)": [ | ||
"./index.js", | ||
"./cjs/index.js", | ||
"./cjs/utils.js", | ||
"./mjs/index.mjs", | ||
"./mjs/utils.mjs", | ||
"./package.json" | ||
], | ||
"tree (pre-exports)": { | ||
"conditions-in-folder": { | ||
"index.js": [ | ||
"conditions-in-folder/", | ||
"conditions-in-folder/index", | ||
"conditions-in-folder/index.js" | ||
], | ||
"cjs": { | ||
"index.js": [ | ||
"conditions-in-folder", | ||
"conditions-in-folder/cjs", | ||
"conditions-in-folder/cjs/", | ||
"conditions-in-folder/cjs/index", | ||
"conditions-in-folder/cjs/index.js" | ||
], | ||
"utils.js": [ | ||
"conditions-in-folder/cjs/utils", | ||
"conditions-in-folder/cjs/utils.js" | ||
] | ||
}, | ||
"mjs": { | ||
"index.mjs": [ | ||
"conditions-in-folder/cjs/index.mjs" | ||
], | ||
"utils.mjs": [ | ||
"conditions-in-folder/cjs/utils.mjs" | ||
] | ||
}, | ||
"package.json": [ | ||
"conditions-in-folder/package", | ||
"conditions-in-folder/package.json" | ||
] | ||
} | ||
}, | ||
"errors": [] | ||
} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
16 changes: 16 additions & 0 deletions
16
packages/tests/fixtures/ex-conditions-in-folder/project/package.json
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,16 @@ | ||
{ | ||
"name": "conditions-in-folder", | ||
"version": "0.0.0", | ||
"main": "./cjs/index.js", | ||
"exports": { | ||
".": { | ||
"import": "./mjs/index.mjs", | ||
"default": "./cjs/index.js" | ||
}, | ||
"./package.json": "./package.json", | ||
"./": { | ||
"import": "./mjs/", | ||
"default": "./cjs/" | ||
} | ||
} | ||
} |