diff --git a/.github/workflows/main-suite.yml b/.github/workflows/main-suite.yml index 226875609..91d2ad197 100644 --- a/.github/workflows/main-suite.yml +++ b/.github/workflows/main-suite.yml @@ -18,7 +18,7 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} strategy: matrix: - node: ["10", "12", "14"] + node: ["12", "14", "16"] os: [ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v2 diff --git a/packages/cli/package.json b/packages/cli/package.json index 7091373e8..fc7aa7fb4 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -76,7 +76,7 @@ }, "peerDependencies": { "@babel/core": "^7.0.0", - "babel-plugin-macros": "2 || 3", + "babel-plugin-macros": "2 || 3", "typescript": "2 || 3 || 4" } } diff --git a/packages/cli/src/api/formats/minimal.ts b/packages/cli/src/api/formats/minimal.ts index 7ddbd8f53..adb3d40f9 100644 --- a/packages/cli/src/api/formats/minimal.ts +++ b/packages/cli/src/api/formats/minimal.ts @@ -1,7 +1,6 @@ import fs from "fs" import * as R from "ramda" -import { writeFileIfChanged } from "../utils" import { MessageType, CatalogType } from "../catalog" import { CatalogFormatter } from "." @@ -25,7 +24,7 @@ const minimal: CatalogFormatter = { const messages = serialize(catalog) let file = null try { - file = await fsPromises.readFile(filePath, 'utf8') + file = fs.readFileSync(filename, 'utf8') } catch (error) { if (error.code !== "ENOENT") { throw error