NativeScript / nx

NativeScript for Nx.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: What's the inner package json for.

ericaskari opened this issue · comments

Hi, we know that in Nx there will be only one package.json in root and only publishable libraries will have their own package.json after build.

What's the problem with defining those dependencies and devDependencies in root package.json?

can it be somehow configured inside workspace.json or project.json in newer versions?

I personally don't like it because it feels against rules and best practices.

{
  "name": "nsapp",
  "main": "./src/main.ts",
  "license": "SEE LICENSE IN <your-license-filename>",
  "version": "0.0.0",
  "scripts": {
    "postinstall": "node ./tools/postinstall.js"
  },
  "dependencies": {
    "@nativescript/core": "*"
  },
  "devDependencies": {
    "@nativescript/android": "~8.1.1",
    "@nativescript/ios": "~8.1.0"
  }
}

Screenshot 2022-01-12 at 10 06 27

.