Skip to content

Commit 922b511

Browse files
fix cli missing clean
1 parent f63ffe3 commit 922b511

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/cli/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,26 @@ import Registry from './domain/registry';
99
import strings from '../resources';
1010
import validateCommand from './validate-command';
1111

12+
import clean from './facade/clean';
1213
import dev from './facade/dev';
1314
import init from './facade/init';
1415
import mock from './facade/mock';
1516
import packageScript from './facade/package';
16-
import publish from './facade/publish';
1717
import preview from './facade/preview';
18+
import publish from './facade/publish';
1819
import registry from './facade/registry';
1920
import registryAdd from './facade/registry-add';
2021
import registryLs from './facade/registry-ls';
2122
import registryRemove from './facade/registry-remove';
2223

2324
const cliFunctions = {
25+
clean,
2426
dev,
2527
init,
2628
mock,
2729
package: packageScript,
28-
publish,
2930
preview,
31+
publish,
3032
registry,
3133
'registry-add': registryAdd,
3234
'registry-ls': registryLs,
@@ -113,7 +115,8 @@ function processCommand(
113115
return yargs;
114116
},
115117
options => {
116-
facade(options as any, (error: unknown) => {
118+
// @ts-ignore Not callable
119+
facade(options, (error: unknown) => {
117120
if (error) {
118121
return process.exit(1);
119122
}

0 commit comments

Comments
 (0)