create-prisma-php-app 1.18.504 → 1.18.505

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +18 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -872,6 +872,24 @@ async function main() {
872
872
  : updateAnswer.isUpdate
873
873
  ) {
874
874
  const updateUninstallDependencies = [];
875
+ if (updateAnswer.backendOnly) {
876
+ const backendOnlyFiles = [
877
+ "favicon.ico",
878
+ "index.php",
879
+ "layout.php",
880
+ "metadata.php",
881
+ "not-found.php",
882
+ ];
883
+ backendOnlyFiles.forEach((file) => {
884
+ const filePath = path.join(projectPath, "src", "app", file);
885
+ if (fs.existsSync(filePath)) {
886
+ fs.unlinkSync(filePath); // Delete each file if it exists
887
+ console.log(`${file} was deleted successfully.`);
888
+ } else {
889
+ console.log(`${file} does not exist.`);
890
+ }
891
+ });
892
+ }
875
893
  if (!updateAnswer.tailwindcss) {
876
894
  const tailwindFiles = ["postcss.config.js", "tailwind.config.js"];
877
895
  tailwindFiles.forEach((file) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.18.504",
3
+ "version": "1.18.505",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",