45 lines
942 B
Markdown
45 lines
942 B
Markdown
# Interface: ProjectGraphExternalNode
|
|
|
|
A node describing an external dependency
|
|
`name` has as form of:
|
|
|
|
- `npm:packageName` for root dependencies or
|
|
- `npm:packageName@version` for nested transitive dependencies
|
|
|
|
This is vital for our node discovery to always point to root dependencies,
|
|
while allowing tracking of the full tree of different nested versions
|
|
|
|
## Table of contents
|
|
|
|
### Properties
|
|
|
|
- [data](../../devkit/documents/ProjectGraphExternalNode#data): Object
|
|
- [name](../../devkit/documents/ProjectGraphExternalNode#name): `npm:${string}`
|
|
- [type](../../devkit/documents/ProjectGraphExternalNode#type): "npm"
|
|
|
|
## Properties
|
|
|
|
### data
|
|
|
|
• **data**: `Object`
|
|
|
|
#### Type declaration
|
|
|
|
| Name | Type |
|
|
| :------------ | :------- |
|
|
| `hash?` | `string` |
|
|
| `packageName` | `string` |
|
|
| `version` | `string` |
|
|
|
|
---
|
|
|
|
### name
|
|
|
|
• **name**: \`npm:${string}\`
|
|
|
|
---
|
|
|
|
### type
|
|
|
|
• **type**: `"npm"`
|