Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build using app specific package.json #270

Open
LucasMontero opened this issue Jan 9, 2024 · 2 comments
Open

Unable to build using app specific package.json #270

LucasMontero opened this issue Jan 9, 2024 · 2 comments

Comments

@LucasMontero
Copy link

I have a NX file structure that looks like the following:

workspace-name/
├── apps/
│ ├── electron-app-1/
│ │ ├── ...
│ │ ├── package.json # Package manifest for Electron app 1
│ ├── electron-app-1-front/
│ │ ├── ...
│ ├── electron-app-2/
│ │ ├── ...
│ │ ├── package.json # Package manifest for Electron app 2
│ ├── electron-app-2-front/
│ │ ├── ...
│ ├── ...
│ └── package.json # Main package json (Dependencies, scripts...)

All works with normality but when I build each app, info like name, description... comes from the main package.json instead of the specific ones that I set for every app.

This means that, for example, when I try to access the UserData path on Electron, the folder that will be created is one with the name specified in the main package.json but I would need them to be called as the name that I specify on the package.json inside each app.

How could I set them to be build using the correct data from each package.json?

Related #228

@mohasarc
Copy link

I'm facing a similar issue. Although I've generated a separate package.json into dist/apps/electron-app, and it is infact eventually bundled with the app. Yet, while packaging or making the app the root's package.json is being used for description, version or author fields.

@samthompsonkennedy
Copy link

We're having the same issue as well, nx v17.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants