Skip to content

Commit

Permalink
Destructuring fs-extra (#3664)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpreyskurantov authored Oct 24, 2023
1 parent d25e329 commit 52d3f63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/publish-site.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { join, dirname } from 'path';
import { execSync } from 'child_process';
import { copySync, removeSync, readFileSync, writeFileSync } from 'fs-extra';
import fse from 'fs-extra';
import inquirer from 'inquirer';
import { prerelease } from 'semver';
import ensureRepoUpToDate from './ensure-repo-up-to-date.js';
Expand All @@ -9,6 +9,8 @@ import { fileURLToPath } from 'url';

const loadJSON = (path) => JSON.parse(readFileSync(new URL(path, import.meta.url)));

const { copySync, removeSync, readFileSync, writeFileSync } = fse;

const SITE_PUBLISHING_DIRECTORY = join(process.cwd(), 'tmp');
const BRANCH = 'gh-pages';
const COMMIT_MESSAGE = 'chore: update site';
Expand Down

0 comments on commit 52d3f63

Please sign in to comment.