mirror of
https://github.com/danbulant/oxc
synced 2026-05-21 21:29:01 +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",
|
||||
"version": "0.2.1",
|
||||
"version": "0.2.0",
|
||||
"description": "The JavaScript Oxidation Compiler",
|
||||
"keywords": [],
|
||||
"author": "Boshen and oxc contributors",
|
||||
|
|
|
|||
|
|
@ -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],
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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],
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue