@blitzjs/config
Advanced tools
Comparing version 0.35.0-canary.3 to 0.35.0-canary.4
@@ -58,3 +58,11 @@ 'use strict'; | ||
debug("Starting buildConfig..."); | ||
var pkg = fsExtra.readJSONSync(path__default['default'].join(pkgDir__default['default'].sync(), "package.json")); | ||
var dir = pkgDir__default['default'].sync(); | ||
if (!dir) { | ||
// This will happen when running blitz no inside a blitz app | ||
debug("Unable to find package directory"); | ||
return; | ||
} | ||
var pkg = fsExtra.readJSONSync(path__default['default'].join(dir, "package.json")); | ||
debug("src", getConfigSrcPath()); | ||
@@ -61,0 +69,0 @@ debug("build", getConfigBuildPath()); |
@@ -58,3 +58,11 @@ 'use strict'; | ||
debug("Starting buildConfig..."); | ||
var pkg = fsExtra.readJSONSync(path__default['default'].join(pkgDir__default['default'].sync(), "package.json")); | ||
var dir = pkgDir__default['default'].sync(); | ||
if (!dir) { | ||
// This will happen when running blitz no inside a blitz app | ||
debug("Unable to find package directory"); | ||
return; | ||
} | ||
var pkg = fsExtra.readJSONSync(path__default['default'].join(dir, "package.json")); | ||
debug("src", getConfigSrcPath()); | ||
@@ -61,0 +69,0 @@ debug("build", getConfigBuildPath()); |
@@ -49,3 +49,11 @@ import { build } from 'esbuild'; | ||
debug("Starting buildConfig..."); | ||
var pkg = readJSONSync(path.join(pkgDir.sync(), "package.json")); | ||
var dir = pkgDir.sync(); | ||
if (!dir) { | ||
// This will happen when running blitz no inside a blitz app | ||
debug("Unable to find package directory"); | ||
return; | ||
} | ||
var pkg = readJSONSync(path.join(dir, "package.json")); | ||
debug("src", getConfigSrcPath()); | ||
@@ -52,0 +60,0 @@ debug("build", getConfigBuildPath()); |
{ | ||
"name": "@blitzjs/config", | ||
"version": "0.35.0-canary.3", | ||
"version": "0.35.0-canary.4", | ||
"description": "Loads the blitz app config", | ||
@@ -26,3 +26,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "ea2137b928bff7288208c4a36d712f09954a8c8d", | ||
"gitHead": "6b995be962b800500109c39e3af7d117094f6b99", | ||
"dependencies": { | ||
@@ -29,0 +29,0 @@ "esbuild": "^0.11.12", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20794
480