Skip to content

Commit cddb690

Browse files
committed
fix: add postbuild script to make compiled binary executable
The npm package binary was not working because the compiled JavaScript file lacked execute permissions. Added postbuild script to chmod +x the output binary after TypeScript compilation.
1 parent 38d07b2 commit cddb690

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"scripts": {
2222
"prebuild": "npm run clean",
2323
"build": "tsc --incremental false --declaration --declarationMap --outDir dist",
24+
"postbuild": "chmod +x dist/bin/tcx2webvtt.js",
2425
"clean": "del-cli *.tsbuildinfo coverage dist",
2526
"lint": "eslint *.ts src",
2627
"lint:fix": "npm run lint -- --fix",

0 commit comments

Comments
 (0)