Flesh out shims and wrappers

This commit is contained in:
Michael Wolf
2025-11-08 09:54:33 -06:00
parent 6a4a2f7eef
commit 292ce4be7f
9 changed files with 39 additions and 6 deletions

9
framework/cmd.d/list Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -eu
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR"
ls .

7
framework/cmd.d/node Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -eu
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"$DIR"/../shims/node "$@"

7
framework/cmd.d/pnpm Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -eu
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"$DIR"/../shims/pnpm "$@"

21
framework/cmd.d/sync Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
set -eu
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# figure out the platform we're on
# source ../framework/versions
# [eventually: check for it in user's cache dir
# download $nodejs_version
# verify its checksum against $nodejs_checksum
cd $DIR/../node
$DIR/pnpm install
echo we will download other files here later