From 505ac169128dbe2c2b1da0638be7af1fa2c17181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Duch=C3=AAne?= Date: Fri, 20 Dec 2024 11:53:33 +0100 Subject: [PATCH] fix: package.json template --- npm/app/index.js | 2 +- npm/app/package.json | 2 +- npm/package.json.tmpl | 31 ++++++++++++++++--------------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/npm/app/index.js b/npm/app/index.js index 931b052..3896662 100755 --- a/npm/app/index.js +++ b/npm/app/index.js @@ -22,7 +22,7 @@ function getExePath() { try { // Since the binary will be located inside `node_modules`, we can simply call `require.resolve` return require.resolve( - `votre-cli-${os}-${arch}/bin/votre-cli${extension}`, + `npm-rust-${os}-${arch}/bin/npm-rust${extension}`, ); } catch (e) { throw new Error( diff --git a/npm/app/package.json b/npm/app/package.json index 6a2881f..1e8be2e 100644 --- a/npm/app/package.json +++ b/npm/app/package.json @@ -1,7 +1,7 @@ { "name": "rust-npm", "version": "0.1.0", - "description": "Votre description", + "description": "Simple CLI to print a message", "bin": { "rust-npm": "./index.js" }, diff --git a/npm/package.json.tmpl b/npm/package.json.tmpl index 2fdf199..130c9f4 100644 --- a/npm/package.json.tmpl +++ b/npm/package.json.tmpl @@ -1,19 +1,20 @@ { - "name": "rust-npm", - "version": "${NODE_VERSION}", - "description": "Votre description", + "name": "${node_pkg}", + "version": "${node_version}", + "description": "Simple CLI to print a message", "keywords": [ - "cli" + "cli", + "rust", ], - "repository": { - "type": "git", - "url": "git+https://github.com/vincentdchn/rust-npm" - }, - "bugs": { - "url": "https://github.com/vincentdchn/rust-npm" - }, - "homepage": "https://github.com/vincentdchn/rust-npm#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/vincentdchn/rust-npm.git" + }, + "bugs": { + "url": "https://github.com/vincentdchn/rust-npm/issues" + }, + "homepage": "https://github.com/vincentdchn/rust-npm#readme", "license": "MIT", - "os": ["${NODE_OS}"], - "cpu": ["${NODE_ARCH}"] -} + "os": ["${node_os}"], + "cpu": ["${node_arch}"] +} \ No newline at end of file