NativeScript / nx

NativeScript for Nx.
Other
61 stars 15 forks source link

Question: What's the inner package json for. #45

Closed ericaskari closed 2 years ago

ericaskari commented 2 years ago

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

.

JakeAi commented 2 years ago

https://github.com/NativeScript/nx#known-issues