-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
fix #20675 by adding an esbuild plugin to inject env variables #20834
Conversation
Socket Security Pull Request Report👍 No dependency changes detected in pull request Pull request report summary
Powered by socket.dev |
🤔 @webdeveric I'm trying to use your package: https://github.com/webdeveric/esbuild-plugin-environment/blob/master/package.json |
@ndelangen The Can you rerun the failed GH Action with debug logging turned on? |
Hah, of course it passed as soon as I enabled debug mode... Going to try running them all again without, to see if debug actually makes it pass. |
@IanVS I made some fixes to check-package-manager that resolved the issue on Windows. I'm using |
@@ -54,6 +54,7 @@ | |||
"ejs": "^3.1.8", | |||
"esbuild": "^0.16.4", | |||
"esbuild-plugin-alias": "^0.2.1", | |||
"esbuild-plugin-environment": "^0.2.2", |
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 published version 0.2.3
of this plugin.
If you update to that version, you will get rid of some transitive dependencies.
We should QA that this feature actually does what we intent it should do. |
@webdeveric I ended up using the I do very much appreciate the support you've given. ❤️ |
@ndelangen If you have a reproducible bug, please open an issue and I'll take a look. But on first glance, it looks like you were calling
Should have been (untested)
|
Ow, I needed to invoke the plugin twice? once with the object and once with the keys? I just assumed those were 2 separate use-cases. |
@ndelangen They are different use cases, one for user provided default values, and the other (array of keys) uses empty string as the default. I was just removing the |
@@ -6,3 +6,6 @@ addons.setConfig({ | |||
renderLabel: ({ name, type }) => (type === 'story' ? name : startCase(name)), | |||
}, | |||
}); | |||
|
|||
console.log(process.env.STORYBOOK_FOO); | |||
console.log(process.env); |
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.
Did you mean to leave these console.log statements here, @ndelangen ?
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 did not 😨
Issue: #20675
add an esbuild plugin to the builder-manager that injects environment variables