- 
                Notifications
    
You must be signed in to change notification settings  - Fork 10
 
Open
Description
My "start" script is tsx src/index.ts so I tried the following:
# ser create --name jewel --start --enable --interpreter $(which pnpm) start
# ser create --name jewel --start --enable --interpreter $PWD/node_modules/.bin/tsx src/index.ts
The first was me hoping it didnt check if the file was real, but it does so that "hack" didnt work.
The second didn't work because tsx's hashbang gets node from the env, which doesn't exist til ~/.bashrc is ran.
I suggest there should be a builtin way to do package.json scripts as services, or the even more abstractly any command.
Until then my workaround is to make an executable:  this did not work either lolprintf '#!'$(which bash)'\npnpm start\n'
Metadata
Metadata
Assignees
Labels
No labels