@deneb-ui/cli 2.0.78 → 2.0.80
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/bin/index.js +20 -0
- package/package.json +2 -2
package/bin/index.js
CHANGED
|
@@ -170,6 +170,26 @@ function packageCleanZip(sourceDir, outputPath) {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
// Preflight check: check if TypeScript catches undefined variables or SSR crashes
|
|
174
|
+
const tsconfigPath = path.join(sourceDir, 'tsconfig.json');
|
|
175
|
+
if (fs.existsSync(tsconfigPath)) {
|
|
176
|
+
try {
|
|
177
|
+
const { execSync } = require('child_process');
|
|
178
|
+
execSync('npx tsc --noEmit', { cwd: sourceDir, stdio: 'pipe' });
|
|
179
|
+
} catch (err) {
|
|
180
|
+
const out = (err.stdout?.toString() || '') + (err.stderr?.toString() || '');
|
|
181
|
+
if (out.trim()) {
|
|
182
|
+
console.warn('\n⚠️ [DENEB WARNING] TypeScript compiler detected errors in this storefront:');
|
|
183
|
+
const lines = out.trim().split('\n');
|
|
184
|
+
console.warn(' ' + lines.slice(0, 8).join('\n '));
|
|
185
|
+
if (lines.length > 8) {
|
|
186
|
+
console.warn(` ... and ${lines.length - 8} more errors.`);
|
|
187
|
+
}
|
|
188
|
+
console.warn('⚠️ CRITICAL: Undeclared variables and type errors break Next.js static pre-rendering ("Collecting page data") during portal preview warm-up!\n');
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
173
193
|
addFolder(sourceDir, '');
|
|
174
194
|
zip.writeZip(outputPath);
|
|
175
195
|
console.log(`\n✓ Successfully packaged clean template ZIP: ${outputPath}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deneb-ui/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.80",
|
|
4
4
|
"description": "Official DENEB CLI — scaffold, convert, validate, and package Fivora-ready storefront templates.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"deneb": "bin/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"license": "MIT",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/parser": "^7.28.0",
|
|
52
|
-
"@deneb-ui/core": "^2.0.
|
|
52
|
+
"@deneb-ui/core": "^2.0.80",
|
|
53
53
|
"@octokit/rest": "^22.0.1",
|
|
54
54
|
"adm-zip": "^0.6.0",
|
|
55
55
|
"dotenv": "^17.4.2",
|