You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@aomarks this is basically the setup i was telling you about:
package.json
dist
/main.js
/some-other-chunk.js
benchmarks
/package.json
/default.html
My root package.json is the main project which is pretty much structured like the MWC repo but not a monorepo (so its a big repo, single package of many components).
My benchmarks directory contains a tiny package.json to stop tach from going up the tree and trying to install my root package's dependencies rather than the root package itself:
All of this works, though it never resolves the horizon (maybe because they're the same source pretty much right now?).
Anyhow, while this does work, my issue is that the benchmark package.json had this remember:
"dependencies": {
"ui": "/code/ui"
}
which means i cant just check it in because it wont work on other peoples machines... but i also can't make it relative like this:
"dependencies": {
"ui": "../"
}
because tach moves a copy to a temp directory, which means ../ won't be the current ../ but will be some parent temp directory. so the import never gets resolved, which means it doesn't get transformed by node-resolve in your koa plugin.
am i just doing all of this a silly way? really i want to be able to run the same benchmark against my repo's master branch and the current state of it.
it'd be super nice if that was possible without having to pull from a remote (since i already have it locally, it'd be faster), but that would just be extra and isn't a necessity here.
The text was updated successfully, but these errors were encountered:
Hi @43081j -- sorry for the extremely long delay getting to this 😞
I think the ../ pattern for a local git repo you used is totally valid. I've made this work properly in #206 by resolving those paths to be absolute first. I created a setup similar to what you described, and it's working for me now.
@aomarks this is basically the setup i was telling you about:
My root
package.json
is the main project which is pretty much structured like the MWC repo but not a monorepo (so its a big repo, single package of many components).My benchmarks directory contains a tiny
package.json
to stop tach from going up the tree and trying to install my root package's dependencies rather than the root package itself:my tach config looks like this:
and my
benchmarks/default.html
simply does this for now:All of this works, though it never resolves the horizon (maybe because they're the same source pretty much right now?).
Anyhow, while this does work, my issue is that the benchmark
package.json
had this remember:which means i cant just check it in because it wont work on other peoples machines... but i also can't make it relative like this:
because tach moves a copy to a temp directory, which means
../
won't be the current../
but will be some parent temp directory. so the import never gets resolved, which means it doesn't get transformed by node-resolve in your koa plugin.am i just doing all of this a silly way? really i want to be able to run the same benchmark against my repo's
master
branch and the current state of it.it'd be super nice if that was possible without having to pull from a remote (since i already have it locally, it'd be faster), but that would just be extra and isn't a necessity here.
The text was updated successfully, but these errors were encountered: