Skip to content

Commit

Permalink
fix: remove Node v10, add node v16, fix the fsPromises error
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar committed Oct 18, 2022
1 parent 118d183 commit 9739e4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
"peerDependencies": {
"@babel/core": "^7.0.0",
"babel-plugin-macros": "2 || 3",
"babel-plugin-macros": "2 || 3",
"typescript": "2 || 3 || 4"
}
}
3 changes: 1 addition & 2 deletions packages/cli/src/api/formats/minimal.ts
Original file line number Diff line number Diff line change
@@ -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 "."

Expand All @@ -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
Expand Down

0 comments on commit 9739e4f

Please sign in to comment.