create-prisma-php-app 1.6.60 → 1.6.61
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 +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -264,7 +264,7 @@ async function createOrUpdateEnvFile(baseDir, content) {
|
|
|
264
264
|
}
|
|
265
265
|
function checkExcludeFiles(destPath) {
|
|
266
266
|
var _a, _b;
|
|
267
|
-
return ((_b = (_a = updateAnswer === null || updateAnswer === void 0 ? void 0 : updateAnswer.
|
|
267
|
+
return ((_b = (_a = updateAnswer === null || updateAnswer === void 0 ? void 0 : updateAnswer.excludeFilePath) === null || _a === void 0 ? void 0 : _a.includes(destPath.replace(/\\/g, "/"))) !== null && _b !== void 0 ? _b : false);
|
|
268
268
|
}
|
|
269
269
|
async function createDirectoryStructure(baseDir, answer, projectSettings) {
|
|
270
270
|
console.log("🚀 ~ baseDir:", baseDir);
|
|
@@ -485,7 +485,7 @@ async function main() {
|
|
|
485
485
|
const filePath = path.join(currentDir, file);
|
|
486
486
|
console.log("🚀 ~ localSettings.excludeFiles?.map ~ filePath:", filePath);
|
|
487
487
|
if (fs.existsSync(filePath))
|
|
488
|
-
excludeFiles.push(filePath);
|
|
488
|
+
excludeFiles.push(filePath.replace(/\\/g, "/"));
|
|
489
489
|
});
|
|
490
490
|
updateAnswer = {
|
|
491
491
|
projectName,
|
|
@@ -493,6 +493,7 @@ async function main() {
|
|
|
493
493
|
websocket: (_c = answer === null || answer === void 0 ? void 0 : answer.websocket) !== null && _c !== void 0 ? _c : false,
|
|
494
494
|
isUpdate: true,
|
|
495
495
|
excludeFiles: (_d = localSettings.excludeFiles) !== null && _d !== void 0 ? _d : [],
|
|
496
|
+
excludeFilePath: excludeFiles !== null && excludeFiles !== void 0 ? excludeFiles : [],
|
|
496
497
|
filePath: currentDir,
|
|
497
498
|
};
|
|
498
499
|
console.log("🚀 ~ main ~ answer:", answer);
|