Skip to content

Commit

Permalink
fix: correctly pass repository to binary packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Aug 24, 2023
1 parent c1613f7 commit fe92e3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/@biomejs/biome/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@biomejs/biome",
"version": "0.2.2",
"version": "0.2.3",
"bin": "bin/biome",
"scripts": {
"postinstall": "node scripts/postinstall.js"
Expand All @@ -27,7 +27,7 @@
"format",
"lint",
"toolchain",
"JSON"
"JSON"
],
"engines": {
"node": ">=14.*"
Expand Down
7 changes: 5 additions & 2 deletions packages/@biomejs/biome/scripts/generate-packages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ function generateNativePackage(platform, arch) {
fs.mkdirSync(packageRoot);

// Generate the package.json manifest
const { version, license } = rootManifest;
const { version, license, repository, engines ,homepage } = rootManifest;

const manifest = JSON.stringify({
name: packageName,
version,
license,
repository,
engines,
homepage,
os: [platform],
cpu: [arch],
});
Expand All @@ -55,7 +58,7 @@ function updateWasmPackage(target) {
const manifestPath = resolve(packageRoot, "package.json");
const manifest = JSON.parse(fs.readFileSync(manifestPath).toString("utf-8"));

const { version } = rootManifest;
const { version, repository } = rootManifest;
manifest["name"] = packageName;
manifest["version"] = version;

Expand Down

0 comments on commit fe92e3c

Please sign in to comment.