A TypeScript bundle is one file per entrypoint, bundled in the toolchain (hq ADR 0193); a toolchain follows the SDK it stands on (hq issue 212) #247
@@ -1271,8 +1271,9 @@ func bundled(ctx context.Context, run Runner, tree string, chain Toolchain, base
|
|||||||
launch = append(launch, out+"/"+l)
|
launch = append(launch, out+"/"+l)
|
||||||
}
|
}
|
||||||
// Refused by name in an image that predates the bundler, as the dependencies copy is: a bundle
|
// Refused by name in an image that predates the bundler, as the dependencies copy is: a bundle
|
||||||
// packed without it would carry nothing it imports.
|
// packed without it would carry nothing it imports. Run as itself: npm installs esbuild's native
|
||||||
guard := `test -x "$0" || { echo "the toolchain image carries no bundler at $0: it predates one-file bundles, rebuild mesh-tools first" >&2; exit 1; }; exec node "$0" "$@"`
|
// binary in place of its script, which `node` cannot run.
|
||||||
|
guard := `test -x "$0" || { echo "the toolchain image carries no bundler at $0: it predates one-file bundles, rebuild mesh-tools first" >&2; exit 1; }; exec "$0" "$@"`
|
||||||
step := func(entries []string, extra ...string) error {
|
step := func(entries []string, extra ...string) error {
|
||||||
if len(entries) == 0 {
|
if len(entries) == 0 {
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user