Flesh out shims and wrappers
This commit is contained in:
4
framework/shims/common
Normal file
4
framework/shims/common
Normal file
@@ -0,0 +1,4 @@
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
ROOT="$DIR/../../"
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This file belongs to the framework. You are not expected to modify it.
|
||||
|
||||
set -eu
|
||||
|
||||
export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
15
framework/shims/npm
Executable file
15
framework/shims/npm
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
source "$DIR"/node.common
|
||||
|
||||
cd $DIR/../.nodejs-config
|
||||
echo in dir $(pwd)
|
||||
npm "$@"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5,9 +5,8 @@ set -eu
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
source "$DIR"/node.common
|
||||
source "$DIR"/common
|
||||
|
||||
# "$DIR"/../.nodejs-config/node_modules/.bin/pnpm "$@"
|
||||
|
||||
echo pnpm file: "$DIR"/../shims/pnpm
|
||||
cd $ROOT/framework/node
|
||||
|
||||
exec "$DIR"/../binaries/pnpm "$@"
|
||||
|
||||
Reference in New Issue
Block a user