@wavemaker/angular-codegen 11.7.0-next.139441 → 11.7.0-next.139448

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.
@@ -61,7 +61,6 @@
61
61
  }
62
62
  ],
63
63
  "scripts": [
64
- "./node_modules/x2js/x2js.js",
65
64
  "./node_modules/d3/dist/d3.min.js",
66
65
  "./node_modules/@wavemaker/nvd3/build/nv.d3.min.js",
67
66
  "./node_modules/jquery/dist/jquery.min.js",
@@ -202,7 +201,6 @@
202
201
  "src/assets/app.css"
203
202
  ],
204
203
  "scripts": [
205
- "./node_modules/x2js/x2js.js",
206
204
  "./node_modules/d3/dist/d3.min.js",
207
205
  "./node_modules/@wavemaker/nvd3/build/nv.d3.min.js",
208
206
  "./node_modules/jquery/dist/jquery.min.js",
@@ -259,11 +257,23 @@
259
257
  "options": {
260
258
  "buildTarget": "angular-app:build"
261
259
  }
260
+ },
261
+ "lint": {
262
+ "builder": "@angular-eslint/builder:lint",
263
+ "options": {
264
+ "lintFilePatterns": [
265
+ "src/**/*.ts",
266
+ "src/**/*.html"
267
+ ]
268
+ }
262
269
  }
263
270
  }
264
271
  }
265
272
  },
266
273
  "cli": {
267
- "analytics": "fe5e8f46-2dff-4044-b3b8-8a1307278ce6"
274
+ "analytics": "fe5e8f46-2dff-4044-b3b8-8a1307278ce6",
275
+ "schematicCollections": [
276
+ "@angular-eslint/schematics"
277
+ ]
268
278
  }
269
279
  }
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+ const fs = require('fs');
3
+ const yargs = require('yargs');
4
+ const argv = yargs(process.argv).argv;
5
+
6
+ /**
7
+ * Updates the @wavemaker/app-ng-runtime dependency in the specified package.json file.
8
+ * @param {string} path - The path to the package.json file to update.
9
+ */
10
+
11
+ const updateNgRuntimePackage = (path) => {
12
+ if (fs.existsSync(path)) {
13
+ const packageJSON = require('../' + path);
14
+ packageJSON['dependencies']['@wavemaker/app-ng-runtime'] = argv["publish-version"];
15
+ fs.writeFileSync(path, JSON.stringify(packageJSON, null, 4));
16
+ } else {
17
+ console.log('package.json not found at ' + path);
18
+ }
19
+ };
20
+ const init = () => {
21
+ updateNgRuntimePackage('../wavemaker-studio-runtime-integration/package.json');
22
+ };
23
+
24
+ init();