Skip to content

Commit

Permalink
fix: package.json template
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentdchn committed Dec 20, 2024
1 parent c68cd3e commit 505ac16
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion npm/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion npm/app/package.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
31 changes: 16 additions & 15 deletions npm/package.json.tmpl
Original file line number Diff line number Diff line change
@@ -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}"]
}

0 comments on commit 505ac16

Please sign in to comment.