-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Add infra to publish as platform-dependent npm packages
- Loading branch information
Showing
34 changed files
with
780 additions
and
725 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
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
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,6 +1,6 @@ | ||
{ | ||
"runtime": "napi", | ||
"include-regex": "(sharp-.+\\.node|libvips-cpp\\.dll)", | ||
"include-regex": "(sharp-.+\\.node|libvips-.+\\.dll|libglib-.+\\.dll|libgobject-.+\\.dll)", | ||
"prerelease": true, | ||
"strip": true | ||
} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2013 Lovell Fuller and others. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
'use strict'; | ||
|
||
const { useGlobalLibvips, globalLibvipsVersion, log } = require('../lib/libvips'); | ||
|
||
const buildFromSource = (msg) => { | ||
log(msg); | ||
log('Building from source via node-gyp'); | ||
process.exitCode = 1; | ||
}; | ||
|
||
if (process.env.npm_config_build_from_source) { | ||
buildFromSource('Detected --build-from-source flag'); | ||
} else if (useGlobalLibvips()) { | ||
buildFromSource(`Detected globally-installed libvips v${globalLibvipsVersion()}`); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.