Skip to content

Commit

Permalink
Downgrade version brand warning to a log
Browse files Browse the repository at this point in the history
  • Loading branch information
MMK21Hub committed Aug 22, 2023
1 parent a859ac7 commit bc7f748
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,11 @@ export async function emitResourcePacks(
name: "Building resource packs",
})

if (!buildOptions.packVersion)
console.log(
"Building development variants of the pack (for published releases, you should set a version number)"
)

// Perform validation on the provided fixes
const validateFixesTask = mainTask.push({
type: "emitResourcePacks.validateFixes",
Expand All @@ -390,11 +395,6 @@ export async function emitResourcePacks(
await ensureDir(outputDir)
if (buildOptions.clearDirectory) await clearDir(outputDir, false)

if (!buildOptions.packVersion)
console.warn(
"No pack version specified. Published builds should be branded with a version number."
)

// Validation needs to be complete before we start processing the fixes
await validationPromise

Expand Down

0 comments on commit bc7f748

Please sign in to comment.