version: 1
frontend:
  phases:
    preBuild:
      commands:
        - npm install -g yarn@1.22.19
        - yarn
    build:
      commands:
        - yarn install
        - yarn generate
  artifacts:
    baseDirectory: dist
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*
