Skip to content

feature request: show package name in npm template tasks #436

@andrewnztg

Description

@andrewnztg

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

When reading npm scripts names from various package.json files, I would like to see the name of the package in the task title/description so I know to which package the command will apply.

Provide background

I have a javascript/typescript monorepo where I have tasks in multiple levels of package.json files (simplified for this example):

/ 
  - package.json   <-- (root) some scripts here
  - project1
      / package.json   <-- (project1) also some scripts here
  - project2
      / package.json  <-- (project2) also some scripts here

If I open the task runner dialog from a file in project1 , I see tasks from both the root and project1 package.json files (which is correct). In my case, the scripts have similar names and I can't differentiate between the two.

Example:

Image

What I'd like to see: (Note: "katipolt" is the name of my root module and is retrieved from package.json name field. The first few commands actually come from tasks.json which makes things even more confusing)

Image

Another example with multiple packages: (Note: "katipolt" and "katipolt-ui" are the modules names specified in package.json name field):

Image

What is the significance of this feature?

strongly desired

Additional details

I have hacked together a fix and I can submit it as a PR if the idea is accepted in principle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions