Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@npmcli/node-gyp

npm23.1mISC4.0.0

Tools for dealing with node-gyp packages

npm, cli, node-gyp

readme

@npmcli/node-gyp

This is the module npm uses to decide whether a package should be built using node-gyp by default.

API

  • isNodeGypPackage(path)

Returns a Promise that resolves to true or false based on whether the package at path has a binding.gyp file.

  • defaultGypInstallScript

A string with the default string that should be used as the install script for node-gyp packages.

changelog

Changelog

4.0.0 (2024-09-24)

⚠️ BREAKING CHANGES

  • @npmcli/node-gyp now supports node ^18.17.0 || >=20.5.0

    Bug Fixes

  • eaddea9 #86 align to npm 10 node engine range (@hashtagchris)

    Chores

  • 795462a #88 enable auto publish (#88) (@reggi)
  • a90eaa2 #86 run template-oss-apply (@hashtagchris)
  • 591fc45 #84 bump @npmcli/eslint-config from 4.0.5 to 5.0.0 (@dependabot[bot])
  • c51d4d0 #73 bump @npmcli/template-oss to 4.22.0 (@lukekarrys)
  • 588b9f4 #43 add LICENSE (#43) (@MylesBorins)
  • eeda3eb #29 bump @npmcli/eslint-config from 3.1.0 to 4.0.0 (@dependabot[bot])
  • b8d5930 #85 postinstall for dependabot template-oss PR (@hashtagchris)
  • 675142d #85 bump @npmcli/template-oss from 4.23.1 to 4.23.3 (@dependabot[bot])

3.0.0 (2022-10-10)

⚠️ BREAKING CHANGES

  • @npmcli/node-gyp is now compatible with the following semver range for node: ^14.17.0 || ^16.13.0 || >=18.0.0

Features

  • 7f84e06 #22 postinstall for dependabot template-oss PR (@lukekarrys)

2.0.0 (2022-04-05)

⚠ BREAKING CHANGES

  • this drops support for node 10 and non-LTS versions of node 12 and node 14

Dependencies