skip-local-postinstall
Advanced tools
Comparing version
@@ -5,2 +5,4 @@ # Changelog | ||
### [1.0.4](https://github.com/tobua/skip-local-postinstall/compare/v1.0.3...v1.0.4) (2020-11-02) | ||
### [1.0.3](https://github.com/tobua/skip-local-postinstall/compare/v1.0.2...v1.0.3) (2020-11-01) | ||
@@ -7,0 +9,0 @@ |
module.exports = () => { | ||
const { INIT_CWD, PWD } = process.env | ||
console.log('skip-local-postinstall', PWD, process.cwd(), INIT_CWD) | ||
if (!INIT_CWD || INIT_CWD === PWD || INIT_CWD.indexOf(PWD) === 0) { | ||
@@ -5,0 +7,0 @@ console.info(`Skipping 'postinstall' on local install`) |
{ | ||
"name": "skip-local-postinstall", | ||
"description": "Skips postinstall when installed locally.", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"repository": "github:tobua/skip-local-postinstall", | ||
@@ -10,2 +10,5 @@ "scripts": { | ||
}, | ||
"padua": { | ||
"source": true | ||
}, | ||
"main": "./index.js", | ||
@@ -25,3 +28,7 @@ "source": "./index.js", | ||
"rules": { | ||
"no-console": 0 | ||
"no-console": 0, | ||
"import/extensions": [ | ||
2, | ||
"always" | ||
] | ||
} | ||
@@ -28,0 +35,0 @@ }, |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3406
8.71%11
10%0
-100%