Skip to content

Modify Workspace Detection #116

Description

@wsandersvc

Current configuration

const workspaces = require(commander_plus_1.default.folder + '/package.json').workspaces.packages;

Should be

const workspaces = require(commander_plus_1.default.folder + '/package.json').workspaces;
if (workspaces && 'packages' in workspaces) {
    workspaces = workspaces.packages
}

To handle cases where package.json contains the following with implict packages

"workspaces": [
  ".",
  "amplify/backend/function/**/src"
],

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions