Closed oliverfoster closed 1 month ago
First pass was excellent @oliverfoster :
adapt-authoring
adaptframework
, api
, content
and contentplugin
clones in workspacenpm i --force
Post intall script removed erroneous sub deps in workspaces and also in root modules (coursetheme
and mongodblogger
)
Ran node ./bin/start.js
- tool built and started with no issues 💯
This will all hopefully be fixed by itself for the most part once the repos are registered on npm. This is as the subdependencies when defined with "name": "version"
should resolve against workspace modules properly where they don't with "name": "giturl"
.
@oliverfoster is it possible to have this run after npm update
? I just realised after running that command all the erroneous installs return.
Probably. Although it may be that you just need to run npm install to do updates.
Here's the documentation for how scripts are named with pre and post.
https://docs.npmjs.com/cli/v10/using-npm/scripts
And the update command.
https://docs.npmjs.com/cli/v10/commands/npm-update
You could also run it manually with npm run postinstall
Great tips thank you 💯
@chris-steele did you find a way to get it to work on npm update
?
Yes @oliverfoster I can run npm run postinstall
after npm update
and it works as expected 👍
Did you try adding the same script at postupdate
?
Is there any progress on this?
I did try postupdate
, but I don't think it is available with npm
It is not, correct.
Looks to have fizzled out and died a death
fixes #629
Allows workspaces to use giturl dependencies and peer dependencies by cleaning up erroneously installed duplicates of the workspace modules.
Fix
Test