Cannot seem to set app-dir for node 4.1.0 orb

#!/bin/bash -eo pipefail
if [ ! -f "package.json" ]; then
  echo
  echo "---"
  echo "Unable to find your package.json file. Did you forget to set the app-dir parameter?"
  echo "---"
  echo
  echo "Current directory: $(pwd)"
  echo
  echo
  echo "List directory: "
  echo
  ls
  exit 1
fi

Here’s the configuration file:

orbs:
  node: circleci/node@4.1.0
workflows:
  node-tests:
    jobs:
      - node/test:
          app-dir: "~/project/sample-app"

I did ssh into the box and I can see the package.json file is in ~/project/sample-app. Any help would be appreciated.

Figured out the issue. Needed version. It would be helpful if the required column in the docs was Y or N like in most places instead of -.

1 Like