Skip to content

Commit

Permalink
Fix typo in import statement (#1430)
Browse files Browse the repository at this point in the history
* Fix typo in import statement
* And await `writeFile` result
  • Loading branch information
tidoust authored Jul 29, 2024
1 parent df8bd18 commit e040392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bump-packages-minor.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* means a minor bump is already pending release.
*/

import fs from 'node:fs'.promises;
import fs from 'node:fs/promises';
import path from 'node:path';
import { execSync } from 'node:child_process';
import { fileURLToPath } from "node:url";
Expand Down Expand Up @@ -84,7 +84,7 @@ async function checkPackage(type) {
console.log('- new/deleted spec(s) found');
const newVersion = `${major}.${minor+1}.0`;
package.version = newVersion;
fs.writeFile(path.resolve(scriptPath, packageFile), JSON.stringify(package, null, 2), 'utf8');
await fs.writeFile(path.resolve(scriptPath, packageFile), JSON.stringify(package, null, 2), 'utf8');
console.log(`- Version bumped to ${newVersion}`);
}
else {
Expand Down

0 comments on commit e040392

Please sign in to comment.