{% 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
    - glib  # [linux64]
  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]
    - {{ 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

Revert "try to fix failing linux64 build by adding glib to host requirements"
Revert "try to fix failing linux64 build by adding glib to host requirements"

This reverts commit 88f8af38ea597c8da5c18e6583ffa03ada66756e.
