fivem-typescript-boilerplate icon indicating copy to clipboard operation
fivem-typescript-boilerplate copied to clipboard

Npx should be precise in package.json for Linux environnement

Open MehdiBenbahri opened this issue 1 year ago • 0 comments

Hi there,

I have deploy you boilerplate in a fresh ubuntu server. When i ran npm run build the console goes Brrrr, and an error occured (unexped token '('... ).

This error was here because in the package.json, in the "typecheck" script, tsc is called directly, to avoid other issue i suggest you should change this script from :

"typecheck": "tsc --noEmit -p client/tsconfig.json && tsc --noEmit -p server/tsconfig.json", to "typecheck": "npx tsc --noEmit -p client/tsconfig.json && npx tsc --noEmit -p server/tsconfig.json",

This change assures us that it will call tsc correctly and then build everything correctly. Don't forget by default that those who made Linux are not like us, they will always make something that works but without any ergonomics.

Hoping to help you, and thank you again for your boilerplate.

MehdiBenbahri avatar Oct 04 '23 13:10 MehdiBenbahri