Skip to content

Commit

Permalink
Update NextFramework.java
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam-sharma7 committed Dec 1, 2023
1 parent 5862b21 commit 01968ac
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ public QuinoaConfig override(QuinoaConfig delegate, Optional<JsonObject> package
boolean isCustomized) {
if (delegate.packageManagerCommand().build().equals("run build") && packageJson.isPresent()) {
JsonObject scripts = packageJson.get().getJsonObject("scripts");
if (scripts != null) {
if (!scripts.getString("build")) {
LOG.warn(
"Make sure you define \"build\": \"next build \", in the package.json to make Next work with Quinoa.");
}
}
if (scripts != null) {
String buildScript = scripts.getString("build");
if (buildScript == null || buildScript.isEmpty()) {
LOG.warn("Make sure you define \"build\": \"next build\", in the package.json to make Next work with Quinoa.");
}
}
}
}
return new QuinoaConfigDelegate(super.override(delegate, packageJson, detectedDevScript, isCustomized)) {

Expand Down

0 comments on commit 01968ac

Please sign in to comment.