@microtronics/studio-cli 0.32.2 → 0.32.3
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/CHANGELOG.md +7 -5
- package/out/manifest.js +0 -29
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
## 0.32.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
## 0.32.3 (2025-06-11)
|
|
4
|
+
|
|
5
|
+
## 0.32.2 (2025-06-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
8
10
|
* **studio-cli:** improve semver validation in dependency check ([2238827](https://bitbucket.org/microtronics-core/vscode-studio/commits/2238827380cdbe56fa5798c6de50c284df4da4c7))
|
|
9
11
|
|
|
10
12
|
## 0.32.1 (2025-06-02)
|
package/out/manifest.js
CHANGED
|
@@ -10,7 +10,6 @@ const image_dimensions_1 = require("image-dimensions");
|
|
|
10
10
|
const file_type_checker_1 = require("file-type-checker");
|
|
11
11
|
const registryAPI_1 = require("./registryAPI");
|
|
12
12
|
const preload_1 = __importDefault(require("semver/preload"));
|
|
13
|
-
const DeviceProfiles_1 = require("./DeviceProfiles");
|
|
14
13
|
const apm_1 = require("./package/apm");
|
|
15
14
|
var isNumeric = helper_1.Helper.isNumeric;
|
|
16
15
|
const PRODUCT_ID_SUPPORTED = '52v007';
|
|
@@ -112,8 +111,6 @@ var Manifest;
|
|
|
112
111
|
*/
|
|
113
112
|
async function write(cwd, fs, manifest) {
|
|
114
113
|
manifestCache.clear();
|
|
115
|
-
// patch the options if they are not valid for a specific device profile
|
|
116
|
-
patchDloCompileOptionsBasedOnDpid(manifest);
|
|
117
114
|
removeDeprecatedOptions(manifest);
|
|
118
115
|
return fs.writeFile(vscode_uri_1.Utils.joinPath(cwd, Manifest.fileName), JSON.stringify(manifest, null, '\t'));
|
|
119
116
|
}
|
|
@@ -425,32 +422,6 @@ function validateProjectVersion(manifest) {
|
|
|
425
422
|
}
|
|
426
423
|
}
|
|
427
424
|
}
|
|
428
|
-
/**
|
|
429
|
-
* Some devices doesn't support compression. this function does patch the option if it's not supported
|
|
430
|
-
* @param manifest
|
|
431
|
-
*/
|
|
432
|
-
function patchDloCompileOptionsBasedOnDpid(manifest) {
|
|
433
|
-
if (!manifest.dpid) {
|
|
434
|
-
return;
|
|
435
|
-
}
|
|
436
|
-
const deviceProfile = DeviceProfiles_1.DeviceProfiles[manifest.dpid];
|
|
437
|
-
const compileRestrictions = deviceProfile?.dlo?.compileRestrictions || {};
|
|
438
|
-
const { compileOptions } = manifest.dlo || {};
|
|
439
|
-
if (compileOptions) {
|
|
440
|
-
compileOptions.forEach((param, idx) => {
|
|
441
|
-
try {
|
|
442
|
-
const paramType = param.substring(0, 2);
|
|
443
|
-
const paramValue = param.substring(2);
|
|
444
|
-
if (Object.hasOwn(compileRestrictions, paramType) && `${paramValue}` !== `${compileRestrictions[paramType]}`) {
|
|
445
|
-
compileOptions[idx] = `${paramType}${compileRestrictions[paramType]}`;
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
catch (e) {
|
|
449
|
-
// todo?
|
|
450
|
-
}
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
425
|
function removeDeprecatedOptions(manifest) {
|
|
455
426
|
if (manifest.registry) {
|
|
456
427
|
delete manifest.registry.allowedBackends;
|