Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrive data from package.json

Mai Nakagome
January 16, 2023

I'm developing the Forge app, and now I would like to display which version of the app is currently deployed on one of the app screens.

I though I can utilize package.json since the version is written in it, but just importing package.json didn't work. (I could not deploy the forge app with the code `import { version  } from "../package.json."`.)

I appreciate if anyone can help me and explain the best practice to retrieve data from package.json as well as to display the app version.

 

1 answer

0 votes
Mai Nakagome
January 19, 2023

Sorry I could import version with the statement of `import { version  } from "../package.json."`.)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events