Skip to content

Commit

Permalink
[Backport 2.9] - Fix reference to tsc binary when publishing shell (#…
Browse files Browse the repository at this point in the history
…12190)

* Fix reference to tsc binary when publishing shell (#12176)

* Fix BASE_DIR path

* Add pipefail for proper error handling

* Bump shell 2.0.2-rc.2
  • Loading branch information
jordojordo authored Oct 10, 2024
1 parent de149d2 commit 2cf6b64
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion shell/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rancher/shell",
"version": "2.0.2-rc.1",
"version": "2.0.2-rc.2",
"description": "Rancher Dashboard Shell",
"repository": "https://github.com/rancherlabs/dashboard",
"license": "Apache-2.0",
Expand Down
7 changes: 3 additions & 4 deletions shell/scripts/publish-shell.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env bash

set -eo pipefail

SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
BASE_DIR="$(
cd $SCRIPT_DIR && cd ../.. &
pwd
)"
BASE_DIR="$(cd $SCRIPT_DIR && cd ../.. && pwd)"
SHELL_DIR=$BASE_DIR/shell/
CREATORS_DIR=$BASE_DIR/creators/extension
FORCE_PUBLISH_TO_NPM="false"
Expand Down
2 changes: 1 addition & 1 deletion shell/scripts/typegen.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
BASE_DIR="$( cd $SCRIPT_DIR && cd ../.. & pwd)"
BASE_DIR="$(cd $SCRIPT_DIR && cd ../.. && pwd)"
SHELL_DIR=$BASE_DIR/shell

echo "Generating typescript definitions"
Expand Down

0 comments on commit 2cf6b64

Please sign in to comment.