Currently experiencing bug where CLI sync is not able to detect versions of dependencies properly when used with pnpm.
Bug description: CLI might not be able to detect the plasmic package version properly when used together with pnpm package manager. The expected format of pnpm list could return array instead of object and that breaks ability to detect versions correctly.
Before this commit: if pnpm list returns array format the CLI will fail to detect version dependencies and will prompt user to update packages, even if all packages are set to latest versions.
After this commit: CLI can parse array format from pnpm command and detect package version correctly. Also keeping the original way to pull up the package version to avoid unexpected regressions.
Currently experiencing bug where CLI sync is not able to detect versions of dependencies properly when used with pnpm.
Bug description: CLI might not be able to detect the plasmic package version properly when used together with pnpm package manager. The expected format of
pnpm list
could return array instead of object and that breaks ability to detect versions correctly.Before this commit: if
pnpm list
returns array format the CLI will fail to detect version dependencies and will prompt user to update packages, even if all packages are set to latest versions.After this commit: CLI can parse array format from pnpm command and detect package version correctly. Also keeping the original way to pull up the package version to avoid unexpected regressions.
The current pnpm implementation of return format:
This is different behavior compared to regular npm: