EDIT
pub install
was renamed to pub get
(pub install
is still available as an undocumented alias for pub get
)
EDIT
pub install
solves this issue by creating additionalpackages
directories that link to the mainpackages
directory at the root of your package. It assumes your package is laid out according to the package layout guide, and creates a linkedpackages
directory inbin/
,test/
, andexample/
, as well as their subdirectories
Dart Editor
If you are using the Dart Editor it can automaticly create a directory link to the main package folder.
You need to choose "Pub Install" from the context menu on the pubspec.yaml
file in the Files view.
Command Line
If you want to create the directory from the command line you can use the pub install
command. You need to run it in the directory of your pubspec.yaml
file.
PS: Take a look at the Package layout conventions for Dart packages. They recommend to use the bin
folder for standalone Dart applications.