diff --git a/packages/gatsby-telemetry/src/__tests__/is-truthy.ts b/packages/gatsby-core-utils/src/__tests__/is-truthy.ts similarity index 100% rename from packages/gatsby-telemetry/src/__tests__/is-truthy.ts rename to packages/gatsby-core-utils/src/__tests__/is-truthy.ts diff --git a/packages/gatsby-core-utils/src/index.ts b/packages/gatsby-core-utils/src/index.ts index 5c7b3697ddef4..390d7c0d6d42e 100644 --- a/packages/gatsby-core-utils/src/index.ts +++ b/packages/gatsby-core-utils/src/index.ts @@ -8,5 +8,6 @@ export { getConfigStore } from "./get-config-store" export { getGatsbyVersion } from "./get-gatsby-version" export { getTermProgram } from "./get-term-program" export { fetchRemoteFile, IFetchRemoteFileOptions } from "./fetch-remote-file" +export { isTruthy } from "./is-truthy" export * from "./service-lock" export * from "./site-metadata" diff --git a/packages/gatsby-telemetry/src/is-truthy.ts b/packages/gatsby-core-utils/src/is-truthy.ts similarity index 100% rename from packages/gatsby-telemetry/src/is-truthy.ts rename to packages/gatsby-core-utils/src/is-truthy.ts diff --git a/packages/gatsby-telemetry/src/event-storage.ts b/packages/gatsby-telemetry/src/event-storage.ts index 177dd6fe3e9aa..a1eb51deb5499 100644 --- a/packages/gatsby-telemetry/src/event-storage.ts +++ b/packages/gatsby-telemetry/src/event-storage.ts @@ -3,7 +3,7 @@ import Configstore from "configstore" import createFetch from "@turist/fetch" import { Store } from "./store" import { ensureDirSync } from "fs-extra" -import { isTruthy } from "./is-truthy" +import { isTruthy } from "gatsby-core-utils" import { InMemoryConfigStore } from "./in-memory-store" const fetch = createFetch()