npx npm@7 install
./run.sh
- If stuff is not building, need to delete the
tsconfig.tsbuildinfo
files. - The trick to making the packages build when you run
yarn
is to add this to the roottsconfig.json
:
"references": [
{ "path": "packages/protect" },
{ "path": "packages/cli" }
]
- Getting one package to import another (locally, i.e. without pulling it from npmjs.org) is like this... say you want the
cli
package to import theprotect
package:- in the
cli
packagetsconfig.json
add"references": [ { "path": "../../packages/protect" }, ]
- in the
cli
package, where you want to use theprotect
package, useimport { doProtect } from "@maxjeffos/protect";
or equivalent (based on your import needs). Note that in this case,@maxjeffos/protect
is the full package name as defined in theprotect
package'spackage.json
.
- in the