Skip to content

Commit

Permalink
build: ignore dev deps on build (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbrink authored Jan 30, 2025
1 parent 31ec45a commit bb802ed
Show file tree
Hide file tree
Showing 3 changed files with 1,726 additions and 279 deletions.
4 changes: 2 additions & 2 deletions build.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
$buildCommands[] = 'npm ci --no-progress --no-audit';
} else {
$npmPackage = json_decode(file_get_contents('package.json'));
$buildCommands[] = "npm install $npmPackage->name";
$buildCommands[] = "npm install $npmPackage->name --omit=dev";
$buildCommands[] = "rm -rf ./dist";
$buildCommands[] = "mv node_modules/$npmPackage->name/dist ./";
}
Expand All @@ -39,7 +39,7 @@
$buildCommands[] = 'npm install --no-progress --no-audit';
} else {
$npmPackage = json_decode(file_get_contents('package.json'));
$buildCommands[] = "npm install $npmPackage->name";
$buildCommands[] = "npm install $npmPackage->name --omit=dev";
$buildCommands[] = "rm -rf ./dist";
$buildCommands[] = "mv node_modules/$npmPackage->name/dist ./";
}
Expand Down
Loading

0 comments on commit bb802ed

Please sign in to comment.