cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

Refactor `spo file`, Closes #5268

Open nicodecleyre opened this issue 1 year ago • 6 comments

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

nicodecleyre avatar Apr 29 '24 21:04 nicodecleyre

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.

milanholemans avatar Apr 29 '24 22:04 milanholemans

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 : https://github.com/pnp/cli-microsoft365/issues/4531#issuecomment-2078359738

nicodecleyre avatar Apr 30 '24 04:04 nicodecleyre

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?

milanholemans avatar Apr 30 '24 16:04 milanholemans

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!

nicodecleyre avatar May 02 '24 10:05 nicodecleyre

Hey @nicodecleyre, pardon for the late reply. There seem to be some conflicts, would you mind taking a look at them?

Jwaegebaert avatar Jul 17 '24 10:07 Jwaegebaert

Hey @nicodecleyre, pardon for the late reply. There seem to be some conflicts, would you mind taking a look at them?

Hi there! No problem at all. I've merged the pr with the latest main.

Kind regards!

nicodecleyre avatar Jul 23 '24 18:07 nicodecleyre