-
-
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 remapped folder
[Tests] modify expected.json to match the expected content [Tests] add fixture with conditions in directory export
- Loading branch information
Showing
32 changed files
with
2,008 additions
and
12 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
100 changes: 100 additions & 0 deletions
100
packages/tests/fixtures/ex-conditions-in-folder/expected/broken-dir-slash-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,100 @@ | ||
{ | ||
"name": "ex-conditions-in-folder", | ||
"version": "0.0.0", | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"problems": [], | ||
"exports": { | ||
"binaries": {}, | ||
"latest": "broken-dir-slash-conditions", | ||
"broken-dir-slash-conditions": { | ||
"import": { | ||
".": "./mjs/index.mjs" | ||
}, | ||
"require": { | ||
".": "./cjs/index.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"./package.json", | ||
"./cjs/index.js", | ||
"./mjs/index.mjs" | ||
], | ||
"tree": { | ||
"cjs": { | ||
"index.js": [ | ||
"." | ||
] | ||
}, | ||
"package.json": [ | ||
"./package.json" | ||
], | ||
"mjs": { | ||
"index.mjs": [ | ||
"." | ||
] | ||
} | ||
} | ||
}, | ||
"pre-exports": { | ||
"import": {}, | ||
"require": { | ||
".": "./cjs/index.js", | ||
"./": "./cjs/index.js", | ||
"./cjs": "./cjs/index.js", | ||
"./index": "./index.js", | ||
"./index.js": "./index.js", | ||
"./package": "./package.json", | ||
"./package.json": "./package.json", | ||
"./cjs/": "./cjs/index.js", | ||
"./cjs/index": "./cjs/index.js", | ||
"./cjs/index.js": "./cjs/index.js", | ||
"./cjs/utils": "./cjs/utils.js", | ||
"./cjs/utils.js": "./cjs/utils.js", | ||
"./mjs/index.mjs": "./mjs/index.mjs", | ||
"./mjs/utils.mjs": "./mjs/utils.mjs" | ||
}, | ||
"files": [ | ||
"./index.js", | ||
"./package.json", | ||
"./cjs/index.js", | ||
"./cjs/utils.js", | ||
"./mjs/index.mjs", | ||
"./mjs/utils.mjs" | ||
], | ||
"tree": { | ||
"index.js": [ | ||
"./index.js", | ||
"./index" | ||
], | ||
"package.json": [ | ||
"./package.json", | ||
"./package" | ||
], | ||
"cjs": { | ||
"index.js": [ | ||
".", | ||
"./", | ||
"./cjs", | ||
"./cjs/", | ||
"./cjs/index.js", | ||
"./cjs/index" | ||
], | ||
"utils.js": [ | ||
"./cjs/utils.js", | ||
"./cjs/utils" | ||
] | ||
}, | ||
"mjs": { | ||
"index.mjs": [ | ||
"./mjs/index.mjs" | ||
], | ||
"utils.mjs": [ | ||
"./mjs/utils.mjs" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
85 changes: 85 additions & 0 deletions
85
packages/tests/fixtures/ex-conditions-in-folder/expected/broken.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,85 @@ | ||
{ | ||
"name": "ex-conditions-in-folder", | ||
"version": "0.0.0", | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"problems": [], | ||
"exports": { | ||
"binaries": {}, | ||
"latest": "broken", | ||
"broken": { | ||
"import": {}, | ||
"require": { | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"./package.json" | ||
], | ||
"tree": { | ||
"package.json": [ | ||
"./package.json" | ||
] | ||
} | ||
}, | ||
"pre-exports": { | ||
"import": {}, | ||
"require": { | ||
".": "./cjs/index.js", | ||
"./": "./cjs/index.js", | ||
"./cjs": "./cjs/index.js", | ||
"./index": "./index.js", | ||
"./index.js": "./index.js", | ||
"./package": "./package.json", | ||
"./package.json": "./package.json", | ||
"./cjs/": "./cjs/index.js", | ||
"./cjs/index": "./cjs/index.js", | ||
"./cjs/index.js": "./cjs/index.js", | ||
"./cjs/utils": "./cjs/utils.js", | ||
"./cjs/utils.js": "./cjs/utils.js", | ||
"./mjs/index.mjs": "./mjs/index.mjs", | ||
"./mjs/utils.mjs": "./mjs/utils.mjs" | ||
}, | ||
"files": [ | ||
"./index.js", | ||
"./package.json", | ||
"./cjs/index.js", | ||
"./cjs/utils.js", | ||
"./mjs/index.mjs", | ||
"./mjs/utils.mjs" | ||
], | ||
"tree": { | ||
"index.js": [ | ||
"./index.js", | ||
"./index" | ||
], | ||
"package.json": [ | ||
"./package.json", | ||
"./package" | ||
], | ||
"cjs": { | ||
"index.js": [ | ||
".", | ||
"./", | ||
"./cjs", | ||
"./cjs/", | ||
"./cjs/index.js", | ||
"./cjs/index" | ||
], | ||
"utils.js": [ | ||
"./cjs/utils.js", | ||
"./cjs/utils" | ||
] | ||
}, | ||
"mjs": { | ||
"index.mjs": [ | ||
"./mjs/index.mjs" | ||
], | ||
"utils.mjs": [ | ||
"./mjs/utils.mjs" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
100 changes: 100 additions & 0 deletions
100
packages/tests/fixtures/ex-conditions-in-folder/expected/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,100 @@ | ||
{ | ||
"name": "ex-conditions-in-folder", | ||
"version": "0.0.0", | ||
"engines": { | ||
"node": "*" | ||
}, | ||
"problems": [], | ||
"exports": { | ||
"binaries": {}, | ||
"latest": "conditions", | ||
"conditions": { | ||
"import": { | ||
".": "./mjs/index.mjs" | ||
}, | ||
"require": { | ||
".": "./cjs/index.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"./package.json", | ||
"./cjs/index.js", | ||
"./mjs/index.mjs" | ||
], | ||
"tree": { | ||
"cjs": { | ||
"index.js": [ | ||
"." | ||
] | ||
}, | ||
"package.json": [ | ||
"./package.json" | ||
], | ||
"mjs": { | ||
"index.mjs": [ | ||
"." | ||
] | ||
} | ||
} | ||
}, | ||
"pre-exports": { | ||
"import": {}, | ||
"require": { | ||
".": "./cjs/index.js", | ||
"./": "./cjs/index.js", | ||
"./cjs": "./cjs/index.js", | ||
"./index": "./index.js", | ||
"./index.js": "./index.js", | ||
"./package": "./package.json", | ||
"./package.json": "./package.json", | ||
"./cjs/": "./cjs/index.js", | ||
"./cjs/index": "./cjs/index.js", | ||
"./cjs/index.js": "./cjs/index.js", | ||
"./cjs/utils": "./cjs/utils.js", | ||
"./cjs/utils.js": "./cjs/utils.js", | ||
"./mjs/index.mjs": "./mjs/index.mjs", | ||
"./mjs/utils.mjs": "./mjs/utils.mjs" | ||
}, | ||
"files": [ | ||
"./index.js", | ||
"./package.json", | ||
"./cjs/index.js", | ||
"./cjs/utils.js", | ||
"./mjs/index.mjs", | ||
"./mjs/utils.mjs" | ||
], | ||
"tree": { | ||
"index.js": [ | ||
"./index.js", | ||
"./index" | ||
], | ||
"package.json": [ | ||
"./package.json", | ||
"./package" | ||
], | ||
"cjs": { | ||
"index.js": [ | ||
".", | ||
"./", | ||
"./cjs", | ||
"./cjs/", | ||
"./cjs/index.js", | ||
"./cjs/index" | ||
], | ||
"utils.js": [ | ||
"./cjs/utils.js", | ||
"./cjs/utils" | ||
] | ||
}, | ||
"mjs": { | ||
"index.mjs": [ | ||
"./mjs/index.mjs" | ||
], | ||
"utils.mjs": [ | ||
"./mjs/utils.mjs" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.