Skip to content

Commit

Permalink
Switch import assertions (assert) to import attributes (with)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Sep 9, 2024
1 parent 770b7fb commit 7cb1285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ if (

const packageJson = /** @type {Record<string, any>} */ (
await import(pathToFileURL(`${process.cwd()}/package.json`).href, {
assert: { type: 'json' },
with: { type: 'json' },
})
);

Expand Down

0 comments on commit 7cb1285

Please sign in to comment.