I have two repositories. The first one contains is a monorepo with two packages:
- bsconfig.json
- package.json
- packages/
- transaction/
- package.json
- transaction.js
- reindexed/
- package.json
- src/
- IDB.res
- ReIndexed.res
The packages/reindexed
actually depends on packages/transaction
. The contents of packages/transaction/packages.json
is like this (fragment):
{
"name": "@kaiko-internal/transaction",
"version": "1.0.0",
"main": "transaction.js"
}
The file packages/reindexed/package.json
is more or less like this:
{
"name": "@kaiko/reindexed",
"version": "0.2.0",
"license": "MIT",
"devDependencies": {
"esbuild": "^0.12.9",
"qunit": "^2.16.0",
"rescript": "^9.1.4"
},
"dependencies": {
"@kaiko-internal/transaction": "1.0.0"
}
}
Notice the second project uses ReScript as the main language and includes this line:
@module("@kaiko-internal/transaction") external transaction: 'a = "default"
(The file transaction.js
is a little hard to write in ReScript at the moment)
Now in a second project I depend on @kaiko/reindexed
like this:
{
"dependencies": {
"@kaiko/reindexed": "git+ssh://git@gitlab.com:kaiko-systems/ReIndexed.git#workspaces"
}
}
But when I run yarn
and try to compile this project I'm not getting the proper @kaiko/reindexed
and its dependency and it basically fails to install the @kaiko-internal/transaction
, i.e import * from '@kaiko-internal/transaction';
fails.
Is there a way to install several dependencies from a workspaced monorepo?