update deps

This commit is contained in:
Cory LaViska
2022-07-27 16:17:23 -04:00
parent ed76d8aecc
commit 47388d4a3f
6 changed files with 777 additions and 554 deletions

View File

@@ -2,7 +2,7 @@ import browserSync from 'browser-sync';
import chalk from 'chalk';
import { execSync } from 'child_process';
import commandLineArgs from 'command-line-args';
import del from 'del';
import { deleteSync } from 'del';
import esbuild from 'esbuild';
import fs from 'fs';
import getPort, { portNumbers } from 'get-port';
@@ -20,7 +20,7 @@ const { bundle, copydir, dir, serve, types } = commandLineArgs([
const outdir = dir;
del.sync(outdir);
deleteSync(outdir);
fs.mkdirSync(outdir, { recursive: true });
(async () => {
@@ -87,7 +87,7 @@ fs.mkdirSync(outdir, { recursive: true });
// Copy the build output to an additional directory
if (copydir) {
del.sync(copydir);
deleteSync(copydir);
copy(outdir, copydir);
}
@@ -101,7 +101,7 @@ fs.mkdirSync(outdir, { recursive: true });
});
// Make sure docs/dist is empty since we're serving it virtually
del.sync('docs/dist');
deleteSync('docs/dist');
const browserSyncConfig = {
open: false,

View File

@@ -4,7 +4,7 @@
import chalk from 'chalk';
import commandLineArgs from 'command-line-args';
import copy from 'recursive-copy';
import del from 'del';
import { deleteAsync } from 'del';
import download from 'download';
import fm from 'front-matter';
import { readFileSync, mkdirSync } from 'fs';
@@ -35,7 +35,7 @@ let numIcons = 0;
// Copy icons
console.log(`Copying icons and license`);
await del([iconDir]);
await deleteAsync([iconDir]);
mkdirSync(iconDir, { recursive: true });
await Promise.all([
copy(`${srcPath}/icons`, iconDir),

View File

@@ -2,7 +2,7 @@ import commandLineArgs from 'command-line-args';
import fs from 'fs';
import path from 'path';
import chalk from 'chalk';
import del from 'del';
import { deleteSync } from 'del';
import { pascalCase } from 'pascal-case';
import prettier from 'prettier';
import prettierConfig from '../prettier.config.cjs';
@@ -13,7 +13,7 @@ const { outdir } = commandLineArgs({ name: 'outdir', type: String });
const reactDir = path.join('./src/react');
// Clear build directory
del.sync(reactDir);
deleteSync(reactDir);
fs.mkdirSync(reactDir, { recursive: true });
// Fetch component metadata