Skip to content

postinstall.mjs missing from published npm package; || true breaks on Windows #1

Description

@ElSirGuti

Two bugs in the published oc-anthropic-multi-account@1.0.17 package:

  1. postinstall.mjs not included — The scripts.postinstall runs node postinstall.mjs, but postinstall.mjs is not listed in the files field of package.json (only dist and README.md are). The file doesn't exist in the installed package, causing a MODULE_NOT_FOUND error.
  2. || true is POSIX-only — The postinstall script uses node postinstall.mjs || true. On Windows CMD, true is not a valid command. This should use a cross-platform alternative like || node -e "0" or || echo ok.
    Fix: Either include postinstall.mjs in the files array or inline the postinstall logic directly in the script field (or remove it if it's only needed during development).

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions