1
0
mirror of synced 2026-02-03 18:01:02 -05:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Brandon Bayer
0d343f5809 fix 2020-12-01 15:35:01 -05:00
Brandon Bayer
26f73e9e5c lazy require in display too 2020-12-01 13:15:41 -05:00
Brandon Bayer
6e2a90adab fix another blitz install issue because of peer dependencies in blitzjs/config 2020-12-01 13:08:34 -05:00
5 changed files with 8 additions and 4 deletions

View File

@@ -31,5 +31,8 @@
"type": "git",
"url": "https://github.com/blitz-js/blitz"
},
"dependencies": {
"pkg-dir": "4.2.0"
},
"gitHead": "d3b9fce0bdd251c2b1890793b0aa1cd77c1c0922"
}

View File

@@ -1,7 +1,5 @@
import {existsSync} from "fs"
import {PHASE_DEVELOPMENT_SERVER, PHASE_PRODUCTION_SERVER} from "next/constants"
import {join} from "path"
import pkgDir from "pkg-dir"
const configFiles = ["blitz.config.js", "next.config.js"]
/**
@@ -12,6 +10,9 @@ export const getConfig = (reload?: boolean): Record<string, unknown> => {
return global.blitzConfig
}
const pkgDir = require("pkg-dir")
const {PHASE_DEVELOPMENT_SERVER, PHASE_PRODUCTION_SERVER} = require("next/constants")
let blitzConfig = {}
const projectRoot = pkgDir.sync() || process.cwd()

View File

@@ -34,6 +34,7 @@
"url": "git+https://github.com/blitz-js/blitz.git"
},
"dependencies": {
"@blitzjs/config": "0.27.0-canary.1",
"chalk": "4.0.0",
"ora": "4.0.4",
"tslog": "2.9.1"

View File

@@ -1,4 +1,3 @@
import {getConfig} from "@blitzjs/config"
import c from "chalk"
import ora from "ora"
import readline from "readline"
@@ -13,6 +12,7 @@ const defaultConfig: LogConfig = {
}
const getLogConfig = (): LogConfig => {
const {getConfig} = require("@blitzjs/config")
const config = getConfig()
// TODO - validate log config and print helpfull error if invalid

View File

@@ -36,7 +36,6 @@
"dependencies": {
"@babel/core": "7.9.0",
"@babel/plugin-transform-typescript": "7.9.4",
"@blitzjs/config": "0.27.0-canary.1",
"@blitzjs/display": "0.27.0-canary.1",
"@blitzjs/generator": "0.27.0-canary.1",
"@types/jscodeshift": "0.7.1",