@wavemaker/angular-codegen 12.0.0-next.45032 → 12.0.0-next.45501

Sign up to get free protection for your applications and to get access to all the features.
@@ -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",
@@ -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();