Skip to content

Commit

Permalink
Revert "chore(gatsby-cli): bundle ink logger (#26887)" (#26921)
Browse files Browse the repository at this point in the history
This reverts commit fe596ec.
  • Loading branch information
pieh committed Sep 16, 2020
1 parent ede2fd9 commit 61099b3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 122 deletions.
19 changes: 1 addition & 18 deletions packages/gatsby-cli/.babelrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
{
"presets": [
[
"@babel/env",
{
"modules": false,
"shippedProposals": true,
"targets": { "node": "10.13.0" }
}
],
"@babel/preset-react"
],
"plugins": ["@babel/plugin-transform-runtime"],
"overrides": [
{
"test": ["**/*.ts", "**/*.tsx"],
"plugins": [["@babel/plugin-transform-typescript", { "isTSX": true }]]
}
]
"presets": [["babel-preset-gatsby-package"]]
}
7 changes: 0 additions & 7 deletions packages/gatsby-cli/non-rollup-babel.config.js

This file was deleted.

24 changes: 5 additions & 19 deletions packages/gatsby-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"gatsby-recipes": "^0.2.27",
"gatsby-telemetry": "^1.3.35",
"hosted-git-info": "^3.0.4",
"ink": "^2.7.1",
"ink-spinner": "^3.1.0",
"is-valid-path": "^0.1.1",
"lodash": "^4.17.20",
"meant": "^1.0.1",
Expand All @@ -35,6 +37,7 @@
"pretty-error": "^2.1.1",
"progress": "^2.0.3",
"prompts": "^2.3.2",
"react": "^16.8.0",
"redux": "^4.0.5",
"resolve-cwd": "^3.0.0",
"semver": "^7.3.2",
Expand All @@ -45,29 +48,16 @@
"update-notifier": "^4.1.0",
"uuid": "3.4.0",
"yargs": "^15.3.1",
"yoga-layout-prebuilt": "^1.9.6",
"yurnalist": "^1.1.2"
},
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@rollup/plugin-babel": "^5.1.0",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^8.4.0",
"@rollup/plugin-replace": "^2.3.3",
"@types/hosted-git-info": "^3.0.0",
"@types/yargs": "^15.0.4",
"babel-preset-gatsby-package": "^0.5.3",
"concurrently": "^5.0.0",
"cross-env": "^5.2.1",
"ink": "^2.7.1",
"ink-spinner": "^3.1.0",
"react": "^16.8.0",
"rimraf": "^3.0.2",
"rollup": "^2.23.0",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-internal": "^1.0.0",
"typescript": "^3.9.5"
},
"files": [
Expand All @@ -87,14 +77,10 @@
"directory": "packages/gatsby-cli"
},
"scripts": {
"build:babel": "babel --config-file ./non-rollup-babel.config.js src --out-dir lib --ignore \"**/__tests__\" --ignore \"src/reporter/loggers/ink/**/*\" --extensions \".ts,.js,.tsx\"",
"build:rollup": "rollup -c",
"build": "concurrently \"npm run build:babel\" \"npm run build:rollup\"",
"build": "babel src --out-dir lib --ignore \"**/__tests__\" --extensions \".ts,.js,.tsx\"",
"prepare": "cross-env NODE_ENV=production npm run build && npm run typegen",
"typegen": "rimraf \"lib/**/*.d.ts\" && tsc --emitDeclarationOnly --declaration --declarationDir lib/",
"watch:babel": "npm run build:babel -- --watch",
"watch:rollup": "npm run build:rollup -- -w",
"watch": "concurrently \"npm run watch:babel\" \"npm run watch:rollup\"",
"watch": "babel -w src --out-dir lib --ignore \"**/__tests__\" --extensions \".ts,.js,.tsx\"",
"postinstall": "node scripts/postinstall.js"
},
"engines": {
Expand Down
69 changes: 0 additions & 69 deletions packages/gatsby-cli/rollup.config.js

This file was deleted.

10 changes: 1 addition & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3107,14 +3107,6 @@
is-module "^1.0.0"
resolve "^1.17.0"

"@rollup/plugin-replace@^2.3.3":
version "2.3.3"
resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.3.3.tgz#cd6bae39444de119f5d905322b91ebd4078562e7"
integrity sha512-XPmVXZ7IlaoWaJLkSCDaa0Y6uVo5XQYHhiMFzOd5qSv5rE+t/UJToPIOE56flKIxBFQI27ONsxb7dqHnwSsjKQ==
dependencies:
"@rollup/pluginutils" "^3.0.8"
magic-string "^0.25.5"

"@rollup/pluginutils@^3.0.0", "@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b"
Expand Down Expand Up @@ -15709,7 +15701,7 @@ magic-string@^0.22.4:
dependencies:
vlq "^0.2.2"

magic-string@^0.25.2, magic-string@^0.25.3, magic-string@^0.25.5:
magic-string@^0.25.2, magic-string@^0.25.3:
version "0.25.7"
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051"
integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==
Expand Down

0 comments on commit 61099b3

Please sign in to comment.