Skip to content

Commit

Permalink
fix: unofficial support of node v8 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
rauno56 authored and MKruschke committed Sep 13, 2021
1 parent d32eeb4 commit 7432cdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "update-ts-references",
"version": "2.4.0",
"version": "2.4.1",
"bin": "src/index.js",
"scripts": {
"lint": "eslint src tests",
Expand Down
6 changes: 3 additions & 3 deletions src/update-ts-references.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const getReferencesFromDependencies = (

if (Object.keys(mergedDependencies).includes(packageName)) {
throw new Error(
`This package ${packageName} references itself, please check dependencies in package.json`
`This package ${packageName} references itself, please check dependencies in package.json`
);
}

Expand Down Expand Up @@ -146,7 +146,7 @@ const updateTsConfig = (
let pureJson = true;
try {
require(tsconfigFilePath);
} catch {
} catch (e) {
pureJson = false;
}

Expand Down Expand Up @@ -178,7 +178,7 @@ Do you want to discard them and proceed ? `
try {
assert.deepEqual(currentReferences, mergedReferences);
isEqual = true;
} catch {
} catch (e) {
// ignore me
}
if (!isEqual) {
Expand Down

0 comments on commit 7432cdc

Please sign in to comment.