-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use $npm_package variables #115
Comments
Unfortunately In the meantime, you can explicitly pass the version as environment variable, but you have to use a sightly different notation: "scripts": {
"start": "node ${VERSION}"
} Or alternatively, you can run the script via "scripts": {
"start": "npm run boot",
"boot": "node $npm_package_main"
} |
Thanks. I've wrapped my start script as in your second example and it works perfectly. |
Great! I've created another issue as feature request for |
I know it's a bit late, but for further Windows devs: If you're on Windows, you must wrap your npm_package_whatever with % In the given case, the script
would become:
|
nar
is a really great project and I would like to use it to deploy my apps, but I'm experiencing a problem with mypackage.json
.I use to write my
package.json
like this:npm start
works, but if I create an executable withnar create --executable
and run it, I will get the following error:The start script isn't able to recognize
package.json
variables.Is there a way to achieve this ?
The text was updated successfully, but these errors were encountered: