Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

restore package.json version export (using import attributes) #2

Open
thescientist13 opened this issue Feb 11, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@thescientist13
Copy link
Member

As part of the initial first pass of ESM support via #1 , one thing that is being withheld is the exporting of the version field from package.json.

# re-written for ESM <> import attributes
import packageJson from './package.json' assert { type: 'json' };

Mainly because Rollup doesn't support them yet, and that's what Greenwood uses 🤠

@thescientist13 thescientist13 added the enhancement New feature or request label Feb 11, 2024
@thescientist13 thescientist13 changed the title restore package.json version restore package.json version export (using import attributes) Feb 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant