mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
b763a12331
When using tsconnect as a module in another repo, we cannot write to the ./dist directory (modules directories are read-only by default - there is a -modcacherw flag for `go get` but we can't count on it). We add a -distdir flag that is honored by both the build and serve commands for where to place output in. Somewhat tedious because esbuild outputs paths relative to the working directory, so we need to do some extra munging to make them relative to the output directory. Signed-off-by: Mihai Parparita <mihai@tailscale.com> |
||
---|---|---|
.. | ||
dist | ||
src | ||
wasm | ||
.gitignore | ||
build.go | ||
common.go | ||
dev.go | ||
index.html | ||
package.json | ||
serve.go | ||
tsconnect.go | ||
yarn.lock |