Skip to content
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

[INS-1784] Restore previous build behavior #5075

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

davidfluck-kong
Copy link
Contributor

@davidfluck-kong davidfluck-kong commented Aug 12, 2022

This changeset reverts #4772, which broke the insomnia-inso NPM package due to a build error in one of its dependencies, insomnia-send-request.

The GitHub action to build and publish our NPM packages runs npm run bootstrap, which used to run build:sr, but now skips it entirely. build:sr used to build send-request and shuffled the dist/ output into packages/insomnia-send-request. As a result, all versions of insomnia-inso between 3.1.0-beta.4 and the current beta, 3.4.1-beta.0, do not run correctly, and will produce something resembling the following error:

 ERROR  Cannot find module '<redacted>/[email protected]/node_modules/insomnia-send-request/dist/index.js'. Please verify that the package.json has a valid "main" entry

Since the original PR seems like a quality-of-life change, I decided to temporarily restore the previous run script behavior to fix the build until we can come up with a better solution. Similarly, I'll make a separate ticket and submit a separate PR to add a test somewhere to make sure Inso, when installed from the NPM insomnia-inso package, runs correctly.

changelog(Inso CLI): Fixed the broken run test command when using Inso CLI installed from NPM. This issue affected all versions of the insomnia-inso npm package between 3.1.0-beta.4 and the current beta, 3.4.1-beta.0.

@davidfluck-kong davidfluck-kong requested a review from a team August 12, 2022 18:18
@jackkav
Copy link
Contributor

jackkav commented Aug 14, 2022

Would be cool if there was a test to follow the reproduction steps.

The quality of life improvement was sr running twice in common flows to accommodate this build step only for Inso. A better approach might run build sr only when building Inso.

Not a blocker to getting things working again though. Thanks @davidfluck-kong

@davidfluck-kong davidfluck-kong merged commit a3fa6ca into develop Aug 15, 2022
@davidfluck-kong davidfluck-kong deleted the INS-1784-fix-send-request-bug branch August 15, 2022 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants