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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor spo file, Closes #5268 #6004

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nicodecleyre
Copy link
Contributor

@nicodecleyre nicodecleyre commented Apr 29, 2024

Opted to create a new PR since the 4 PRs are a lot of merges behind 馃槃.

I must say, I got this weird error, which has nothing to do with this PR:

src/utils/prompt.ts:112:5 - error TS2322: Type 'unknown' is not assignable to type 'T'.
  'T' could be instantiated with an arbitrary type which could be unrelated to 'unknown'.

But I had to define the return statement, otherwise I wouldn't get pas npm run build 馃

Closes #5268

@milanholemans
Copy link
Contributor

Hi @nicodecleyre, thanks for submitting this PR. Is there a reason why you made 1 PR for 4 issues? Usually, we handle the principle of 1 issue = 1 PR = 1 commit.

I must say, I got this weird error, which has nothing to do with this PR:

src/utils/prompt.ts:112:5 - error TS2322: Type 'unknown' is not assignable to type 'T'.
  'T' could be instantiated with an arbitrary type which could be unrelated to 'unknown'.

Strangely, we're not experiencing these issues, nor the GitHub actions. Did you reinstall your node modules using npm ci? We upgraded a few packages to a new major version with breaking changes a few weeks ago.

@nicodecleyre
Copy link
Contributor Author

Hi @nicodecleyre, thanks for submitting this PR. Is there a reason why you made 1 PR for 4 issues? Usually, we handle the principle of 1 issue = 1 PR = 1 commit.

I must say, I got this weird error, which has nothing to do with this PR:

src/utils/prompt.ts:112:5 - error TS2322: Type 'unknown' is not assignable to type 'T'.
  'T' could be instantiated with an arbitrary type which could be unrelated to 'unknown'.

Strangely, we're not experiencing these issues, nor the GitHub actions. Did you reinstall your node modules using npm ci? We upgraded a few packages to a new major version with breaking changes a few weeks ago.

Hi Milan, yes, it was decided to merge it into one PR : #4531 (comment)

@milanholemans
Copy link
Contributor

In that case, I suggest that you merge the 4 issues into 1 issue and close the 3 others.

Did a reinstall fix your prompt util?

@nicodecleyre nicodecleyre changed the title Refactor spo file, Closes #5268, #5270, #5272 & #5274 Refactor spo file, Closes #5268 May 2, 2024
@nicodecleyre
Copy link
Contributor Author

In that case, I suggest that you merge the 4 issues into 1 issue and close the 3 others.

Done! 馃槃

Did a reinstall fix your prompt util?

Absolutely, thank you for your help!

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.

Refactor spo file to use util instead of calling other command
2 participants