Closed oliviertassinari closed 2 years ago
The CLI is used by the Studio team and has been fixed in #3965 (and #4055) I even added a CLI recently to decode a license for Matt (#4126)
We can publish it on an independent package to avoid polluting the main one, but I would not delete it altogether.
Ok, so we need the CLI. š to isolate the validation of the license in production, and the license utilities under two different packages.
When we do work on the isolation, I think that we should remove the exported methods too, e.g. generateLicence
:
It could be great to expose methods to improve the maintainability of https://master--toolpad.mui.com/_toolpad/app/cl1c2j0l512939zo6a43575en/editor/codeComponents/cl2mcledm00023g6945cr9pkx.
So far, I didn't explain what problem we would solve with this issue, my bad, I had only said:
Which are polluting the dependencies:
Here are two concretes benefits:
https://npm.anvaka.com/#/view/2d/%2540mui%252Fx-data-grid-pro
It used to be possible to generate a license key with
It's no longer possible, it's broken when you run this same command with the latest version. It outputs
It has been broken for a long time, and nobody complained about it. So, I š the point that @m4theushw has, we should get ride of the whole bin and cli folders:
It would also mean we can get rid of
https://github.com/mui/mui-x/blob/0c815ce1e9659c8f01403ef5fc6812251841a995/packages/x-license-pro/package.json#L38-L39
Which are polluting the dependencies:
https://npm.anvaka.com/#/view/2d/%2540mui%252Fx-data-grid-pro
For though that wonder. How do customers get the license key? Will we break it? No, this is done with a WooCommerce webhook in https://github.com/mui/mui-store/blob/d0d86fc9e13d3cf0ca55eba9612ec00d1543356c/lambda/keymailer/index.js#L5