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

normalizedGlob does not find the path to the package nested in the directory #170

Closed
JSProto opened this issue Oct 26, 2023 · 0 comments
Closed

Comments

@JSProto
Copy link

JSProto commented Oct 26, 2023

I have a monorepository with the nx library.
packages of different projects are in separate directories.

libs/
   project1/
      mypackage
   project2/
       otherpackage

when I create a package through the nx console, its name in libs/project2/otherpackage/package.json looks like project2-otherpackage

{
  "name": "project2-otherpackage",
  "$schema": "../../../node_modules/nx/schemas/project-schema.json",
  "projectType": "library",

https://github.com/ngneat/transloco-keys-manager/blob/9affd8edebdf3520c9f499b73de88325d8ca7506/src/utils/resolve-project-base-path.ts#L48
because of this projectName - normalizedGlob does not find the path to the package nested in the directory

If you manually change the name to project2/otherpackage then everything works.

{
  "name": "project2/otherpackage",
  "$schema": "../../../node_modules/nx/schemas/project-schema.json",
  "projectType": "library",

can this be fixed?

@JSProto JSProto closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2023
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

1 participant