[chore] change package info

This commit is contained in:
Jay 2020-08-25 11:16:54 +08:00
parent 7ec4de3192
commit 3de862d4c4
4 changed files with 13 additions and 13 deletions

View File

@ -1,14 +1,14 @@
{
"name": "@napi-rs/package-template-darwin",
"version": "0.0.6",
"name": "rs-diff",
"version": "0.0.1",
"description": "Template project for writing node package with napi-rs",
"repository": "git@github.com:napi-rs/package-template.git",
"repository": "https://git.trj.tw/nodejs/rs-diff.git",
"license": "MIT",
"keywords": ["napi-rs", "NAPI", "N-API", "Rust", "node-addon", "node-addon-api"],
"main": "index.darwin.node",
"files": ["index.darwin.node"],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"registry": "https://npm.trj.tw",
"access": "public"
},
"os": ["darwin"],

View File

@ -1,14 +1,14 @@
{
"name": "@napi-rs/package-template-linux",
"version": "0.0.6",
"name": "rs-diff",
"version": "0.0.1",
"description": "Template project for writing node package with napi-rs",
"repository": "git@github.com:napi-rs/package-template.git",
"repository": "https://git.trj.tw/nodejs/rs-diff.git",
"license": "MIT",
"keywords": ["napi-rs", "NAPI", "N-API", "Rust", "node-addon", "node-addon-api"],
"main": "index.linux.node",
"files": ["index.linux.node"],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"registry": "https://npm.trj.tw",
"access": "public"
},
"os": ["linux"],

View File

@ -1,14 +1,14 @@
{
"name": "@napi-rs/package-template-win32",
"version": "0.0.6",
"name": "rs-diff",
"version": "0.0.1",
"description": "Template project for writing node package with napi-rs",
"repository": "git@github.com:napi-rs/package-template.git",
"repository": "https://git.trj.tw/nodejs/rs-diff.git",
"license": "MIT",
"keywords": ["napi-rs", "NAPI", "N-API", "Rust", "node-addon", "node-addon-api"],
"main": "index.win32.node",
"files": ["index.win32.node"],
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"registry": "https://npm.trj.tw",
"access": "public"
},
"os": ["win32"],

View File

@ -9,7 +9,7 @@ const { version } = require('../package.json')
updatePackageJson(path.join(__dirname, '..', 'package.json'), {
optionalDependencies: platforms.reduce((acc, cur) => {
acc[`@napi-rs/package-template-${cur}`] = `^${version}`
acc[`rs-diff-${cur}`] = `^${version}`
return acc
}, {}),
})