Right now when syncing with core, all the dependencies and dev dependencies get copied over. They get forced to be identical. This makes dependency and lock file maintenance easy between the two, but it doesn't let us depend on packages here that core doesn't need.
echo -e "\n📦 Copying lock file from core"
cp core/package-lock.json ./
echo -e "\n📦 Copying dependencies & devDependencies from core"
deps=$(cd core && npm pkg get dependencies)
npm pkg set "dependencies=${deps}" --json
devDeps=$(cd core && npm pkg get devDependencies)
npm pkg set "devDependencies=${devDeps}" --json
overrides=$(cd core && npm pkg get overrides)
npm pkg set "overrides=${overrides}" --json
optionalDependencies=$(cd core && npm pkg get optionalDependencies)
npm pkg set "optionalDependencies=${optionalDependencies}" --json
So we need a solution (and it may be complex or quite simple).
Right now when syncing with core, all the dependencies and dev dependencies get copied over. They get forced to be identical. This makes dependency and lock file maintenance easy between the two, but it doesn't let us depend on packages here that core doesn't need.
So we need a solution (and it may be complex or quite simple).