message: Alias npm install at config.yml
diff: @@ -9,13 +9,7 @@ defaults: &defaults
  docker:
  - image: circleci/node:8.15
  -jobs:
  - typescript:
  - <<: *defaults
  -
  - steps:
  - - checkout
  -
  +install_node_modules: &install_node_modules
  # Download and cache dependencies
  - restore_cache:
  keys:
  @@ -25,10 +19,6 @@ jobs:
  - run: npm install
  - - run:
  - name: Run TypeScript
  - command: npm run tsc
  -
  - save_cache:
  paths:
  - node_modules
  @@ -38,6 +28,19 @@ jobs:
  root: ~/repo
  paths: .
  +jobs:
  + typescript:
  + <<: *defaults
  +
  + steps:
  + - checkout
  +
  + - <<: *install_node_modules
  +
  + - run:
  + name: Run TypeScript
  + command: npm run tsc
  +
  test:
  <<: *defaults
  