From 2d6b992e1b85bb8c078a9cace067a37af3e0b7ac Mon Sep 17 00:00:00 2001 From: Ethan Neff Date: Tue, 7 Mar 2017 09:52:49 -0800 Subject: [PATCH] style: renamed var to constant --- src/scripts/npm/nodeDependencies.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/npm/nodeDependencies.js b/src/scripts/npm/nodeDependencies.js index c50de694..5f00670b 100644 --- a/src/scripts/npm/nodeDependencies.js +++ b/src/scripts/npm/nodeDependencies.js @@ -5,7 +5,7 @@ var fs = require('fs') var path = require('path') var exec = require('child_process').exec - var installFlagName = '.installed' + var INSTALLFLAGNAME = '.installed' // entry module.exports = { @@ -17,7 +17,7 @@ // set properties var q = context.requireCordovaModule('q') var async = new q.defer() // eslint-disable-line - var installFlagLocation = path.join(context.opts.projectRoot, 'plugins', context.opts.plugin.id, installFlagName) + var installFlagLocation = path.join(context.opts.projectRoot, 'plugins', context.opts.plugin.id, INSTALLFLAGNAME) var dependencies = require(path.join(context.opts.projectRoot, 'plugins', context.opts.plugin.id, 'package.json')).dependencies // only run once