@typescript-tools/internal-dependencies
Advanced tools
Comparing version 1.0.5 to 1.0.7
@@ -6,2 +6,24 @@ # Change Log | ||
## [1.0.7](https://github.com/typescript-tools/typescript-tools/compare/@typescript-tools/internal-dependencies@1.0.5...@typescript-tools/internal-dependencies@1.0.7) (2020-11-05) | ||
### Bug Fixes | ||
* set non-zero exit code on argument error ([7e9260b](https://github.com/typescript-tools/typescript-tools/commit/7e9260b3bcf023aaab9d35468a363edfeb151529)) | ||
## [1.0.6](https://github.com/typescript-tools/typescript-tools/compare/@typescript-tools/internal-dependencies@1.0.5...@typescript-tools/internal-dependencies@1.0.6) (2020-11-05) | ||
### Bug Fixes | ||
* set non-zero exit code on argument error ([7e9260b](https://github.com/typescript-tools/typescript-tools/commit/7e9260b3bcf023aaab9d35468a363edfeb151529)) | ||
## [1.0.5](https://github.com/typescript-tools/typescript-tools/compare/@typescript-tools/internal-dependencies@1.0.4...@typescript-tools/internal-dependencies@1.0.5) (2020-11-05) | ||
@@ -8,0 +30,0 @@ |
@@ -50,18 +50,14 @@ #!/usr/bin/env node | ||
`; | ||
const CommandLineOptions = t.type({ | ||
const CommandLineOptions = lerna_utils_1.withEncode(t.type({ | ||
'<root>': t.string, | ||
'<package>': t.array(t.string), | ||
'--path': t.boolean | ||
}); | ||
function mapOptions(a) { | ||
return { | ||
root: a['<root>'], | ||
packages: a['<package>'], | ||
mode: a['--path'] ? 'path' : 'name' | ||
}; | ||
} | ||
}), a => ({ | ||
root: a['<root>'], | ||
packages: a['<package>'], | ||
mode: a['--path'] ? 'path' : 'name' | ||
})); | ||
const unary = (f) => (a) => f(a); | ||
function main() { | ||
pipeable_1.pipe(lerna_utils_1.decodeCommandLineArguments(CommandLineOptions, docstring, { | ||
map: mapOptions, | ||
input: [ | ||
@@ -83,3 +79,12 @@ ...process.argv.slice(2), | ||
.pipe(F.map(A.uniq(Ord_1.ordString))) | ||
.pipe(F.map((dependencies) => dependencies.forEach(unary(console.log))))), E.fold(console.error, F.fork(console.error)(function_1.constVoid))); | ||
.pipe(F.map((dependencies) => dependencies.forEach(unary(console.log))))), | ||
// DISCUSS: folding the either into a future | ||
E.fold( | ||
// TODO: use validateErrors to print a human-readable error message | ||
error => { | ||
console.error(error); | ||
process.exit(1); | ||
}, | ||
// TODO: set non-zero exit code on failure | ||
F.fork(console.error)(function_1.constVoid))); | ||
} | ||
@@ -86,0 +91,0 @@ main(); |
{ | ||
"name": "@typescript-tools/internal-dependencies", | ||
"version": "1.0.5", | ||
"version": "1.0.7", | ||
"description": "Calculate package dependencies living in the same monorepo", | ||
@@ -53,7 +53,7 @@ "main": "dist/src/index.js", | ||
"dependencies": { | ||
"@typescript-tools/io-ts": "^1.0.1", | ||
"@typescript-tools/lerna-utils": "^1.0.3", | ||
"@typescript-tools/io-ts": "^1.0.3", | ||
"@typescript-tools/lerna-utils": "^1.0.5", | ||
"fluture": "^13.0.1", | ||
"fp-ts": "^2.8.5", | ||
"io-ts": "^2.2.12", | ||
"io-ts": "^2.1.13", | ||
"shades": "^2.1.0", | ||
@@ -114,3 +114,3 @@ "ts-pattern": "^1.1.0" | ||
}, | ||
"gitHead": "7015b87b1c3d999ab4b7546efb435c0bdf4ac6d6" | ||
"gitHead": "a7c24d87e2863208b14fcfa3c2835a055db836ad" | ||
} |
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
13461
97
Updatedio-ts@^2.1.13