create-snapify-app 1.1.0 → 1.1.1

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/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "create-snapify-app",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Installe Snapify (CMS complet : backend + frontend) : npx create-snapify-app@latest",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "NOVALABS WEB DESIGN <contact@novalabs.tn> (https://novalabs.tn)",
7
7
  "homepage": "https://snapify.tn",
8
- "bugs": { "email": "contact@novalabs.tn" },
8
+ "bugs": {
9
+ "email": "contact@novalabs.tn"
10
+ },
9
11
  "keywords": [
10
12
  "snapify",
11
13
  "cms",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "package": "create-snapify-app",
3
- "version": "1.1.0",
4
- "packedAt": "2026-11-07T14:01:09.199Z"
3
+ "version": "1.1.1",
4
+ "packedAt": "2026-11-07T14:06:32.999Z"
5
5
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "snapify",
3
3
  "private": true,
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "NOVALABS WEB DESIGN <contact@novalabs.tn>",
7
7
  "type": "module",
@@ -87,11 +87,34 @@ async function main() {
87
87
  await fs.rm(npmEnv.NPM_CONFIG_USERCONFIG, { force: true }).catch(() => undefined);
88
88
  }
89
89
  }
90
- console.log(
91
- dryRun
92
- ? '✔ Contrôle terminé : rien n’a été publié'
93
- : `✔ Publié : https://www.npmjs.com/package/${pkg.name}\n Install : npx create-snapify-app@latest`,
94
- );
90
+ if (dryRun) {
91
+ console.log('✔ Contrôle terminé : rien n’a été publié');
92
+ return;
93
+ }
94
+
95
+ // Vérifie que la version est bien sur le registre (évite faux ✔ après placeholder 0.0.0-stage)
96
+ let confirmed = '';
97
+ for (let i = 0; i < 8; i++) {
98
+ await new Promise((r) => setTimeout(r, i === 0 ? 1500 : 2500));
99
+ try {
100
+ confirmed = execFileSync('npm', ['view', `${pkg.name}@${pkg.version}`, 'version'], {
101
+ cwd: ROOT,
102
+ encoding: 'utf8',
103
+ env: npmEnv,
104
+ stdio: ['ignore', 'pipe', 'ignore'],
105
+ }).trim();
106
+ } catch {
107
+ confirmed = '';
108
+ }
109
+ if (confirmed === pkg.version) break;
110
+ console.log(`• Attente indexation npm… (${i + 1}/8)`);
111
+ }
112
+ if (confirmed !== pkg.version) {
113
+ throw new Error(
114
+ `npm a renvoyé un succès local mais ${pkg.name}@${pkg.version} est introuvable sur le registre (souvent un placeholder 0.0.0-stage). Relancez avec --otp <code>.`,
115
+ );
116
+ }
117
+ console.log(`✔ Publié et confirmé : https://www.npmjs.com/package/${pkg.name}\n Install : npx create-snapify-app@latest`);
95
118
  }
96
119
 
97
120
  main().catch((e) => {