@gadmin2n/prisma-react-generator 0.0.36 → 0.0.37

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/CHANGELOG.md ADDED
@@ -0,0 +1,38 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/).
7
+
8
+ ## [1.4.1] - 2021-10-08
9
+
10
+ - upgrades prisma dependencies to their latest 3.x versions
11
+
12
+ ### Added
13
+
14
+ ### Changed
15
+
16
+ ### Fixed
17
+
18
+ - Generated code imports using \ instead of / ([#10](https://github.com/vegardit/prisma-generator-nestjs-dto/issues/10))
19
+
20
+ ## [1.4.0] - 2021-09-24
21
+
22
+ - upgrades prisma dependencies to their latest 3.x versions
23
+
24
+ ### Added
25
+
26
+ ### Changed
27
+
28
+ ### Fixed
29
+
30
+ ## [1.3.1] - 2021-09-24
31
+
32
+ - applies available minor and patch updates to dependencies
33
+
34
+ ### Added
35
+
36
+ ### Changed
37
+
38
+ ### Fixed
@@ -81,7 +81,19 @@ function loadConfigFromDirectory(allModels, enums = []) {
81
81
  console.log(`Created new config file: config/ui/${model.name}.ts`);
82
82
  });
83
83
  console.log('Compile UI config files ...');
84
- const { code } = shell.cd(configDirAbs).exec('tsc *.ts --moduleResolution node --esModuleInterop');
84
+ const tempTsConfig = {
85
+ compilerOptions: {
86
+ moduleResolution: 'node',
87
+ esModuleInterop: true,
88
+ outDir: '.',
89
+ },
90
+ include: ['./*.ts'],
91
+ exclude: ['./*.d.ts'],
92
+ };
93
+ const tempTsConfigPath = path.join(configDirAbs, '_tsconfig.tmp.json');
94
+ fs.writeFileSync(tempTsConfigPath, JSON.stringify(tempTsConfig, null, 2));
95
+ const { code } = shell.cd(configDirAbs).exec('tsc -p _tsconfig.tmp.json');
96
+ fs.unlinkSync(tempTsConfigPath);
85
97
  if (code !== 0) {
86
98
  shell.cd('../../server');
87
99
  process.exit(code);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gadmin2n/prisma-react-generator",
3
3
  "description": "Generates react props and components from Prisma Schema for Tea/Antd ui lib.",
4
- "version": "0.0.36",
4
+ "version": "0.0.37",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
7
7
  "name": "kavenma",