-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
38 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
const util = require('util') | ||
const fs = require('fs') | ||
const {stat} = fs.promises || { stat: util.promisify(fs.stat) }; | ||
const { stat } = fs.promises || { stat: util.promisify(fs.stat) } | ||
|
||
async function isNodeGypPackage(path) { | ||
async function isNodeGypPackage (path) { | ||
return await stat(`${path}/binding.gyp`) | ||
.then(st => st.isFile()) | ||
.catch(() => false) | ||
} | ||
|
||
module.exports = { | ||
isNodeGypPackage, | ||
defaultGypInstallScript: 'node-gyp rebuild' | ||
defaultGypInstallScript: 'node-gyp rebuild', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
{ | ||
"name": "@npmcli/node-gyp", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"description": "Tools for dealing with node-gyp packages", | ||
"scripts": { | ||
"test": "tap", | ||
"preversion": "npm test", | ||
"postversion": "npm publish", | ||
"prepublishOnly": "git push origin --follow-tags" | ||
"prepublishOnly": "git push origin --follow-tags", | ||
"lint": "eslint \"**/*.js\"", | ||
"postlint": "template-oss-check", | ||
"template-oss-apply": "template-oss-apply --force", | ||
"lintfix": "npm run lint -- --fix", | ||
"snap": "tap", | ||
"posttest": "npm run lint" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -18,18 +24,22 @@ | |
"node-gyp" | ||
], | ||
"files": [ | ||
"lib/**/*.js" | ||
"bin/", | ||
"lib/" | ||
], | ||
"main": "lib/index.js", | ||
"author": "Brian Jenkins <[email protected]>", | ||
"author": "GitHub Inc.", | ||
"license": "ISC", | ||
"tap": { | ||
"check-coverage": true, | ||
"coverage-map": "map.js" | ||
}, | ||
"devDependencies": { | ||
"require-inject": "^1.4.4", | ||
"tap": "^14.10.6", | ||
"tmp": "^0.2.1" | ||
"@npmcli/eslint-config": "^3.0.1", | ||
"@npmcli/template-oss": "3.2.2", | ||
"tap": "^16.0.1" | ||
}, | ||
"engines": { | ||
"node": "^12.13.0 || ^14.15.0 || >=16.0.0" | ||
}, | ||
"templateOSS": { | ||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", | ||
"version": "3.2.2" | ||
} | ||
} |
14 changes: 0 additions & 14 deletions
14
node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/lib/index.js
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
node_modules/@npmcli/run-script/node_modules/@npmcli/node-gyp/package.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters