Update package names to use 'img' npm organisation

This commit is contained in:
Lovell Fuller
2023-10-12 17:03:37 +01:00
parent e6942805b4
commit f8b6cb6d5b
19 changed files with 71 additions and 71 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@sharpen/sharp-darwin-arm64",
"name": "@img/sharp-darwin-arm64",
"version": "0.0.1-alpha.8",
"description": "Prebuilt sharp for use with macOS ARM64",
"homepage": "https://sharp.pixelplumbing.com",
@@ -14,7 +14,7 @@
},
"preferUnplugged": true,
"optionalDependencies": {
"@sharpen/sharp-libvips-darwin-arm64": "0.0.1-alpha.2"
"@img/sharp-libvips-darwin-arm64": "0.0.1"
},
"files": [
"lib"

View File

@@ -1,5 +1,5 @@
{
"name": "@sharpen/sharp-darwin-x64",
"name": "@img/sharp-darwin-x64",
"version": "0.0.1-alpha.8",
"description": "Prebuilt sharp for use with macOS x64",
"homepage": "https://sharp.pixelplumbing.com",
@@ -14,7 +14,7 @@
},
"preferUnplugged": true,
"optionalDependencies": {
"@sharpen/sharp-libvips-darwin-x64": "0.0.1-alpha.2"
"@img/sharp-libvips-darwin-x64": "0.0.1"
},
"files": [
"lib"

View File

@@ -5,7 +5,7 @@
// Populate contents of all packages with the current GitHub release
const { writeFile, copyFile, rm } = require('node:fs/promises');
const { readFile, writeFile, appendFile, copyFile, rm } = require('node:fs/promises');
const path = require('node:path');
const { Readable } = require('node:stream');
const { pipeline } = require('node:stream/promises');
@@ -60,11 +60,12 @@ workspaces.map(async platform => {
await copyFile(path.join(__dirname, '..', 'LICENSE'), path.join(dir, 'LICENSE'));
// Copy Windows-specific files
if (platform.startsWith('win32-')) {
const sharpLibvipsDir = path.join(require(`@sharpen/sharp-libvips-${platform}/lib`), '..');
await Promise.all(
['versions.json', 'THIRD-PARTY-NOTICES.md'].map(
filename => copyFile(path.join(sharpLibvipsDir, filename), path.join(dir, filename))
)
);
const sharpLibvipsDir = path.join(require(`@img/sharp-libvips-${platform}/lib`), '..');
// Copy versions.json
await copyFile(path.join(sharpLibvipsDir, 'versions.json'), path.join(dir, 'versions.json'));
// Append third party licensing to README
const readme = await readFile(path.join(sharpLibvipsDir, 'README.md'), { encoding: 'utf-8' });
const thirdParty = readme.substring(readme.indexOf('\nThis software contains'));
appendFile(path.join(dir, 'README.md'), thirdParty);
}
});

View File

@@ -1,5 +1,5 @@
{
"name": "@sharpen/sharp-linux-arm",
"name": "@img/sharp-linux-arm",
"version": "0.0.1-alpha.8",
"description": "Prebuilt sharp for use with Linux (glibc) ARM (32-bit)",
"homepage": "https://sharp.pixelplumbing.com",
@@ -14,7 +14,7 @@
},
"preferUnplugged": true,
"optionalDependencies": {
"@sharpen/sharp-libvips-linux-arm": "0.0.1-alpha.2"
"@img/sharp-libvips-linux-arm": "0.0.1"
},
"files": [
"lib"

View File

@@ -1,5 +1,5 @@
{
"name": "@sharpen/sharp-linux-arm64",
"name": "@img/sharp-linux-arm64",
"version": "0.0.1-alpha.8",
"description": "Prebuilt sharp for use with Linux (glibc) ARM64",
"homepage": "https://sharp.pixelplumbing.com",
@@ -14,7 +14,7 @@
},
"preferUnplugged": true,
"optionalDependencies": {
"@sharpen/sharp-libvips-linux-arm64": "0.0.1-alpha.2"
"@img/sharp-libvips-linux-arm64": "0.0.1"
},
"files": [
"lib"

View File

@@ -1,5 +1,5 @@
{
"name": "@sharpen/sharp-linux-x64",
"name": "@img/sharp-linux-x64",
"version": "0.0.1-alpha.8",
"description": "Prebuilt sharp for use with Linux (glibc) x64",
"homepage": "https://sharp.pixelplumbing.com",
@@ -14,7 +14,7 @@
},
"preferUnplugged": true,
"optionalDependencies": {
"@sharpen/sharp-libvips-linux-x64": "0.0.1-alpha.2"
"@img/sharp-libvips-linux-x64": "0.0.1"
},
"files": [
"lib"

View File

@@ -1,5 +1,5 @@
{
"name": "@sharpen/sharp-linuxmusl-arm64",
"name": "@img/sharp-linuxmusl-arm64",
"version": "0.0.1-alpha.8",
"description": "Prebuilt sharp for use with Linux (musl) ARM64",
"homepage": "https://sharp.pixelplumbing.com",
@@ -14,7 +14,7 @@
},
"preferUnplugged": true,
"optionalDependencies": {
"@sharpen/sharp-libvips-linuxmusl-arm64": "0.0.1-alpha.2"
"@img/sharp-libvips-linuxmusl-arm64": "0.0.1"
},
"files": [
"lib"

View File

@@ -1,5 +1,5 @@
{
"name": "@sharpen/sharp-linuxmusl-x64",
"name": "@img/sharp-linuxmusl-x64",
"version": "0.0.1-alpha.8",
"description": "Prebuilt sharp for use with Linux (musl) x64",
"homepage": "https://sharp.pixelplumbing.com",
@@ -14,7 +14,7 @@
},
"preferUnplugged": true,
"optionalDependencies": {
"@sharpen/sharp-libvips-linuxmusl-x64": "0.0.1-alpha.2"
"@img/sharp-libvips-linuxmusl-x64": "0.0.1"
},
"files": [
"lib"

View File

@@ -1,5 +1,5 @@
{
"name": "@sharpen/sharp",
"name": "@img/sharp",
"version": "0.0.1-alpha.8",
"private": "true",
"workspaces": [

View File

@@ -1,5 +1,5 @@
{
"name": "@sharpen/sharp-win32-ia32",
"name": "@img/sharp-win32-ia32",
"version": "0.0.1-alpha.8",
"description": "Prebuilt sharp for use with Windows x86 (32-bit)",
"homepage": "https://sharp.pixelplumbing.com",
@@ -15,8 +15,7 @@
"preferUnplugged": true,
"files": [
"lib",
"versions.json",
"THIRD-PARTY-NOTICES.md"
"versions.json"
],
"publishConfig": {
"access": "public"

View File

@@ -1,5 +1,5 @@
{
"name": "@sharpen/sharp-win32-x64",
"name": "@img/sharp-win32-x64",
"version": "0.0.1-alpha.8",
"description": "Prebuilt sharp for use with Windows x64",
"homepage": "https://sharp.pixelplumbing.com",
@@ -15,8 +15,7 @@
"preferUnplugged": true,
"files": [
"lib",
"versions.json",
"THIRD-PARTY-NOTICES.md"
"versions.json"
],
"publishConfig": {
"access": "public"
@@ -24,7 +23,8 @@
"type": "commonjs",
"exports": {
"./sharp.node": "./lib/sharp-win32-x64.node",
"./package": "./package.json"
"./package": "./package.json",
"./versions": "./versions.json"
},
"engines": {
"node": "^18.17.0 || ^20.3.0 || >=21.0.0",