mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Separate build script from install script #4458
The --build-from-source flag is now deprecated and will soon be removed along with the need to define an install script. This will remove a whole category of package manager warnings about install scripts and "built" dependencies. Most people don't need to build sharp from source, but for those that do, a suitable method is now something like: $ npm install package-that-depends-on-sharp $ npm explore sharp -- npm run build
This commit is contained in:
@@ -3,6 +3,9 @@ title: v0.34.5 - TBD
|
||||
slug: changelog/v0.34.5
|
||||
---
|
||||
|
||||
* Support building from source with npm v12+, deprecate `--build-from-source` flag.
|
||||
[#4458](https://github.com/lovell/sharp/issues/4458)
|
||||
|
||||
* Add support for BigTIFF output.
|
||||
[#4459](https://github.com/lovell/sharp/pull/4459)
|
||||
[@throwbi](https://github.com/throwbi)
|
||||
|
||||
@@ -111,10 +111,11 @@ and on macOS when running Node.js under Rosetta.
|
||||
|
||||
## Building from source
|
||||
|
||||
This module will be compiled from source at `npm install` time when:
|
||||
This module will be compiled from source when:
|
||||
|
||||
* a globally-installed libvips is detected, or
|
||||
* when the `npm install --build-from-source` flag is used.
|
||||
* using `npm explore sharp -- npm run build`, or
|
||||
* using the deprecated `npm run --build-from-source` at `npm install` time.
|
||||
|
||||
The logic to detect a globally-installed libvips can be skipped by setting the
|
||||
`SHARP_IGNORE_GLOBAL_LIBVIPS` (never try to use it) or
|
||||
|
||||
Reference in New Issue
Block a user