@wavemaker-ai/angular-codegen 1.0.0-rc.647684 → 12.0.0-rc.335

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.
@@ -1,5 +1,9 @@
1
1
 
2
2
  // This file is automatically loaded when running `jest` commands
3
+ import { patchNgxBootstrapFiles } from '../build-scripts/ngx-bootstrap-patch.mjs';
4
+
5
+ patchNgxBootstrapFiles();
6
+
3
7
  import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';
4
8
  import { ToastrModule } from 'ngx-toastr';
5
9
  import { TestBed } from '@angular/core/testing';
@@ -8,7 +8,7 @@
8
8
  "declaration": false,
9
9
  "target": "es2022",
10
10
  "module": "es2022",
11
- "moduleResolution": "node",
11
+ "moduleResolution": "bundler",
12
12
  "esModuleInterop": true,
13
13
  "emitDecoratorMetadata": true,
14
14
  "experimentalDecorators": true,
@@ -36,7 +36,9 @@
36
36
  "node_modules/@wavemaker-ai/app-ng-runtime/core"
37
37
  ],
38
38
  "@wavemaker-ai/variables": [
39
- "node_modules/@wavemaker-ai/variables/"
39
+ ".yalc/@wavemaker-ai/variables/dist/es2015/index",
40
+ "node_modules/@wavemaker-ai/variables/dist/es2015/index",
41
+ ".yalc/@wavemaker-ai/variables/index"
40
42
  ],
41
43
  "@wavemaker-ai/custom-widgets-m3": [
42
44
  "node_modules/@wavemaker-ai/custom-widgets-m3/"
@@ -7,15 +7,16 @@
7
7
  "sourceMap": true,
8
8
  "declaration": false,
9
9
  "target": "es2022",
10
- "module": "es2020",
11
- "moduleResolution": "node",
10
+ "module": "es2022",
11
+ "moduleResolution": "bundler",
12
+ "esModuleInterop": true,
12
13
  "emitDecoratorMetadata": true,
13
14
  "experimentalDecorators": true,
14
15
  "typeRoots": [
15
16
  "node_modules/@types"
16
17
  ],
17
18
  "lib": [
18
- "es2018",
19
+ "es2022",
19
20
  "dom"
20
21
  ],
21
22
  "paths": {
@@ -34,6 +35,17 @@
34
35
  "@wm/core": [
35
36
  "node_modules/@wavemaker-ai/app-ng-runtime/core"
36
37
  ],
38
+ "@wavemaker-ai/variables": [
39
+ ".yalc/@wavemaker-ai/variables/dist/es2015/index",
40
+ "node_modules/@wavemaker-ai/variables/dist/es2015/index",
41
+ ".yalc/@wavemaker-ai/variables/index"
42
+ ],
43
+ "@wavemaker-ai/custom-widgets-m3": [
44
+ "node_modules/@wavemaker-ai/custom-widgets-m3/"
45
+ ],
46
+ "@wm/components/base": [
47
+ "node_modules/@wavemaker-ai/app-ng-runtime/components/base"
48
+ ],
37
49
  "@wm/components/basic/*": [
38
50
  "node_modules/@wavemaker-ai/app-ng-runtime/components/basic/*"
39
51
  ],
@@ -73,9 +85,12 @@
73
85
  "@wm/runtime/dynamic": [
74
86
  "node_modules/@wavemaker-ai/app-ng-runtime/runtime/dynamic"
75
87
  ]
76
- }
88
+ },
89
+ "useDefineForClassFields": false
77
90
  },
78
91
  "angularCompilerOptions": {
79
- "compilationMode": "full"
92
+ "compilationMode": "full",
93
+ "strictMetadataEmit": false,
94
+ "strictTemplates": false
80
95
  }
81
96
  }
@@ -82,9 +82,9 @@ const processAngularAppPackage = async (sourcePath, targetPath, packageName, isO
82
82
  // Install dependencies
83
83
  const installPath = isOptimized ? sourcePath : targetPath;
84
84
  try {
85
- if (global.buildConfigObj.runInspection && !isOptimized && fs.existsSync(path.join(global.buildConfigObj.appSrc, "build-src/package-override.json")) && fs.existsSync(path.join(installPath, 'package.json'))) {
85
+ if (!isOptimized && fs.existsSync(path.join(global.buildConfigObj.appSrc, "build-src/package-override.json")) && fs.existsSync(path.join(installPath, 'package.json'))) {
86
86
  let packageJson = JSON.parse(fs.readFileSync(path.join(installPath, 'package.json'), 'utf8'));
87
- packageJson = await mergePackageJsonWithOverrideJson(global.buildConfigObj.appSrc, packageJson);
87
+ packageJson = await mergePackageJsonWithOverrideJson(global.buildConfigObj.appSrc, packageJson, global.buildConfigObj.runInspection);
88
88
  fs.writeFileSync(path.join(installPath, 'package.json'), JSON.stringify(packageJson, null, 4));
89
89
  console.log("Successfully updated generated-app package.json with package-override.json");
90
90
  }