Skip to content

Commit

Permalink
fix error with using fs lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mattb-hippo committed Apr 23, 2024
1 parent 7bb0221 commit b919049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Contentful-Schema/utils/get-required-migrations.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readdir } from 'node:fs/promises';
import { readdir, access } from 'node:fs/promises';
import minimist from 'minimist';
import chalk from 'chalk';
import core from '@actions/core';
Expand All @@ -8,7 +8,7 @@ const currentVersion = parseInt(argv.currentVersion);
const migrationsDir = '../migrations';

try {
await fs.promises.access(migrationsDir);
await access(migrationsDir);
}
catch (error) {
core.setFailed(chalk.red("Migrations directory doesn't exist"));
Expand Down

0 comments on commit b919049

Please sign in to comment.