Preview 2.0 is now in Public Beta!
Read the Announcement
Note: You are on the beta version of our docs. This is a work in progress and may contain broken links and pages.

The package.json contains a list of dependencies, scripts and the entry point to your app (in the main field). Learn more on the NPM docs

Note

NativeScript plugins should always be installed as dependencies, because NativeScript doesn't include native code from devDependencies.

json
{
  "name": "my-cool-app",
  "main": "src/main.ts",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@nativescript/core": "~8.5.0"
  },
  "devDependencies": {
    "@nativescript/android": "8.5.0",
    "@nativescript/ios": "8.5.0",
    "@nativescript/types": "~8.5.0",
    "@nativescript/webpack": "~5.0.10",
    "typescript": "~4.5.5"
  }
}