Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

297
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda