-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
FEATURE: Upgrade yarn to 3.2, TS to 4.6 and replace lerna #3116
Conversation
# Conflicts: # packages/neos-ui-backend-connector/package.json # packages/neos-ui-decorators/package.json
To fix: ``` error TS2742: The inferred type of 'handleTabNavItemClick' cannot be named without a reference to '.pnpm/@types[email protected]/node_modules/csstype'. This is likely not portable. A type annotation is necessary. ```
# Conflicts: # packages/neos-ui-backend-connector/package.json # packages/neos-ui-contentrepository/package.json # packages/neos-ui-decorators/package.json # packages/neos-ui-extensibility/package.json # packages/neos-ui-i18n/package.json # packages/neos-ui-validators/package.json # packages/neos-ui/package.json # packages/positional-array-sorter/package.json # pnpm-lock.yaml
# Conflicts: # packages/neos-ts-interfaces/package.json # packages/neos-ui-backend-connector/package.json # packages/neos-ui-constants/package.json # packages/neos-ui-containers/package.json # packages/neos-ui-contentrepository/package.json # packages/neos-ui-decorators/package.json # packages/neos-ui-editors/package.json # packages/neos-ui-guest-frame/package.json # packages/neos-ui-i18n/package.json # packages/neos-ui-inspector/package.json # packages/neos-ui-redux-store/package.json # packages/neos-ui-sagas/package.json # packages/neos-ui/package.json # packages/react-proptypes/package.json # packages/react-ui-components/package.json # packages/utils-helpers/package.json # packages/utils-logger/package.json # packages/utils-redux/package.json
...and merges them with their respective `build` scripts # Conflicts: # packages/neos-ui-extensibility/package.json # packages/positional-array-sorter/package.json
This speeds up installation of tagged releases with composer
Hi, what is missing for this one? |
As I said during our call, testing testing testing ;) And try whether we can use the new plow-js 3.0.0 |
# Conflicts: # .circleci/config.yml # lerna.json # package.json # packages/babel-preset-neos-ui/package.json # packages/build-essentials/package.json # packages/debug-reason-for-rendering/package.json # packages/jest-preset-neos-ui/package.json # packages/neos-ts-interfaces/package.json # packages/neos-ui-backend-connector/package.json # packages/neos-ui-ckeditor5-bindings/package.json # packages/neos-ui-constants/package.json # packages/neos-ui-containers/package.json # packages/neos-ui-contentrepository/package.json # packages/neos-ui-decorators/package.json # packages/neos-ui-editors/package.json # packages/neos-ui-extensibility/package.json # packages/neos-ui-guest-frame/package.json # packages/neos-ui-i18n/package.json # packages/neos-ui-inspector/package.json # packages/neos-ui-redux-store/package.json # packages/neos-ui-sagas/package.json # packages/neos-ui-validators/package.json # packages/neos-ui-views/package.json # packages/neos-ui/package.json # packages/positional-array-sorter/package.json # packages/react-proptypes/package.json # packages/react-ui-components/package.json # packages/utils-logger/package.json # packages/utils-redux/package.json # yarn.lock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What a change, thanks for the hard work @Sebobo @JamesAlias and @grebaldi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is .yarn
really supposed to be in the repository?
Yes. With Yarn 2 you can optionally check in quite a lot of stuff up to the point, where you don't need to install anything form a remote. Therefore achieving exactly the same build for every dev. |
From https://classic.yarnpkg.com/lang/en/docs/yarn-lock/:
And following https://classic.yarnpkg.com/en/docs/cli/install#toc-yarn-install it should be stable even for normal use to just use
According to https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored the I am still a) unsure about all that and b) not entirely convinced. Rant on. If "the main source of entropy from the equation: Yarn itself." is what needs to be solved, then I wonder why Composer can do it. It installs the exact set of packages/version requested in the lock file. If that's not possible, it fails. To me that seems to logical and easy, that I just don't get the JS/node/… way of dependency management… Rant off. |
i agreed with the chachy thing, because it makes stuff faster no? |
@kdambekalns during the sprint in Dresden we decided to test yarn 2 (with its new features) and pnpm in parallel and choose the one that works best for us. We didn't fully switch to The 160mb are bad but we added the necessary configurations to the So far none of us who worked on this branch encountered any issue with this config as to my knowledge. If anyone finds a valid reason why not to use I'm open for discussion. Package management in the JS world is a bit of a different beast than in the happy PHP world. I'm now checking if we can finally fully switch to pnp and check the finding to give better feedback on that topic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks for the explanation. If that's the best one can get in JS-land, then I'm not going to block it… 🤷♂️
since this pr, the unittest wont work on ci ... see #3256 |
Resolves: #3115 & #3114