Skip to content

Commit

Permalink
Moving everthing to index
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Aug 20, 2020
1 parent d07cfa3 commit fd8c610
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 28 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby-cli/src/init-starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import isValid from "is-valid-path"
import sysPath from "path"
import prompts from "prompts"
import url from "url"
import { updateSiteMetadata } from "gatsby-core-utils/node"
import { updateSiteMetadata } from "gatsby-core-utils"
import report from "./reporter"
import { getPackageManager, promptPackageManager } from "./util/package-manager"
import { isTTY } from "./util/is-tty"
Expand Down
1 change: 0 additions & 1 deletion packages/gatsby-core-utils/node.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/gatsby-core-utils/node.js

This file was deleted.

5 changes: 2 additions & 3 deletions packages/gatsby-core-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,15 @@
},
"files": [
"dist/",
"dist/index.d.ts",
"node.js",
"node.d.ts"
"dist/index.d.ts"
],
"dependencies": {
"ci-info": "2.0.0",
"configstore": "^5.0.1",
"fs-extra": "^8.1.0",
"node-object-hash": "^2.0.0",
"proper-lockfile": "^4.1.1",
"tmp": "^0.2.1",
"xdg-basedir": "^4.0.0"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/gatsby-core-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ export { getCIName, isCI } from "./ci"
export { createRequireFromPath } from "./create-require-from-path"
export { getConfigStore } from "./get-config-store"
export { getGatsbyVersion } from "./get-gatsby-version"
export * from "./service-lock"
export * from "./site-metadata"
2 changes: 0 additions & 2 deletions packages/gatsby-core-utils/src/node.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/gatsby-recipes/src/graphql-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const execa = require(`execa`)
const path = require(`path`)
const fs = require(`fs`)
const detectPort = require(`detect-port`)
const { getService, createServiceLock } = require(`gatsby-core-utils/node`)
const { getService, createServiceLock } = require(`gatsby-core-utils`)

// NOTE(@mxstbr): The forceStart boolean enforces us to start the recipes graphql server
// even if another instance might already be running. This is necessary to ensure the gatsby
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-recipes/src/providers/gatsby/page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Joi = require(`@hapi/joi`)
const { getService } = require(`gatsby-core-utils/node`)
const { getService } = require(`gatsby-core-utils`)
const fetch = require(`node-fetch`)

const { REQUIRES_KEYS } = require(`./utils/constants`)
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/src/commands/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {
markWebpackStatusAsPending,
markWebpackStatusAsDone,
} from "../utils/webpack-status"
import { updateSiteMetadata } from "gatsby-core-utils/node"
import { updateSiteMetadata } from "gatsby-core-utils"

let cachedPageData
let cachedWebpackCompilationHash
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby/src/commands/develop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
createServiceLock,
getService,
updateSiteMetadata,
} from "gatsby-core-utils/node"
import { UnlockFn } from "gatsby-core-utils/src/service-lock"
UnlockFn,
} from "gatsby-core-utils"
import reporter from "gatsby-cli/lib/reporter"
import { getSslCert } from "../utils/get-ssl-cert"
import { startDevelopProxy } from "../utils/develop-proxy"
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/develop-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import https from "https"
import httpProxy from "http-proxy"
import path from "path"
import fs from "fs-extra"
import { getServices } from "gatsby-core-utils/node"
import { getServices } from "gatsby-core-utils"
import st from "st"
import restartingScreen from "./restarting-screen"
import { IProgram } from "../commands/types"
Expand Down
14 changes: 0 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6139,20 +6139,6 @@ boxen@^1.2.1:
term-size "^1.2.0"
widest-line "^2.0.0"

boxen@^3.0.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/boxen/-/boxen-3.2.0.tgz#fbdff0de93636ab4450886b6ff45b92d098f45eb"
integrity sha512-cU4J/+NodM3IHdSL2yN8bqYqnmlBTidDR4RC7nJs61ZmtGz8VZzM3HLQX0zY5mrSmPtR3xWwsq2jOUQqFZN8+A==
dependencies:
ansi-align "^3.0.0"
camelcase "^5.3.1"
chalk "^2.4.2"
cli-boxes "^2.2.0"
string-width "^3.0.0"
term-size "^1.2.0"
type-fest "^0.3.0"
widest-line "^2.0.0"

boxen@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/boxen/-/boxen-4.2.0.tgz#e411b62357d6d6d36587c8ac3d5d974daa070e64"
Expand Down

0 comments on commit fd8c610

Please sign in to comment.