-
Notifications
You must be signed in to change notification settings - Fork 11
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 compilation on fresh installs #155
Conversation
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.
Hey @vadimavdeev, thanks so much for uncovering and open a PR for this issue! I just tried to give it a spin and it appears I'm still getting an error (using yarn build
and yarn watch
):
$ node -r esbuild-register compile.ts
✘ [ERROR] Invalid option in context() call: "watch"
/Repositories/op-vscode/node_modules/esbuild/lib/main.js:255:12:
255 │ throw new Error(`Invalid option ${where}: ${quote(key)}`);
╵ ^
at checkForInvalidFlags (/Repositories/op-vscode/node_modules/esbuild/lib/main.js:255:13)
at flagsForBuildOptions (/Repositories/op-vscode/node_modules/esbuild/lib/main.js:457:3)
at buildOrContextContinue (/Repositories/op-vscode/node_modules/esbuild/lib/main.js:1009:9)
at /Repositories/op-vscode/node_modules/esbuild/lib/main.js:983:11
at processTicksAndRejections (node:internal/process/task_queues:96:5)
I'll be happy to take a closer look at this during my next cycle, but I wanted to raise in case you had any ideas. Are you also experiencing this?
Yep, my bad. |
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.
That did it!
Ah - apologies, commits going into |
Sure, let me do that. |
Fixes local builds not working due to esbuild being upgdaded to a backward-incompatible version.
Done. It was real easy indeed. 1Password's docs are excellent. |
Awesome, thank you so much for fixing this! |
Local builds no longer work because esbuild has been upgraded to a backward-incompatible version. This PR updates
compile.ts
script to use the newer esbuild APIs. One difference between this and the previous version is thatconsole.log('[${name}] build succeeded')
will be called for every build, not only in watch mode.Fixes #154