From 4fe8aeb4bff41e1ee5afa1e4cc4fd9c887795cba Mon Sep 17 00:00:00 2001 From: Daniel Emod Kovacs Date: Mon, 9 Mar 2020 21:00:31 +0100 Subject: [PATCH] chore(gatsby-core-utils): index to TS (#22053) * chore(gatsby-core-utils): index to TS * chore(gatby-core-utils): changed getConfigStore to named export in #22051 --- packages/gatsby-core-utils/src/index.js | 11 ----------- packages/gatsby-core-utils/src/index.ts | 8 ++++++++ 2 files changed, 8 insertions(+), 11 deletions(-) delete mode 100644 packages/gatsby-core-utils/src/index.js create mode 100644 packages/gatsby-core-utils/src/index.ts diff --git a/packages/gatsby-core-utils/src/index.js b/packages/gatsby-core-utils/src/index.js deleted file mode 100644 index 40ea3dda53f2a..0000000000000 --- a/packages/gatsby-core-utils/src/index.js +++ /dev/null @@ -1,11 +0,0 @@ -exports.createContentDigest = require(`./create-content-digest`) -exports.joinPath = require(`./path`).joinPath -exports.isNodeInternalModulePath = require(`./path`).isNodeInternalModulePath -exports.slash = require(`./path`).slash -exports.cpuCoreCount = require(`./cpu-core-count`) -exports.urlResolve = require(`./url`).resolve -exports.isCI = require(`./ci`).isCI -exports.getCIName = require(`./ci`).getCIName -exports.createRequireFromPath = require(`./create-require-from-path`) -exports.getConfigStore = require(`./get-config-store`) -exports.getGatsbyVersion = require(`./get-gatsby-version`) diff --git a/packages/gatsby-core-utils/src/index.ts b/packages/gatsby-core-utils/src/index.ts new file mode 100644 index 0000000000000..c3f57811dd4c1 --- /dev/null +++ b/packages/gatsby-core-utils/src/index.ts @@ -0,0 +1,8 @@ +export { default as createContentDigest } from "./create-content-digest" +export { joinPath, isNodeInternalModulePath, slash } from "./path" +export { default as cpuCoreCount } from "./cpu-core-count" +export { resolve as urlResolve } from "./url" +export { isCI, getCIName } from "./ci" +export { default as createRequireFromPath } from "./create-require-from-path" +export { getConfigStore } from "./get-config-store" +export { default as getGatsbyVersion } from "./get-gatsby-version"