nativescript-hook
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -40,3 +40,6 @@ var fs = require('fs'); | ||
var hookPath = path.join(hookDir, hookFileName); | ||
fs.writeFileSync(hookPath, util.format('require("%s/%s");' + os.EOL, pkg.name, hook.script)); | ||
var trampoline = util.format('%srequire("%s/%s");', hook.inject ? 'module.exports = ' : '', pkg.name, hook.script); | ||
fs.writeFileSync(hookPath, trampoline + os.EOL); | ||
hookFiles.push(path.relative(pkgdir, hookPath)); | ||
@@ -43,0 +46,0 @@ }); |
{ | ||
"name": "nativescript-hook", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Helper module for installing hooks into NativeScript projects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16916
53