Skip to content

Commit

Permalink
refactor: use uppercase naming style
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentdchn committed Dec 20, 2024
1 parent 1274c5b commit 56c15fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions npm/app/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

const { spawnSync } = require('child_process');
const packageName = 'rustnpmtest';
const PACKAGE_NAME = 'rustnpmtest';

/**
* Returns the executable path which is located inside `node_modules`
Expand All @@ -23,7 +23,7 @@ function getExePath() {
try {
// Since the binary will be located inside `node_modules`, we can simply call `require.resolve`
return require.resolve(
`${packageName}-${os}-${arch}/bin/${packageName}${extension}`,
`${PACKAGE_NAME}-${os}-${arch}/bin/${PACKAGE_NAME}${extension}`,
);
} catch (e) {
throw new Error(
Expand Down

0 comments on commit 56c15fb

Please sign in to comment.