Update server.mdx (#149)

Cleaner and more direct since it uses the system's chmod command directly rather than going through Node.js.
This commit is contained in:
Charl Kruger 2025-03-10 13:01:42 +02:00 • committed by GitHub
commit 482ba4b161
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -386,7 +386,7 @@ Update your package.json to add type: "module" and a build script:
"weather": "./build/index.js"
},
"scripts": {
"build": "tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"",
"build": "tsc && chmod 755 build/index.js",
},
"files": [
"build"