fix(npm): add package.repository and other fields according to provernance

This commit is contained in:
Boshen 2023-08-21 15:21:10 +08:00
parent 1a1fc3c99c
commit e14dd065f7
No known key found for this signature in database
GPG key ID: 234DA6A7079C6801
3 changed files with 13 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "oxidation-compiler",
"version": "0.2.1",
"version": "0.2.0",
"description": "The JavaScript Oxidation Compiler",
"keywords": [],
"author": "Boshen and oxc contributors",

View file

@ -26,11 +26,16 @@ function generateNativePackage(platform, arch) {
fs.mkdirSync(packageRoot);
// Generate the package.json manifest
const { version } = rootManifest;
const { version, author, license, homepage, bugs, repository } = rootManifest;
const manifest = JSON.stringify({
name: packageName,
version,
author,
license,
homepage,
bugs,
repository,
os: [platform],
cpu: [arch],
});

View file

@ -27,11 +27,16 @@ function generateNativePackage(platform, arch) {
fs.mkdirSync(packageRoot);
// Generate the package.json manifest
const { version } = rootManifest;
const { version, author, license, homepage, bugs, repository } = rootManifest;
const manifest = JSON.stringify({
name: packageName,
version,
author,
license,
homepage,
bugs,
repository,
os: [platform],
cpu: [arch],
});