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

init dataconnect:sdk should preserve existing packageJsonDir if not overridden #7777

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

fredzqm
Copy link
Contributor

@fredzqm fredzqm commented Oct 1, 2024

No description provided.

@fredzqm fredzqm enabled auto-merge (squash) October 1, 2024 20:28
@@ -141,6 +141,7 @@ async function askQuestions(setup: Setup, config: Config): Promise<SDKInfo> {
const javascriptSdk: JavascriptSDK = {
outputDir,
package: pkg,
packageJsonDir: newConnectorYaml.generate.javascriptSdk?.packageJsonDir,
};

if (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think below we should prompt even if there isn't a package Json dir

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to tweak it.

If there is no package.json, what would packageJsonDir do? Try to npm i, but fails?

@fredzqm fredzqm merged commit a717346 into master Oct 1, 2024
40 of 41 checks passed
@fredzqm fredzqm deleted the fz/preserve-existing-packageJsonDir branch October 7, 2024 23:14
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.

4 participants