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.
- package/dist/index.js +18 -0
- 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) => {
|