opencollective-postinstall
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -26,2 +26,3 @@ #!/usr/bin/env node | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const fetchData = require('../lib/fetchData'); | ||
@@ -42,4 +43,4 @@ const print = require('../lib/print'); | ||
const projectPackageJSON = '../../package.json'; | ||
const projectREADME = '../../README.md'; | ||
const projectPackageJSON = path.normalize('../../package.json'); | ||
const projectREADME = path.normalize('../../README.md'); | ||
@@ -122,3 +123,3 @@ var package; | ||
} | ||
var postinstall = "./node_modules/.bin/opencollective-postinstall || exit"; | ||
var postinstall = "node node_modules/.bin/opencollective-postinstall || exit"; | ||
package.scripts = package.scripts || {}; | ||
@@ -125,0 +126,0 @@ if (package.scripts.postinstall && package.scripts.postinstall.indexOf(postinstall) === -1) { |
{ | ||
"name": "opencollective-postinstall", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "Prompt users to donate after they install your node module with npm install", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"postinstall": "./bin/setup.js" | ||
"postinstall": "node bin/setup.js" | ||
}, | ||
@@ -15,0 +15,0 @@ "bin": { |
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
21889
386