Search
Preparing search index...
The search index is not available
Yarn API
Home
Configuration
Features
CLI
Advanced
GitHub
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
plugin-constraints
Constraints
Globals
{"Generic Packages":{"@yarnpkg/core":"yarnpkg_core","@yarnpkg/fslib":"yarnpkg_fslib","@yarnpkg/libzip":"yarnpkg_libzip","@yarnpkg/nm":"yarnpkg_nm","@yarnpkg/parsers":"yarnpkg_parsers","@yarnpkg/pnp":"yarnpkg_pnp","@yarnpkg/pnpify":"yarnpkg_pnpify","@yarnpkg/sdks":"yarnpkg_sdks","@yarnpkg/shell":"yarnpkg_shell"},"Yarn Packages":{"@yarnpkg/builder":"yarnpkg_builder","@yarnpkg/cli":"yarnpkg_cli"},"Default Plugins":{"@yarnpkg/plugin-compat":"plugin_compat","@yarnpkg/plugin-dlx":"plugin_dlx","@yarnpkg/plugin-essentials":"plugin_essentials","@yarnpkg/plugin-file":"plugin_file","@yarnpkg/plugin-git":"plugin_git","@yarnpkg/plugin-github":"plugin_github","@yarnpkg/plugin-http":"plugin_http","@yarnpkg/plugin-init":"plugin_init","@yarnpkg/plugin-link":"plugin_link","@yarnpkg/plugin-nm":"plugin_nm","@yarnpkg/plugin-npm":"plugin_npm","@yarnpkg/plugin-npm-cli":"plugin_npm_cli","@yarnpkg/plugin-pack":"plugin_pack","@yarnpkg/plugin-patch":"plugin_patch","@yarnpkg/plugin-pnp":"plugin_pnp"},"Contrib Plugins":{"@yarnpkg/plugin-constraints":"plugin_constraints","@yarnpkg/plugin-exec":"plugin_exec","@yarnpkg/plugin-interactive-tools":"plugin_interactive_tools","@yarnpkg/plugin-stage":"plugin_stage","@yarnpkg/plugin-typescript":"plugin_typescript","@yarnpkg/plugin-version":"plugin_version","@yarnpkg/plugin-workspace-tools":"plugin_workspace_tools"}}
Class Constraints
Hierarchy
Constraints
Implements
Engine
Constructors
constructor
Properties
project
source
Accessors
fullSource
Methods
createSession
genEnforcedDependencies
genEnforcedFields
getDeclarations
getProjectDatabase
process
processClassic
query
find
Constructors
constructor
new
Constraints
(
project
:
Project
)
:
Constraints
Parameters
project:
Project
Returns
Constraints
Properties
project
project
:
Project
source
source
:
string
= ``
Accessors
full
Source
get
fullSource
(
)
:
string
Returns
string
Methods
Private
create
Session
create
Session
(
)
:
Session
Returns
Session
Private
gen
Enforced
Dependencies
gen
Enforced
Dependencies
(
session
:
Session
)
:
Promise
<
object
[]
>
Parameters
session:
Session
Returns
Promise
<
object
[]
>
Private
gen
Enforced
Fields
gen
Enforced
Fields
(
session
:
Session
)
:
Promise
<
object
[]
>
Parameters
session:
Session
Returns
Promise
<
object
[]
>
get
Declarations
get
Declarations
(
)
:
string
Returns
string
get
Project
Database
get
Project
Database
(
)
:
string
Returns
string
process
process
(
)
:
Promise
<
constraintUtils.ProcessResult
>
Returns
Promise
<
constraintUtils.ProcessResult
>
process
Classic
process
Classic
(
)
:
Promise
<
object
>
Returns
Promise
<
object
>
query
query
(
query
:
string
)
:
AsyncGenerator
<
object
,
void
,
unknown
>
Parameters
query:
string
Returns
AsyncGenerator
<
object
,
void
,
unknown
>
Static
find
find
(
project
:
Project
)
:
Promise
<
Constraints
>
Parameters
project:
Project
Returns
Promise
<
Constraints
>
plugin-
constraints
"@yarnpkg/core"
Dependency
Type
Constraints
constructor
project
source
full
Source
create
Session
gen
Enforced
Dependencies
gen
Enforced
Fields
get
Declarations
get
Project
Database
process
process
Classic
query
find
Constraints
Check
Command
Constraints
Query
Command
Constraints
Source
Command
Index
Modern
Engine
Session
Engine
Enforced
Dependency
Enforced
Field
Process
Result
DEPENDENCY_
TYPES
identifier
Reg
Exp
is
Atom
is
Instantiated
List
is
Variable
known
Dict
Keys
number
Reg
Exp
projects
tau
Module
apply
Engine
Report
escape
extract
Error
extract
Error
Impl
format
Stack
Line
get
Line
Prefix
get
Project
is
Known
Dict
link
Project
ToSession
normalize
Path
parse
Link
parse
Link
ToJson
prepend
Goals
value
ToString
plugin
Generated using
TypeDoc