mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
fix(npm): add package.repository and other fields according to provernance
This commit is contained in:
parent
1a1fc3c99c
commit
e14dd065f7
3 changed files with 13 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "oxidation-compiler",
|
"name": "oxidation-compiler",
|
||||||
"version": "0.2.1",
|
"version": "0.2.0",
|
||||||
"description": "The JavaScript Oxidation Compiler",
|
"description": "The JavaScript Oxidation Compiler",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Boshen and oxc contributors",
|
"author": "Boshen and oxc contributors",
|
||||||
|
|
|
||||||
|
|
@ -26,11 +26,16 @@ function generateNativePackage(platform, arch) {
|
||||||
fs.mkdirSync(packageRoot);
|
fs.mkdirSync(packageRoot);
|
||||||
|
|
||||||
// Generate the package.json manifest
|
// Generate the package.json manifest
|
||||||
const { version } = rootManifest;
|
const { version, author, license, homepage, bugs, repository } = rootManifest;
|
||||||
|
|
||||||
const manifest = JSON.stringify({
|
const manifest = JSON.stringify({
|
||||||
name: packageName,
|
name: packageName,
|
||||||
version,
|
version,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
homepage,
|
||||||
|
bugs,
|
||||||
|
repository,
|
||||||
os: [platform],
|
os: [platform],
|
||||||
cpu: [arch],
|
cpu: [arch],
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -27,11 +27,16 @@ function generateNativePackage(platform, arch) {
|
||||||
fs.mkdirSync(packageRoot);
|
fs.mkdirSync(packageRoot);
|
||||||
|
|
||||||
// Generate the package.json manifest
|
// Generate the package.json manifest
|
||||||
const { version } = rootManifest;
|
const { version, author, license, homepage, bugs, repository } = rootManifest;
|
||||||
|
|
||||||
const manifest = JSON.stringify({
|
const manifest = JSON.stringify({
|
||||||
name: packageName,
|
name: packageName,
|
||||||
version,
|
version,
|
||||||
|
author,
|
||||||
|
license,
|
||||||
|
homepage,
|
||||||
|
bugs,
|
||||||
|
repository,
|
||||||
os: [platform],
|
os: [platform],
|
||||||
cpu: [arch],
|
cpu: [arch],
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue