Skip to content

Commit

Permalink
style: change order of fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Jul 3, 2023
1 parent 4631277 commit fd49015
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

import useColors from '@poppinss/colors'
import type { Colors } from '@poppinss/colors/types'
import { REPLServer, Recoverable, start as startRepl } from 'node:repl'
import stringWidth from 'string-width'
import { inspect, promisify as utilPromisify } from 'node:util'
Expand Down Expand Up @@ -85,14 +86,6 @@ export class Repl {
*/
#originalEval: Function | null = null

colors = useColors.ansi()

/**
* Reference to the repl server. Available after the `start` method
* is invoked
*/
server?: REPLServer

/**
* Compiler that will transform the user input just
* before evaluation
Expand All @@ -116,6 +109,17 @@ export class Repl {
*/
#historyFilePath: string | undefined

/**
* Colors reference
*/
colors: Colors = useColors.ansi()

/**
* Reference to the repl server. Available after the `start` method
* is invoked
*/
server?: REPLServer

constructor(options?: { compiler?: Compiler; historyFilePath?: string }) {
this.#compiler = options?.compiler
this.#historyFilePath = options?.historyFilePath
Expand Down

0 comments on commit fd49015

Please # to comment.