"bin": {
"dhall-to-json": "bin/dhall-to-json.exe",
"dhall-to-yaml": "bin/dhall-to-yaml.exe",
- "json-to-dhall": "bin/json-to-dhall.exe",
- "yaml-to-dhall": "bin/yaml-to-dhall.exe"
+ "json-to-dhall": "bin/json-to-dhall.exe"
},
"scripts": {
"preinstall": "node ./preinstall.js"
const isLesserThan = (version, upperBound) =>
semver.valid(version) && semver.lt(version, upperBound);
-const isGreaterThan = (version, lowerBound) =>
- semver.valid(version) && semver.gt(version, lowerBound);
if (isLesserThan(dhallJsonVersion, "1.2.8")) {
throw new Error(`This release of the \`${pkg.name}\` npm package installs \`json-to-dhall\`, which isn’t provided by \`dhall-json@<1.2.8\`.`);
}
-if (isLesserThan(dhallJsonVersion, "1.3.0") || isGreaterThan(dhallJsonVersion, "1.5.0")) {
- throw new Error(`This release of the \`${pkg.name}\` npm package installs \`yaml-to-dhall\`, which isn’t provided by \`dhall-json@<1.3.0 >1.5.0\`.`);
-}
const release = `https://github.com/dhall-lang/dhall-haskell/releases/download/${dhallVersion}/dhall-json-${dhallJsonVersion}`;