Project Structure
package.json
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.8.0"
},
"devDependencies": {
"@nativescript/android": "~8.8.0",
"@nativescript/ios": "~8.8.0",
"@nativescript/types": "~8.8.0",
"@nativescript/webpack": "~5.0.0",
"typescript": "~5.5.0"
}
}
- Previous
- nativescript.config.ts
- Next
- references.d.ts