mirror of
https://github.com/lovell/sharp.git
synced 2026-02-08 23:56:16 +01:00
Add version to shared library filename to help avoid collision
This commit is contained in:
@@ -44,9 +44,10 @@ cpSync(releaseDir, libDir, {
|
||||
}
|
||||
});
|
||||
|
||||
// Generate README
|
||||
const { name, description } = require(`./${platform}/package.json`);
|
||||
// Generate README and index.cjs
|
||||
const { version, name, description } = require(`./${platform}/package.json`);
|
||||
writeFileSync(join(destDir, 'README.md'), `# \`${name}\`\n\n${description}.\n${licensing}`);
|
||||
writeFileSync(join(destDir, 'index.cjs'), `module.exports = require('./lib/sharp-${platform}-${version}.node');`);
|
||||
|
||||
// Copy Apache-2.0 LICENSE
|
||||
copyFileSync(join(__dirname, '..', 'LICENSE'), join(destDir, 'LICENSE'));
|
||||
|
||||
Reference in New Issue
Block a user