diff --git a/config/env.js b/config/env.js index d6535d0..304e6ea 100644 --- a/config/env.js +++ b/config/env.js @@ -6,7 +6,7 @@ const path = require("path"); const paths = require("./paths"); -/*:: import type {GitState} from "../src/homepage/version"; */ +/*:: import type {GitState} from "../src/core/version"; */ // Make sure that including paths.js after env.js will read .env variables. delete require.cache[require.resolve("./paths")]; diff --git a/src/cli/sourcecred.js b/src/cli/sourcecred.js index b794356..422921d 100644 --- a/src/cli/sourcecred.js +++ b/src/cli/sourcecred.js @@ -3,7 +3,7 @@ import type {Command} from "./command"; -import {VERSION_SHORT} from "../homepage/version"; +import {VERSION_SHORT} from "../core/version"; import help from "./help"; import load from "./load"; diff --git a/src/homepage/version.js b/src/core/version.js similarity index 100% rename from src/homepage/version.js rename to src/core/version.js diff --git a/src/homepage/version.test.js b/src/core/version.test.js similarity index 99% rename from src/homepage/version.test.js rename to src/core/version.test.js index 2fecc9b..039c159 100644 --- a/src/homepage/version.test.js +++ b/src/core/version.test.js @@ -9,7 +9,7 @@ import { parseGitState, } from "./version"; -describe("homepage/version", () => { +describe("core/version", () => { const version = (): VersionInfo => ({ major: 3, minor: 13, diff --git a/src/homepage/Page.js b/src/homepage/Page.js index 9f3ea8d..8fe56b9 100644 --- a/src/homepage/Page.js +++ b/src/homepage/Page.js @@ -11,7 +11,7 @@ import TwitterLogo from "./TwitterLogo"; import DiscordLogo from "./DiscordLogo"; import {routeData} from "./routeData"; import * as NullUtil from "../util/null"; -import {VERSION_SHORT, VERSION_FULL} from "./version"; +import {VERSION_SHORT, VERSION_FULL} from "../core/version"; export default class Page extends React.Component<{| +assets: Assets,