Skip to content

Commit

Permalink
fix(publish): fix type errors in prepack
Browse files Browse the repository at this point in the history
  • Loading branch information
eikeland committed Feb 19, 2024
1 parent 5eb6918 commit 66d08d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/commands/build-app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Command, flags } from '@oclif/command';
import { Command } from '@oclif/command';
import { flags } from '@oclif/parser';
import * as Listr from 'listr';
import * as path from 'path';
import * as fs from 'fs';
Expand Down
5 changes: 4 additions & 1 deletion src/commands/start-app.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { Command, flags } from '@oclif/command';
// import { flags } from '@oclif/parser';

import start from '../start-app/scripts/start';

export default class StartApp extends Command {
public static description = 'Start a fusion app';

public static flags = {
public static flags: any = {
apps: flags.string({
char: 'a',
description: 'Compile one or more fusion apps. E.g. --apps AppKey1 AppKey2 AppKey3',
multiple: true,
}),
/* @ts-ignore */
help: flags.help({ char: 'h' }),
production: flags.boolean({ char: 'P', description: 'Use production config' }),
port: flags.integer({ char: 'p', description: 'Devserver port' }),
Expand All @@ -19,6 +21,7 @@ export default class StartApp extends Command {
public async run(): Promise<void> {
console.log('Starting apps...');
process.env.DEVELOPMENT = 'true';
/* @ts-ignore */
const { port } = this.parse(StartApp).flags;
start({ port });
}
Expand Down

0 comments on commit 66d08d7

Please sign in to comment.