next-lovable 0.0.74 → 0.0.77
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/next-lovable +19 -7
- package/dist/next-lovable-linux +0 -0
- package/dist/next-lovable-linux-arm64 +0 -0
- package/dist/next-lovable-macos +0 -0
- package/dist/next-lovable-macos-arm +0 -0
- package/dist/next-lovable-win-arm64.exe +0 -0
- package/dist/next-lovable-win.exe +0 -0
- package/package.json +16 -4
package/bin/next-lovable
CHANGED
|
@@ -10,11 +10,11 @@ const platform = os.platform();
|
|
|
10
10
|
const arch = os.arch(); // 'x64', 'arm64', etc.
|
|
11
11
|
|
|
12
12
|
if (platform === 'win32') {
|
|
13
|
-
binName = 'next-lovable-win.exe';
|
|
13
|
+
binName = arch === 'arm64' ? 'next-lovable-win-arm64.exe' : 'next-lovable-win.exe';
|
|
14
14
|
} else if (platform === 'darwin') {
|
|
15
15
|
binName = arch === 'arm64' ? 'next-lovable-macos-arm' : 'next-lovable-macos';
|
|
16
16
|
} else if (platform === 'linux') {
|
|
17
|
-
binName = 'next-lovable-linux';
|
|
17
|
+
binName = arch === 'arm64' ? 'next-lovable-linux-arm64' : 'next-lovable-linux';
|
|
18
18
|
} else {
|
|
19
19
|
console.error(`❌ Unsupported platform: ${platform}`);
|
|
20
20
|
process.exit(1);
|
|
@@ -23,18 +23,25 @@ if (platform === 'win32') {
|
|
|
23
23
|
const binPath = path.resolve(__dirname, '..', 'dist', binName);
|
|
24
24
|
|
|
25
25
|
try {
|
|
26
|
-
fs.accessSync(binPath, fs.constants.
|
|
26
|
+
fs.accessSync(binPath, fs.constants.F_OK);
|
|
27
27
|
} catch (err) {
|
|
28
|
-
|
|
28
|
+
console.error(`❌ Binary not found: ${binPath}`);
|
|
29
|
+
console.error(`Platform: ${platform}, Architecture: ${arch}`);
|
|
30
|
+
console.error(`Expected binary: ${binName}`);
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Make binary executable on Unix-like systems
|
|
35
|
+
if (platform !== 'win32') {
|
|
36
|
+
try {
|
|
37
|
+
fs.accessSync(binPath, fs.constants.X_OK);
|
|
38
|
+
} catch (err) {
|
|
29
39
|
try {
|
|
30
40
|
fs.chmodSync(binPath, 0o755);
|
|
31
41
|
} catch (chmodErr) {
|
|
32
42
|
console.error(`❌ Failed to make binary executable: ${chmodErr.message}`);
|
|
33
43
|
process.exit(1);
|
|
34
44
|
}
|
|
35
|
-
} else {
|
|
36
|
-
console.error(`❌ Binary not accessible: ${err.message}`);
|
|
37
|
-
process.exit(1);
|
|
38
45
|
}
|
|
39
46
|
}
|
|
40
47
|
|
|
@@ -43,5 +50,10 @@ const child = spawn(binPath, process.argv.slice(2), {
|
|
|
43
50
|
});
|
|
44
51
|
|
|
45
52
|
child.on('close', (code) => process.exit(code));
|
|
53
|
+
child.on('error', (error) => {
|
|
54
|
+
console.error(`❌ Failed to start binary: ${error.message}`);
|
|
55
|
+
process.exit(1);
|
|
56
|
+
});
|
|
57
|
+
|
|
46
58
|
process.on('SIGINT', () => child.kill('SIGINT'));
|
|
47
59
|
process.on('SIGTERM', () => child.kill('SIGTERM'));
|
package/dist/next-lovable-linux
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/next-lovable-macos
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-lovable",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.77",
|
|
4
4
|
"description": "Cross-platform tool to migrate Lovable React projects to Next.js with credit-free single file conversion",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"homepage": "https://nextlovable.com",
|
|
@@ -23,11 +23,13 @@
|
|
|
23
23
|
"next-lovable": "./bin/next-lovable"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
|
-
"bin/next-lovable
|
|
26
|
+
"bin/next-lovable",
|
|
27
27
|
"dist/next-lovable-linux",
|
|
28
|
+
"dist/next-lovable-linux-arm64",
|
|
28
29
|
"dist/next-lovable-macos",
|
|
29
30
|
"dist/next-lovable-macos-arm",
|
|
30
|
-
"dist/next-lovable-win.exe"
|
|
31
|
+
"dist/next-lovable-win.exe",
|
|
32
|
+
"dist/next-lovable-win-arm64.exe"
|
|
31
33
|
],
|
|
32
34
|
"keywords": [
|
|
33
35
|
"next.js",
|
|
@@ -38,7 +40,17 @@
|
|
|
38
40
|
"tailwind",
|
|
39
41
|
"cross-platform"
|
|
40
42
|
],
|
|
41
|
-
"author":
|
|
43
|
+
"author": {
|
|
44
|
+
"name": "Chiheb Nabil",
|
|
45
|
+
"company": "Remote Skills Ltd"
|
|
46
|
+
},
|
|
47
|
+
"contributors": [
|
|
48
|
+
{
|
|
49
|
+
"name": "Chiheb Nabil",
|
|
50
|
+
"email": "hi@remoteskills.io",
|
|
51
|
+
"company": "Remote Skills Ltd"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
42
54
|
"license": "ISC",
|
|
43
55
|
"dependencies": {
|
|
44
56
|
"@sentry/node": "^9.17.0",
|