@inwink-mcp/backoffice-extension-helpers 1.0.5 → 1.0.6
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/dist/cli.js +8 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -486,7 +486,7 @@ function zipDist(projectDir, name, version) {
|
|
|
486
486
|
const zip = new AdmZip2();
|
|
487
487
|
zip.addLocalFolder(distDir);
|
|
488
488
|
const sourceZipBuffer = createSourceZip(projectDir);
|
|
489
|
-
zip.addFile(
|
|
489
|
+
zip.addFile("source.zip", sourceZipBuffer);
|
|
490
490
|
zip.writeZip(zipFilePath);
|
|
491
491
|
return zipFilePath;
|
|
492
492
|
}
|
|
@@ -508,22 +508,23 @@ function pack(opts) {
|
|
|
508
508
|
error("Le build a \xE9chou\xE9 \u2014 corrigez les erreurs ci-dessus.");
|
|
509
509
|
return buildCode;
|
|
510
510
|
}
|
|
511
|
-
|
|
511
|
+
let zipPath;
|
|
512
512
|
try {
|
|
513
|
-
|
|
514
|
-
success(`Nouvelle version : ${version}`);
|
|
513
|
+
zipPath = zipDist(projectDir, name, version);
|
|
515
514
|
} catch (err) {
|
|
516
515
|
error(err.message);
|
|
517
516
|
return 1;
|
|
518
517
|
}
|
|
519
|
-
|
|
518
|
+
success(`Zip cr\xE9\xE9 : ${path7.basename(zipPath)}`);
|
|
519
|
+
info(`Version : ${version}`);
|
|
520
|
+
info("Mise \xE0 jour de la version avec la date du jour\u2026");
|
|
520
521
|
try {
|
|
521
|
-
|
|
522
|
+
const newVersion = updateVersionToDateFormat(projectDir);
|
|
523
|
+
success(`Nouvelle version : ${newVersion}`);
|
|
522
524
|
} catch (err) {
|
|
523
525
|
error(err.message);
|
|
524
526
|
return 1;
|
|
525
527
|
}
|
|
526
|
-
success(`Zip cr\xE9\xE9 : ${path7.basename(zipPath)}`);
|
|
527
528
|
info("V\xE9rification de conformit\xE9\u2026");
|
|
528
529
|
const result = verifyExtension({ projectDir, zipPath, requireDist: true });
|
|
529
530
|
const ok = printVerifyResult(result);
|
package/package.json
CHANGED