Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Fix various errors #114

Merged
merged 5 commits into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/commands/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Argv } from 'yargs';
// yargs exports
export const command = 'styles <subcommand>';
export const describe = 'Run subcommands to work with a custom CSS theme';
export const builder = (yargs: Argv) => {
export const builder = (yargs: Argv): unknown => {
/* eslint-disable @typescript-eslint/no-var-requires */
return yargs
.command(require('./styles/create'))
Expand All @@ -18,4 +18,4 @@ export const builder = (yargs: Argv) => {
export const handler = noop;

// internals
function noop() {}
function noop(): void {}
2 changes: 1 addition & 1 deletion src/commands/styles/scaffold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function scaffold(workspacePath: string, force = false): Promise<vo

debug(`copying preview file`);

await cpy('preview/', buildPath(`${workspacePath}/<preview>`, dirs), {
await cpy('preview', buildPath(`${workspacePath}/<preview>`, dirs), {
cwd: buildPath(`<dirname>/../../`, dirs),
});

Expand Down
2 changes: 0 additions & 2 deletions src/lib/cleanDirectories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ const cleanDirectories = async (target: string, dest: string, tests: string, typ
rimraf(`${target}/tests/unit/widgets/WidgetName/`, async () => {
await del([`${target}/src/widgets/WidgetName.tsx`]);
rimraf(`${target}/src/widgets/WidgetName/`, async () => {
await copy(`${target}/src/`, dest + '/');
await copy(`${target}/tests/`, tests + '/');
rimraf(`${target}/**`, resolve);
});
});
Expand Down