@microtronics/studio-cli 0.7.0 → 0.9.0

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.
@@ -99,7 +99,7 @@ class DloPreCompiler {
99
99
  if (!['app', 'main'].includes(ddeIncSource)) {
100
100
  // this is a library specific file!
101
101
  mangleDDEFunctions = helper_1.Helper.generateHashForLibraryName(ddeIncSource);
102
- console.log('MANGLED LIB DDE', baseName, ddeIncSource, mangleDDEFunctions);
102
+ // console.log('MANGLED LIB DDE', baseName, ddeIncSource, mangleDDEFunctions);
103
103
  }
104
104
  }
105
105
  // look for library source files:
@@ -108,12 +108,12 @@ class DloPreCompiler {
108
108
  const [libName] = libPath.split('/');
109
109
  if (!['dlo-core'].includes(libName)) {
110
110
  mangleDDEFunctions = helper_1.Helper.generateHashForLibraryName(libName);
111
- console.log('MANGLED LIB', baseName, mangleDDEFunctions);
111
+ // console.log('MANGLED LIB', baseName, mangleDDEFunctions);
112
112
  }
113
113
  }
114
114
  else if (manifest_1.Manifest.isLibraryProject(manifest) && baseName === `${manifest.name}.inc`) {
115
115
  mangleDDEFunctions = helper_1.Helper.generateHashForLibraryName(manifest.name);
116
- console.log('MANGLED PROJECT LIB', baseName, mangleDDEFunctions);
116
+ // console.log('MANGLED PROJECT LIB', baseName, mangleDDEFunctions);
117
117
  }
118
118
  if (filePath.endsWith('.auto/default.inc')) {
119
119
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../src/globals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,OAAO,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,GAAG,EAAS,MAAM,YAAY,CAAC;AAQxC,yBAAiB,OAAO,CAAC;IACxB,UAAiB,OAAO;QACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACtB;IAED;;;;OAIG;IACH,SAAsB,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAkClE;CACD"}
1
+ {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../src/globals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAS,MAAM,YAAY,CAAC;AAUxC,yBAAiB,OAAO,CAAC;IACxB,UAAiB,OAAO;QACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACtB;IAED;;;;OAIG;IACH,SAAsB,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAkClE;CACD"}
package/out/globals.js CHANGED
@@ -24,12 +24,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Globals = void 0;
27
- const FS_1 = require("./FS");
28
27
  const vscode_uri_1 = require("vscode-uri");
29
28
  const dependencies_1 = require("./dependencies");
30
29
  const manifest_1 = require("./manifest");
31
30
  const defaultFiles_1 = require("./defaultFiles");
32
31
  const ini = __importStar(require("ini"));
32
+ const helper_1 = require("./helper");
33
+ var convertBlobToString = helper_1.Helper.convertBlobToString;
33
34
  const DLO_PATH = defaultFiles_1.DefaultFiles.filePaths.dlo.path;
34
35
  var Globals;
35
36
  (function (Globals) {
@@ -77,6 +78,6 @@ var Globals;
77
78
  */
78
79
  async function readIniFile(fs, filePath) {
79
80
  const iniContent = await fs.readFile(filePath);
80
- return ini.parse((0, FS_1.convertBlobToString)(iniContent));
81
+ return ini.parse(convertBlobToString(iniContent));
81
82
  }
82
83
  //# sourceMappingURL=globals.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAG1C,yBAAiB,MAAM,CAAC;IACvB;;;;OAIG;IACH,SAAgB,0BAA0B,CACzC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,KAAK,GACf;QACF,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;KACrB,CAQA;IAID;;;OAGG;IACH,SAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,UAE7D;IAED,SAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,UAEvD;IAED;;;OAGG;IACH,SAAgB,2BAA2B,CAAC,OAAO,EAAE,UAAU,UAE9D;CACD"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../src/helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAG1C,yBAAiB,MAAM,CAAC;IACvB;;;;OAIG;IACH,SAAgB,0BAA0B,CACzC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,KAAK,GACf;QACF,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;KACrB,CAQA;IAID;;;OAGG;IACH,SAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,UAE7D;IAED,SAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,UAEvD;IAED;;;OAGG;IACH,SAAgB,2BAA2B,CAAC,OAAO,EAAE,UAAU,UAE9D;IAED,SAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,GAAG,UAazD;IACD,SAAgB,WAAW,CAAC,iBAAiB,GAAE,MAAW,UAEzD;IAED,SAAgB,wBAAwB,CAAC,IAAI,EAAE,UAAU,GAAG,GAAG,GAAG,MAAM,EAAE,CAOzE;CACD"}
package/out/helper.js CHANGED
@@ -40,5 +40,36 @@ var Helper;
40
40
  return (0, crc_1.crc32_ethernet)(content).toString(16).toUpperCase().padStart(8, '0');
41
41
  }
42
42
  Helper.generateCRC32ForFileContent = generateCRC32ForFileContent;
43
+ function convertBlobToString(blob) {
44
+ try {
45
+ let binaryData = null;
46
+ // if vscode runs in desktop mode, the blob is a serialized buffer
47
+ if (blob?.type === 'Buffer') {
48
+ binaryData = Uint8Array.from(blob.data);
49
+ }
50
+ else {
51
+ binaryData = blob;
52
+ }
53
+ return new TextDecoder('utf8').decode(binaryData);
54
+ }
55
+ catch (e) {
56
+ return '';
57
+ }
58
+ }
59
+ Helper.convertBlobToString = convertBlobToString;
60
+ function normalizeLF(stringToNormalize = '') {
61
+ return stringToNormalize.replace(/\r\n|\n\r|\r/g, '\n');
62
+ }
63
+ Helper.normalizeLF = normalizeLF;
64
+ function convertBlobToStringArray(blob) {
65
+ try {
66
+ const textData = convertBlobToString(blob).trim();
67
+ return normalizeLF(textData).split('\n');
68
+ }
69
+ catch (e) {
70
+ return [];
71
+ }
72
+ }
73
+ Helper.convertBlobToStringArray = convertBlobToStringArray;
43
74
  })(Helper || (exports.Helper = Helper = {}));
44
75
  //# sourceMappingURL=helper.js.map
package/out/main.js CHANGED
@@ -13,6 +13,7 @@ var installDependency = dependencies_1.Dependencies.installDependency;
13
13
  const dde_1 = require("./dde/dde");
14
14
  const compiler_1 = require("./dlo/compiler");
15
15
  const dlo_1 = require("./dlo/dlo");
16
+ const scriptRunner_1 = require("./scriptRunner");
16
17
  const program = new commander_1.Command();
17
18
  // dummy cwd
18
19
  const devPath = process.env.NODE_ENV === 'local-dev' ? './dev' : '';
@@ -55,7 +56,8 @@ program
55
56
  });
56
57
  program
57
58
  .command('build')
58
- .arguments('[dde] [dlo]') // [pov] ....
59
+ .arguments('[dde] [dlo] [pov] [blo]')
60
+ // eslint-disable-next-line sonarjs/cognitive-complexity
59
61
  .action(async (apmPart) => {
60
62
  if (!apmPart || apmPart === 'dde') {
61
63
  const result = await dde_1.DDE.compileDDE(cwd, cliFS_1.cliFS);
@@ -79,7 +81,7 @@ program
79
81
  await dlo_1.DLO.exportDloConfig(cwd, cliFS_1.cliFS);
80
82
  }
81
83
  else {
82
- console.error('Project has errors!');
84
+ throw new Error('Project has errors!');
83
85
  }
84
86
  }
85
87
  if (!apmPart || apmPart === 'dlo') {
@@ -87,6 +89,13 @@ program
87
89
  const compiler = new compiler_1.DloCompiler();
88
90
  await compiler.compile(cwd, cliFS_1.cliFS);
89
91
  }
92
+ if (!apmPart || apmPart === 'pov') {
93
+ await scriptRunner_1.Shell.tryBuildPov(cwd, cliFS_1.cliFS);
94
+ }
95
+ if (!apmPart || apmPart === 'blo') {
96
+ await scriptRunner_1.Shell.tryBuildBlo(cwd, cliFS_1.cliFS);
97
+ }
98
+ console.log('DONE');
90
99
  });
91
100
  module.exports = function (argv) {
92
101
  program.parse(argv);
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAS,MAAM,YAAY,CAAC;AACxC,OAAO,EAAuB,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpD,yBAAiB,QAAQ,CAAC;IACzB,KAAY,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC;IAE9F,UAAiB,QAAQ;QACxB,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,cAAc,CAAC;QACrB,OAAO,CAAC,EAAE;YACT,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;YAChB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;SACrB,CAAC;QACF,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,mBAAmB,CAAC,EAAE,YAAY,CAAC;Q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AAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACtB;IAED,UAAiB,cAAc;QAC9B,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;KACpB;IAED;;;;OAIG;IACH,SAAsB,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAInE;IAED;;;;;OAKG;IACH,SAAsB,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAExF;IAED;;OAEG;IACH,SAAgB,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAAG,OAAO,CAErE;CACD"}
package/out/manifest.js CHANGED
@@ -2,9 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Manifest = void 0;
4
4
  const vscode_uri_1 = require("vscode-uri");
5
- const FS_1 = require("./FS");
5
+ const helper_1 = require("./helper");
6
6
  var Manifest;
7
7
  (function (Manifest) {
8
+ var convertBlobToString = helper_1.Helper.convertBlobToString;
8
9
  /**
9
10
  * Read the studio.json manifest and parse it
10
11
  * @param cwd
@@ -12,7 +13,7 @@ var Manifest;
12
13
  */
13
14
  async function read(cwd, fs) {
14
15
  const localManifest = await fs.readFile(vscode_uri_1.Utils.joinPath(cwd, 'studio.json'));
15
- const manifestString = (0, FS_1.convertBlobToString)(localManifest);
16
+ const manifestString = convertBlobToString(localManifest);
16
17
  return JSON.parse(manifestString);
17
18
  }
18
19
  Manifest.read = read;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scriptRunner.d.ts","sourceRoot":"","sources":["../src/scriptRunner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAS,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAI/B,yBAAiB,KAAK,CAAC;IACtB;;;;OAIG;IACH,SAAsB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,iBAgBtD;IAED;;;;OAIG;IACH,SAAsB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,iBAgBtD;CACD"}
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.Shell = void 0;
27
+ const vscode_uri_1 = require("vscode-uri");
28
+ const manifest_1 = require("./manifest");
29
+ const child_process = __importStar(require("node:child_process"));
30
+ var Shell;
31
+ (function (Shell) {
32
+ /**
33
+ * Calls the POV build command defined within the manifest
34
+ * @param cwd
35
+ * @param fs
36
+ */
37
+ async function tryBuildPov(cwd, fs) {
38
+ const manifest = await manifest_1.Manifest.read(cwd, fs);
39
+ if (manifest.pov?.details?.buildCommand && manifest.pov.details.workingPath) {
40
+ console.log('Executing POV build script', manifest.pov?.details.buildCommand);
41
+ const { buildCommand, workingPath } = manifest.pov.details;
42
+ const povDir = vscode_uri_1.Utils.joinPath(cwd, workingPath);
43
+ try {
44
+ await execShell(povDir, buildCommand);
45
+ }
46
+ catch (e) {
47
+ if (e.code) {
48
+ throw new Error('Build POV failed');
49
+ }
50
+ else {
51
+ throw e;
52
+ }
53
+ }
54
+ }
55
+ }
56
+ Shell.tryBuildPov = tryBuildPov;
57
+ /**
58
+ * Calls the BLO build command defined within the manifest
59
+ * @param cwd
60
+ * @param fs
61
+ */
62
+ async function tryBuildBlo(cwd, fs) {
63
+ const manifest = await manifest_1.Manifest.read(cwd, fs);
64
+ if (manifest.blo?.buildCommand && manifest.blo?.workingPath) {
65
+ console.log('Executing BLO build script', manifest.blo?.buildCommand);
66
+ const { buildCommand, workingPath } = manifest.blo;
67
+ const bloDir = vscode_uri_1.Utils.joinPath(cwd, workingPath);
68
+ try {
69
+ await execShell(bloDir, buildCommand);
70
+ }
71
+ catch (e) {
72
+ if (e.code) {
73
+ throw new Error('Build BLO failed');
74
+ }
75
+ else {
76
+ throw e;
77
+ }
78
+ }
79
+ }
80
+ }
81
+ Shell.tryBuildBlo = tryBuildBlo;
82
+ })(Shell || (exports.Shell = Shell = {}));
83
+ /**
84
+ * Generic shell executor
85
+ * @param cwd - working dir where the command should be executed in
86
+ * @param cmd - the shell command
87
+ */
88
+ async function execShell(cwd, cmd) {
89
+ return new Promise((resolve, reject) => {
90
+ // todo use spawn instead of exec to allow streaming to the console
91
+ child_process.exec(cmd, { cwd: cwd.fsPath, env: process.env }, (error, stdout, stderr) => {
92
+ console.log(stdout);
93
+ console.error(stderr);
94
+ if (error) {
95
+ reject(error);
96
+ }
97
+ resolve(null);
98
+ });
99
+ });
100
+ }
101
+ //# sourceMappingURL=scriptRunner.js.map
package/package.json CHANGED
@@ -1,73 +1,73 @@
1
- {
2
- "name": "@microtronics/studio-cli",
3
- "version": "0.7.0",
4
- "description": "Microtronics Studio CLI Tool",
5
- "main": "./out/api.js",
6
- "typings": "./dist/studio-cli.d.ts",
7
- "bin": {
8
- "studio-cli": "studio-cli"
9
- },
10
- "publishConfig": {
11
- "access": "public"
12
- },
13
- "scripts": {
14
- "release": "release-it --ci",
15
- "compile": "npm run build:registryApiTypings && tsc",
16
- "api": "api-extractor run --local --verbose",
17
- "build": "npm run compile && npm run api",
18
- "watch:build": "npm run compile -- --watch",
19
- "test": "cross-env STUDIO_ENV=lucky mocha",
20
- "test-ci": "cross-env STUDIO_ENV=lucky mocha --reporter mocha-junit-reporter",
21
- "watch:test": "npm run test -- --watch",
22
- "prepublishOnly": "npm run build",
23
- "build:registryApiTypings": "npx openapi-typescript https://api.registry.stage.microtronics.com/v1/openapi.yaml -o ./src/typings/registry.ts"
24
- },
25
- "author": "Microtronics",
26
- "license": "ISC",
27
- "dependencies": {
28
- "ajv": "^8.17.1",
29
- "ajv-formats": "^3.0.1",
30
- "ajv-keywords": "^5.1.0",
31
- "commander": "^12.1.0",
32
- "cross-fetch": "^4.0.0",
33
- "glob": "^11.0.0",
34
- "iconv-lite": "^0.6.3",
35
- "ini": "^5.0.0",
36
- "openapi-fetch": "^0.13.0",
37
- "pako": "^2.1.0",
38
- "semver": "^7.6.3",
39
- "tarballjs": "github:ankitrohatgi/tarballjs",
40
- "tinytar-fix": "^0.1.1",
41
- "vscode-uri": "^3.0.8",
42
- "yaml": "^2.6.1"
43
- },
44
- "engines": {
45
- "node": ">= 20"
46
- },
47
- "devDependencies": {
48
- "@microsoft/api-extractor": "^7.47.11",
49
- "@types/chai": "^4.3.6",
50
- "@types/chai-as-promised": "^7.1.5",
51
- "@types/ini": "^4.1.1",
52
- "@types/mocha": "^10.0.9",
53
- "@types/node": "^22.9.1",
54
- "@types/semver": "^7.5.6",
55
- "@types/vscode": "^1.86.2",
56
- "chai": "^4.3.8",
57
- "chai-as-promised": "^7.1.2",
58
- "cross-env": "^7.0.3",
59
- "mocha": "^10.8.2",
60
- "mocha-junit-reporter": "^2.2.1",
61
- "openapi-typescript": "^7.4.3",
62
- "ts-node": "^10.9.2",
63
- "typescript": "^5.6.3"
64
- },
65
- "mocha": {
66
- "require": [
67
- "ts-node/register"
68
- ],
69
- "watch-files": "src/**",
70
- "spec": "./test/**/*.spec.ts",
71
- "recursive": true
72
- }
73
- }
1
+ {
2
+ "name": "@microtronics/studio-cli",
3
+ "version": "0.9.0",
4
+ "description": "Microtronics Studio CLI Tool",
5
+ "main": "./out/api.js",
6
+ "typings": "./dist/studio-cli.d.ts",
7
+ "bin": {
8
+ "studio-cli": "studio-cli"
9
+ },
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "scripts": {
14
+ "release": "release-it --ci",
15
+ "compile": "npm run build:registryApiTypings && tsc",
16
+ "api": "api-extractor run --local --verbose",
17
+ "build": "npm run compile && npm run api",
18
+ "watch:build": "npm run compile -- --watch",
19
+ "test": "cross-env STUDIO_ENV=lucky mocha",
20
+ "test-ci": "cross-env STUDIO_ENV=lucky mocha --reporter mocha-junit-reporter",
21
+ "watch:test": "npm run test -- --watch",
22
+ "prepublishOnly": "npm run build",
23
+ "build:registryApiTypings": "npx openapi-typescript https://api.registry.stage.microtronics.com/v1/openapi.yaml -o ./src/typings/registry.ts"
24
+ },
25
+ "author": "Microtronics",
26
+ "license": "ISC",
27
+ "dependencies": {
28
+ "ajv": "^8.17.1",
29
+ "ajv-formats": "^3.0.1",
30
+ "ajv-keywords": "^5.1.0",
31
+ "commander": "^12.1.0",
32
+ "cross-fetch": "^4.0.0",
33
+ "glob": "^11.0.0",
34
+ "iconv-lite": "^0.6.3",
35
+ "ini": "^5.0.0",
36
+ "openapi-fetch": "^0.13.0",
37
+ "pako": "^2.1.0",
38
+ "semver": "^7.6.3",
39
+ "tarballjs": "github:ankitrohatgi/tarballjs",
40
+ "tinytar-fix": "^0.1.1",
41
+ "vscode-uri": "^3.0.8",
42
+ "yaml": "^2.6.1"
43
+ },
44
+ "engines": {
45
+ "node": ">= 20"
46
+ },
47
+ "devDependencies": {
48
+ "@microsoft/api-extractor": "^7.47.11",
49
+ "@types/chai": "^4.3.6",
50
+ "@types/chai-as-promised": "^7.1.5",
51
+ "@types/ini": "^4.1.1",
52
+ "@types/mocha": "^10.0.9",
53
+ "@types/node": "^22.9.1",
54
+ "@types/semver": "^7.5.6",
55
+ "@types/vscode": "^1.86.2",
56
+ "chai": "^4.3.8",
57
+ "chai-as-promised": "^7.1.2",
58
+ "cross-env": "^7.0.3",
59
+ "mocha": "^10.8.2",
60
+ "mocha-junit-reporter": "^2.2.1",
61
+ "openapi-typescript": "^7.4.3",
62
+ "ts-node": "^10.9.2",
63
+ "typescript": "^5.6.3"
64
+ },
65
+ "mocha": {
66
+ "require": [
67
+ "ts-node/register"
68
+ ],
69
+ "watch-files": "src/**",
70
+ "spec": "./test/**/*.spec.ts",
71
+ "recursive": true
72
+ }
73
+ }