From 56c15fb723a8034f68605dd91d9a3bac6d7cd735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Duch=C3=AAne?= Date: Fri, 20 Dec 2024 13:33:36 +0100 Subject: [PATCH] refactor: use uppercase naming style --- npm/app/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(