Replies: 2 comments
-
This is not a feature we have, but could be added, I've filed an issue. The best thing I can think of is generating a "variables.tsp" out of band that you import into your spec. |
Beta Was this translation helpful? Give feedback.
0 replies
-
thanks! simplest templating I could come up with without adding any new tooling: "variables": "printf 'alias Version = \"%s\";\n' $npm_package_version > variables.tsp", npm run variables
cat variables.tsp
alias Version = "1.0.1"; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I for example, want to pass a version into my service definition
I can get the value into an env var, a cli flag, even a .js file, but I haven't been able to figure out how to import/ interpolate it into the tsp file.
Beta Was this translation helpful? Give feedback.
All reactions