withWorkPubspec method

Entrypoint withWorkPubspec(
  1. Pubspec pubspec
)

Creates an entrypoint at the same location, that will use pubspec for resolution of the workPackage.

Implementation

Entrypoint withWorkPubspec(Pubspec pubspec) {
  return withUpdatedRootPubspecs({workPackage: pubspec});
}