Skip to content

Commit

Permalink
fix: πŸ› removed circular dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 4, 2020
1 parent 8813609 commit 57e162c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import fs from "fs"
import path from "path"
import { cache } from "./git"
import { Workspace } from "./workspace"

export const HASH_FILE = ".ultra.cache.json"
import { HASH_FILE } from "./options"

interface PackageFiles {
files: {
Expand Down
2 changes: 1 addition & 1 deletion src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { exec } from "child_process"
import fs from "fs"
import path from "path"
import { findUp } from "./package"
import { HASH_FILE } from "./build"
import { HASH_FILE } from "./options"

const regex = /^([A-Z?])\s+(\d{6})\s+([a-z0-9]{40})\s+(\d+)\s+(.*)$/u

Expand Down
4 changes: 3 additions & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import chalk from "chalk"

export const HASH_FILE = ".ultra.cache.json"

export const defaults = {
recursive: false,
filter: undefined as string | undefined,
color: chalk.supportsColor,
color: chalk.supportsColor !== undefined,
pretty: process.stdout.isTTY,
raw: false,
silent: false,
Expand Down

0 comments on commit 57e162c

Please sign in to comment.