Skip to content

Commit 5dbc0df

Browse files
authored
chore: remove legacy disabled test (#667)
* chore: remove legacy disabled test * fix: prepare overriding conditions
1 parent 2d0f6a6 commit 5dbc0df

File tree

3 files changed

+65
-394
lines changed

3 files changed

+65
-394
lines changed

src/prepare/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,11 @@ export async function prepare(cwd: string): Promise<void> {
252252
} else {
253253
// Update existing exports
254254
Object.keys(pkgExports).forEach((exportName) => {
255-
if (pkgJson.exports[exportName]) {
256-
pkgJson.exports[exportName] = pkgExports[exportName]
255+
pkgJson.exports[exportName] = {
256+
// Apply the new export conditions
257+
...pkgJson.exports[exportName],
258+
// Keep the existing export conditions
259+
...pkgJson.exports[exportName],
257260
}
258261
})
259262
}

test/_legacy/exports.test.txt

Lines changed: 0 additions & 373 deletions
This file was deleted.

0 commit comments

Comments
 (0)