skip-local-postinstall
Advanced tools
Comparing version
export const skip = (exitCode = 0) => { | ||
const { INIT_CWD, PWD } = process.env | ||
const { INIT_CWD, PWD = process.cwd() } = process.env | ||
@@ -4,0 +4,0 @@ if (!INIT_CWD || INIT_CWD === PWD || INIT_CWD.indexOf(PWD) === 0) { |
{ | ||
"name": "skip-local-postinstall", | ||
"description": "Skip postinstall on local npm installs.", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"repository": "github:tobua/skip-local-postinstall", | ||
"license": "MIT", | ||
"author": "Matthias Giger", | ||
"scripts": { | ||
"test": "padua test" | ||
}, | ||
"padua": { | ||
@@ -12,4 +15,4 @@ "source": true | ||
"type": "module", | ||
"sideEffects": false, | ||
"main": "./index.js", | ||
"sideEffects": false, | ||
"bin": "./bin.js", | ||
@@ -22,4 +25,11 @@ "source": "./index.js", | ||
], | ||
"keywords": [ | ||
"skip", | ||
"local", | ||
"postinstall", | ||
"plugin" | ||
], | ||
"devDependencies": { | ||
"padua": "^0.3.4" | ||
"jest-fixture": "^3.0.0", | ||
"padua": "^0.5.6" | ||
}, | ||
@@ -37,2 +47,16 @@ "prettier": "padua/configuration/.prettierrc.json", | ||
}, | ||
"jest": { | ||
"testEnvironment": "node", | ||
"transform": { | ||
"^.+\\.jsx?$": [ | ||
"babel-jest", | ||
{ | ||
"configFile": "./node_modules/padua/configuration/.babelrc" | ||
} | ||
] | ||
}, | ||
"transformIgnorePatterns": [ | ||
"/node_modules/(?!jest-fixture|logua|pakag|gzip-size|strip-ansi|ansi-regex).*/" | ||
] | ||
}, | ||
"engines": { | ||
@@ -39,0 +63,0 @@ "node": ">= 14" |
5132
6.69%7
16.67%73
329.41%2
100%3
200%