diff --git a/npm/darwin/package.json b/npm/darwin/package.json index d137e52..c31ff81 100644 --- a/npm/darwin/package.json +++ b/npm/darwin/package.json @@ -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"], diff --git a/npm/linux/package.json b/npm/linux/package.json index 2b40ea4..cd0953f 100644 --- a/npm/linux/package.json +++ b/npm/linux/package.json @@ -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"], diff --git a/npm/win32/package.json b/npm/win32/package.json index 501c1e2..c1f567e 100644 --- a/npm/win32/package.json +++ b/npm/win32/package.json @@ -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"], diff --git a/scripts/publish.js b/scripts/publish.js index 74bd3de..7012a41 100644 --- a/scripts/publish.js +++ b/scripts/publish.js @@ -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 }, {}), })