mcp-macos 2.0.0 → 2.0.2
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.
|
@@ -54,7 +54,7 @@ function isCorrectProjectRoot(dir) {
|
|
|
54
54
|
try {
|
|
55
55
|
const packageContent = fs.readFileSync(packageJsonPath, 'utf8');
|
|
56
56
|
const packageData = JSON.parse(packageContent);
|
|
57
|
-
return packageData.name === 'macos
|
|
57
|
+
return packageData.name === 'mcp-macos';
|
|
58
58
|
}
|
|
59
59
|
catch {
|
|
60
60
|
return false;
|
package/package.json
CHANGED
package/scripts/build-swift.mjs
CHANGED
|
@@ -25,10 +25,15 @@ async function main() {
|
|
|
25
25
|
process.exit(1);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
// Use package root (not cwd) so this works during npm postinstall
|
|
29
|
+
const packageRoot = path.resolve(
|
|
30
|
+
new URL('.', import.meta.url).pathname,
|
|
31
|
+
'..',
|
|
32
|
+
);
|
|
33
|
+
const scriptDir = path.resolve(packageRoot, 'src', 'swift');
|
|
29
34
|
const sourceFile = path.join(scriptDir, 'EventKitCLI.swift');
|
|
30
35
|
const infoPlistFile = path.join(scriptDir, 'Info.plist');
|
|
31
|
-
const binDir = path.resolve(
|
|
36
|
+
const binDir = path.resolve(packageRoot, 'bin');
|
|
32
37
|
const outputFile = path.join(binDir, 'EventKitCLI');
|
|
33
38
|
|
|
34
39
|
try {
|