@rws-framework/db 2.3.5 → 2.3.6

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.
@@ -49,7 +49,7 @@ class DbHelper {
49
49
  }
50
50
  fs_1.default.writeFileSync(schemaPath, template);
51
51
  process.env = { ...process.env, [this.dbUrlVarName]: dbUrl };
52
- await console_1.rwsShell.runCommand(`${this.detectInstaller()} prisma generate --schema="${schemaPath}"`, process.cwd());
52
+ await console_1.rwsShell.runCommand(`${this.detectInstaller()} prisma generate --schema=${schemaPath}`, process.cwd());
53
53
  leaveFile = false;
54
54
  log(chalk_1.default.green('[RWS Init]') + ' prisma schema generated from ', schemaPath);
55
55
  if (!leaveFile) {
@@ -84,7 +84,7 @@ class DbHelper {
84
84
  static async pushDBModels(configService, dbService, leaveFile = false) {
85
85
  process.env = { ...process.env, [this.dbUrlVarName]: configService.get('db_url') };
86
86
  const schemaPath = path_1.default.join(workspaceRoot, 'node_modules', '.prisma', 'client', 'schema.prisma');
87
- await console_1.rwsShell.runCommand(`${this.detectInstaller()} prisma db push --schema="${schemaPath}"`, process.cwd());
87
+ await console_1.rwsShell.runCommand(`${this.detectInstaller()} prisma db push --schema=${schemaPath}`, process.cwd());
88
88
  }
89
89
  static async generateModelSections(model, configService) {
90
90
  var _a, _b;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rws-framework/db",
3
3
  "private": false,
4
- "version": "2.3.5",
4
+ "version": "2.3.6",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -70,7 +70,7 @@ export class DbHelper {
70
70
  process.env = { ...process.env, [this.dbUrlVarName]: dbUrl }
71
71
 
72
72
  await rwsShell.runCommand(`${this.detectInstaller()} prisma generate --schema=${schemaPath}`, process.cwd());
73
-
73
+
74
74
  leaveFile = false;
75
75
  log(chalk.green('[RWS Init]') + ' prisma schema generated from ', schemaPath);
76
76
 
@@ -122,7 +122,7 @@ export class DbHelper {
122
122
 
123
123
  const schemaPath = path.join(workspaceRoot, 'node_modules', '.prisma', 'client','schema.prisma');
124
124
 
125
- await rwsShell.runCommand(`${this.detectInstaller()} prisma db push --schema="${schemaPath}"`, process.cwd());
125
+ await rwsShell.runCommand(`${this.detectInstaller()} prisma db push --schema=${schemaPath}`, process.cwd());
126
126
 
127
127
  }
128
128