@monarkmarkets/api-client 1.1.92 → 1.1.94

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/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es6",
4
- "module": "ESNext",
5
- "moduleResolution": "node",
6
- "declaration": true,
7
- "outDir": "./dist",
8
- "strict": true,
9
- "esModuleInterop": true
10
- },
11
- "include": ["src"],
12
- "exclude": ["node_modules", "dist"]
13
- }
package/update-version.js DELETED
@@ -1,31 +0,0 @@
1
- // update-version.js
2
- import fs from 'fs';
3
- import { execSync } from 'child_process';
4
-
5
- // Read swagger.json
6
- const swaggerContent = fs.readFileSync('./swagger.json', 'utf8');
7
- const swaggerData = JSON.parse(swaggerContent);
8
-
9
- // Get version from swagger.json
10
- const swaggerVersion = swaggerData.info.version;
11
-
12
- // Read package.json
13
- const packageContent = fs.readFileSync('./package.json', 'utf8');
14
- const packageData = JSON.parse(packageContent);
15
-
16
- console.log(`Updating package version from ${packageData.version} to ${swaggerVersion}`);
17
-
18
- // Update version in package.json
19
- packageData.version = swaggerVersion;
20
-
21
- // Write updated package.json
22
- fs.writeFileSync('./package.json', JSON.stringify(packageData, null, 2));
23
-
24
- // Update package-lock.json by running npm install
25
- try {
26
- console.log('Updating package-lock.json...');
27
- execSync('npm install --package-lock-only');
28
- console.log('Package-lock.json updated successfully');
29
- } catch (error) {
30
- console.error('Error updating package-lock.json:', error);
31
- }