@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.
Files changed (2) hide show
  1. package/dist/cli.js +8 -7
  2. 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(sourceZipBuffer, "source.zip");
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
- info("Mise \xE0 jour de la version avec la date du jour\u2026");
511
+ let zipPath;
512
512
  try {
513
- version = updateVersionToDateFormat(projectDir);
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
- let zipPath;
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
- zipPath = zipDist(projectDir, name, version);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inwink-mcp/backoffice-extension-helpers",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "author": "inwink",
5
5
  "license": "ISC",
6
6
  "description": "CLI pour bootstrapper, packager et vérifier les extensions backoffice inwink.",