[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", "name": "rs-diff",
"version": "0.0.6", "version": "0.0.1",
"description": "Template project for writing node package with napi-rs", "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", "license": "MIT",
"keywords": ["napi-rs", "NAPI", "N-API", "Rust", "node-addon", "node-addon-api"], "keywords": ["napi-rs", "NAPI", "N-API", "Rust", "node-addon", "node-addon-api"],
"main": "index.darwin.node", "main": "index.darwin.node",
"files": ["index.darwin.node"], "files": ["index.darwin.node"],
"publishConfig": { "publishConfig": {
"registry": "https://registry.npmjs.org/", "registry": "https://npm.trj.tw",
"access": "public" "access": "public"
}, },
"os": ["darwin"], "os": ["darwin"],

View File

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

View File

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

View File

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