Skip to content

Commit

Permalink
Make sure npm install is run
Browse files Browse the repository at this point in the history
This is a temporary fix, but this ensures that npm install is run
preventing confusing errors like "this is not the typescript compiler
you were looking for" and other half-missing deps
  • Loading branch information
bhelx committed Dec 8, 2024
1 parent 4cce51d commit 63c829f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions template/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,4 @@ if ! command_exists extism-js; then
exit 1
fi

npm install
4 changes: 2 additions & 2 deletions template/xtp.toml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ name = "<%- project.name %>"

[scripts]
# xtp plugin build runs this script to generate the wasm file
build = "sh prepare.sh && npm run build"
build = "bash prepare.sh && npm run build"

# xtp plugin init runs this script to format the code
format = "npm run format"

# xtp plugin init runs this script before running the format script
prepare = "sh prepare.sh && npm install"
prepare = "bash prepare.sh"

0 comments on commit 63c829f

Please sign in to comment.