diff --git a/npm/app/index.js b/npm/app/index.js index af1a129..a1ff13a 100755 --- a/npm/app/index.js +++ b/npm/app/index.js @@ -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` @@ -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(