@rws-framework/db 2.1.8 → 2.1.9
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/helper/DbHelper.js
CHANGED
|
@@ -52,11 +52,7 @@ class DbHelper {
|
|
|
52
52
|
process.env.DB_URL = dbUrl;
|
|
53
53
|
const endPrisma = 'npx prisma';
|
|
54
54
|
const clientPath = path_1.default.join(console_1.rwsPath.findRootWorkspacePath(), 'node_modules', '.prisma', 'client');
|
|
55
|
-
await console_1.rwsShell.runCommand(`${endPrisma} generate --schema=${schemaPath}`, process.cwd()
|
|
56
|
-
env: {
|
|
57
|
-
PRISMA_CLIENT_OUTPUT: clientPath
|
|
58
|
-
}
|
|
59
|
-
});
|
|
55
|
+
await console_1.rwsShell.runCommand(`${endPrisma} generate --schema=${schemaPath}`, process.cwd());
|
|
60
56
|
leaveFile = true;
|
|
61
57
|
log(chalk_1.default.green('[RWS Init]') + ' prisma schema generated from ', schemaPath);
|
|
62
58
|
if (!leaveFile) {
|
package/package.json
CHANGED
package/src/helper/DbHelper.ts
CHANGED
|
@@ -69,11 +69,7 @@ export class DbHelper {
|
|
|
69
69
|
const endPrisma = 'npx prisma';
|
|
70
70
|
|
|
71
71
|
const clientPath = path.join(rwsPath.findRootWorkspacePath(), 'node_modules', '.prisma', 'client');
|
|
72
|
-
await rwsShell.runCommand(`${endPrisma} generate --schema=${schemaPath}`, process.cwd()
|
|
73
|
-
env: {
|
|
74
|
-
PRISMA_CLIENT_OUTPUT: clientPath
|
|
75
|
-
}
|
|
76
|
-
});
|
|
72
|
+
await rwsShell.runCommand(`${endPrisma} generate --schema=${schemaPath}`, process.cwd());
|
|
77
73
|
|
|
78
74
|
leaveFile = true;
|
|
79
75
|
log(chalk.green('[RWS Init]') + ' prisma schema generated from ', schemaPath);
|