Move `version.js` to core (#977)
Currently version is located in `homepage/`, which doesn't make much sense, since it's versioning the whole project. We move it to core. Test plan: `yarn test --full`
This commit is contained in:
parent
64500f53cb
commit
0ad1e0557f
|
@ -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")];
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
parseGitState,
|
||||
} from "./version";
|
||||
|
||||
describe("homepage/version", () => {
|
||||
describe("core/version", () => {
|
||||
const version = (): VersionInfo => ({
|
||||
major: 3,
|
||||
minor: 13,
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue