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

[DEV-9918][DEV-10719] Switch to PNPM #382

Merged
merged 41 commits into from
May 7, 2023
Merged

[DEV-9918][DEV-10719] Switch to PNPM #382

merged 41 commits into from
May 7, 2023

Conversation

aspirisen
Copy link
Contributor

@aspirisen aspirisen commented Jan 29, 2023

@aspirisen aspirisen self-assigned this Jan 29, 2023
@aspirisen aspirisen force-pushed the feature/DEV-9918-pnpm branch from 0283960 to b7271a8 Compare January 30, 2023 00:00
@aspirisen aspirisen changed the title test [DEV-9918] Switch to PNPM Jan 30, 2023
tsconfig: `${__dirname}/tsconfig.jest.json`,
},
},
moduleNameMapper: {
'@prezly/slate-tables': path.join(__dirname, '../slate-tables/src'),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is a problem with jsdom - it doesn't resolve modules like nodejs. Do not know why

@aspirisen aspirisen marked this pull request as ready for review January 30, 2023 01:04
Copy link
Contributor

@e1himself e1himself left a comment

Choose a reason for hiding this comment

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

@aspirisen Do you have these warnings when you run pnpm build?

image

packages/slate-commons/src/plugins/withInlineVoid.ts Outdated Show resolved Hide resolved
@aspirisen
Copy link
Contributor Author

Do you have these warnings when you run pnpm build?

Yes, switched to old lock file format

@e1himself
Copy link
Contributor

e1himself commented Feb 1, 2023

Works well now! Great! 👍

Also, let's squash all these commits upon merge (too many commits with crappy descriptions).

@aspirisen
Copy link
Contributor Author

Also, let's squash all these commits upon merge (too many commits with crappy descriptions).

I will merge with squash

@aspirisen aspirisen force-pushed the feature/DEV-9918-pnpm branch from 64f6bce to 9219a3b Compare February 2, 2023 13:05
@aspirisen aspirisen changed the title [DEV-9918] Switch to PNPM [DEV-9918][QRF-927] Switch to PNPM Feb 9, 2023
@aspirisen aspirisen requested a review from e1himself February 10, 2023 12:47
@aspirisen
Copy link
Contributor Author

@e1himself could you re-review this PR

@aspirisen
Copy link
Contributor Author

@e1himself could take a look on this pr, I would like to merge it today (or I can just close this pr if these changes are not needed)

@aspirisen aspirisen closed this Apr 3, 2023
@e1himself e1himself reopened this Apr 4, 2023
@e1himself
Copy link
Contributor

@aspirisen My apologies for the delay. I'll review it today and merge. Thank you 🙏

e1himself added 26 commits May 3, 2023 13:51
…kage node_modules

And instead inherit them from the workspace root `node_modules`.
This reveals that the repo depends on `react-bootstrap` stylesheet, but we do not include them here :X
The approach we use is flawed anyway.

See #382 (comment)
In order to fix ESM imports support
As there is no `@types/react-dom` past `16.9.9`,
so no matching version for `react-dom@^16.14.0`
To keep `.d.ts` files next to their JS code versions.
This will make the packages play well with TS 5.0.
See microsoft/TypeScript#49160 (comment)
@e1himself e1himself merged commit 2e73249 into main May 7, 2023
@e1himself e1himself deleted the feature/DEV-9918-pnpm branch May 7, 2023 21:59
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.

3 participants