@taiga-ai/mcp-server 0.2.1-rc.132 → 0.2.2-dev.135
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/dist/index.js +0 -0
- package/package.json +1 -1
- package/scripts/prepare-publish.cjs +8 -1
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -6,12 +6,16 @@
|
|
|
6
6
|
* - Removes `private: true` so npm allows publishing
|
|
7
7
|
* - Sets publishConfig to public access
|
|
8
8
|
* - Strips workspace-only dependencies (@taiga/types is compile-time only)
|
|
9
|
+
* - Marks the bin entry executable. tsc emits dist/index.js with mode 0644,
|
|
10
|
+
* so without this `npx -y @taiga-ai/mcp-server` fails with EACCES because
|
|
11
|
+
* the kernel cannot exec a non-executable file regardless of the shebang.
|
|
9
12
|
*/
|
|
10
13
|
|
|
11
14
|
const fs = require('fs');
|
|
12
15
|
const path = require('path');
|
|
13
16
|
|
|
14
17
|
const pkgPath = path.join(__dirname, '..', 'package.json');
|
|
18
|
+
const binPath = path.join(__dirname, '..', 'dist', 'index.js');
|
|
15
19
|
|
|
16
20
|
try {
|
|
17
21
|
const raw = fs.readFileSync(pkgPath, 'utf8');
|
|
@@ -26,8 +30,11 @@ try {
|
|
|
26
30
|
|
|
27
31
|
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n', 'utf8');
|
|
28
32
|
console.log('prepare-publish: package.json updated');
|
|
33
|
+
|
|
34
|
+
fs.chmodSync(binPath, 0o755);
|
|
35
|
+
console.log('prepare-publish: dist/index.js marked executable');
|
|
29
36
|
} catch (err) {
|
|
30
|
-
console.error('prepare-publish: failed
|
|
37
|
+
console.error('prepare-publish: failed');
|
|
31
38
|
console.error(err.stack || err);
|
|
32
39
|
process.exit(1);
|
|
33
40
|
}
|