Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

295
Views
What is mean file:workspaces in package dependencies?

I try use npm 7 workspaces

"workspaces": {
    "packages": [
      "packages/apps/*",
      "packages/components",
    ],

and after install I see in my package.json

  "dependencies": {
    "@project/components": "file:workspaces/components",

Is it correct ? And what is mean file: ?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

https://github.com/ruanmartinelli/npm-workspaces-demo Check out this demo.I think this would clear your doubts

over 4 years ago · Santiago Trujillo Report

0

Workspaces is a generic term that refers to the set of features in the npm CLI that provides support to managing multiple packages from your local files system from within a singular top-level, root package.

For more details

Defining workspaces

Workspaces are usually defined via the workspaces property of the package.json file, e.g:

{
  "name": "my-workspaces-powered-project",
  "workspaces": [
    "workspace-a"
  ]
}

Given the above package.json example living at a current working directory . that contains a folder named workspace-a that itself contains a package.json inside it, defining a Node.js package, e.g:

.
+-- package.json
`-- workspace-a
   `-- package.json
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!