-
Notifications
You must be signed in to change notification settings - Fork 108
chore: refactor package.json import #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
const packageMetadata = fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf8"); | ||
const packageJson = JSON.parse(packageMetadata); | ||
import packageJson from "../package.json" with { type: "json" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work on windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested anything on windows yet, perhaps we should start with integration tests and run them on linux, windows and macos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added #44
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - we can look into adding some smoke tests later today or tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 🚀 but would be good to add allowSyntheticDefaultImports
so we avoid the manual types
@gagik I've enabled it but in the case of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh okay, I suppose they misconfigured something there 🤷
* main: chore: refactor package.json import (#43)
No description provided.