@zkochan/cmd-shim
Advanced tools
Comparing version 4.3.0 to 5.0.0
'use strict'; | ||
cmdShim.ifExists = cmdShimIfExists; | ||
const util_1 = require("util"); | ||
const makeDir = require("make-dir"); | ||
const path = require("path"); | ||
@@ -30,5 +29,6 @@ const isWindows = require("is-windows"); | ||
chmod: fs.chmod ? util_1.promisify(fs.chmod) : (async () => { }), | ||
mkdir: util_1.promisify(fs.mkdir), | ||
readFile: util_1.promisify(fs.readFile), | ||
stat: util_1.promisify(fs.stat), | ||
unlink: util_1.promisify(fs.unlink), | ||
readFile: util_1.promisify(fs.readFile), | ||
writeFile: util_1.promisify(fs.writeFile) | ||
@@ -97,3 +97,3 @@ }; | ||
function writeShimsPreCommon(target, opts) { | ||
return makeDir(path.dirname(target), { fs: opts.fs }); | ||
return opts.fs_.mkdir(path.dirname(target), { recursive: true }); | ||
} | ||
@@ -100,0 +100,0 @@ /** |
{ | ||
"name": "@zkochan/cmd-shim", | ||
"version": "4.3.0", | ||
"version": "5.0.0", | ||
"description": "Used in pnpm for command line application support", | ||
@@ -30,19 +30,17 @@ "author": { | ||
"dependencies": { | ||
"is-windows": "^1.0.2", | ||
"make-dir": "^3.0.0" | ||
"is-windows": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/is-windows": "^0.2.0", | ||
"@types/node": "^12.7.2", | ||
"jest": "^25.1.0", | ||
"lodash": "^4.17.15", | ||
"memory-fs": "^0.4.1", | ||
"mock-fs": "^4.10.1", | ||
"@types/is-windows": "^1.0.0", | ||
"@types/node": "^14.0.13", | ||
"jest": "^26.0.1", | ||
"memfs": "^3.2.0", | ||
"mock-fs": "^4.12.0", | ||
"mos": "^1.3.1", | ||
"mos-plugin-readme": "^1.0.4", | ||
"standard": "^14.0.2", | ||
"typescript": "^3.7.4" | ||
"standard": "^14.3.4", | ||
"typescript": "^3.9.5" | ||
}, | ||
"engines": { | ||
"node": ">=8.15" | ||
"node": ">=10.13" | ||
}, | ||
@@ -49,0 +47,0 @@ "mos": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
34111
1
9
- Removedmake-dir@^3.0.0
- Removedmake-dir@3.1.0(transitive)
- Removedsemver@6.3.1(transitive)