Skip to content

Commit

Permalink
Only remove sources for production build
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed Feb 3, 2025
1 parent 36297f1 commit e16f8f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions heroku-postbuild-cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ if (process.env.CI === undefined) {
exit(0);
}

if (process.env.NODE_ENV !== "production") {
exit(0);
}

await (async () => {
for await (const entry of glob("*")) {
if (
entry === "node_modules" ||
entry === "heroku-postbuild-cleanup.js" ||
entry === "package.json"
) {
if (entry === "heroku-postbuild-cleanup.js" || entry === "package.json") {
continue;
}
try {
Expand Down

0 comments on commit e16f8f7

Please sign in to comment.