{% set name = "prettier" %}
{% set version = "2.2.1" %}

package:
  name: {{ name|lower }}
  version: {{ version|replace("-", "_") }}

source:
  url: https://github.com/prettier/prettier/archive/refs/tags/{{ version }}.tar.gz
  sha256: 31c22f314066d3997aeafb345ebc1143179500d62f2334efc965ccdc2b4ffcf7

build:
  number: 0
  skip: true  # [win]

requirements:
  build:
    - sysroot_linux-64 2.17  # [linux64]
    - {{ compiler('c') }}  # [linux64]
  host:
    - nodejs 12  # [not (osx and arm64)]
    - nodejs 15  # [osx and arm64]
    - yarn
  run:
    - nodejs 12  # [not (osx and arm64)]
    - nodejs 15  # [osx and arm64]

test:
  commands:
    - prettier --version | grep "{{ version }}"

about:
  home: https://github.com/prettier/prettier
  license: MIT
  license_family: MIT
  license_file:
    - LICENSE
  summary: Prettier is an opinionated code formatter.

extra:
  recipe-maintainers:
    - janjagusch

{% set name = "prettier" %}
{% set version = "2.2.1" %}

package:
  name: {{ name|lower }}
  version: {{ version|replace("-", "_") }}

source:
  url: https://github.com/prettier/prettier/archive/refs/tags/{{ version }}.tar.gz
  sha256: 31c22f314066d3997aeafb345ebc1143179500d62f2334efc965ccdc2b4ffcf7

build:
  number: 0
  skip: true  # [win]

requirements:
  build:
    - sysroot_linux-64 2.17  # [linux64]
  host:
    - nodejs 12  # [not (osx and arm64)]
    - nodejs 15  # [osx and arm64]
    - yarn
  run:
    - nodejs 12  # [not (osx and arm64)]
    - nodejs 15  # [osx and arm64]

test:
  commands:
    - prettier --version | grep "{{ version }}"

about:
  home: https://github.com/prettier/prettier
  license: MIT
  license_family: MIT
  license_file:
    - LICENSE
  summary: Prettier is an opinionated code formatter.

extra:
  recipe-maintainers:
    - janjagusch

Revert "try to fix failing linux64 build by adding c compiler to build dependencies"
Revert "try to fix failing linux64 build by adding c compiler to build dependencies"

This reverts commit 88cdff0ed7f111af600633b1f13fe71120d37695.
