I have created an express app using the express-generator
like this: express work-callendar
.I haven't changed anything.Now I want to pack it using the pkg command so I created the following script in my package.json
"package":"pkg .-t latest-linux-x64 -o ./app ./app.js"
However when I run that script I get the following error
Not more than one entry file/directory is expected
Any ideas how can I resolve it?
Here is my package.json:
{
"name": "work-calendar",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www",
"package":"pkg .-t latest-linux-x64 -o ./app ./app.js"
},
"dependencies": {
"body-parser": "~1.18.2",
"cookie-parser": "~1.4.3",
"debug": "~2.6.9",
"express": "~4.15.5",
"morgan": "~1.9.0",
"pug": "2.0.0-beta11",
"serve-favicon": "~2.4.5"
},
"devDependencies": {
"pkg": "^4.3.1"
}
Let me know if I should add anything more to the question