Skip to content

[JS] pnpm hints that package exports are in the incorrect order #1589

@inlined

Description

@inlined

Describe the bug
pnpm build warns about our ordering of the exports fields

To Reproduce
Run pnpm build

Expected behavior
Clean build

Screenshots
Build produces warnings such as:

plugins/pinecone build$ npm-run-all build:clean check compile
[8 lines collapsed]
[1 lines collapsed]
│          ╵       ~~~~~~~
│   The "import" condition comes earlier and will be used for all "import" statements:
│     package.json:51:6:
│       51 │       "import": "./lib/index.mjs",
│          ╵       ~~~~~~~~
│   The "require" condition comes earlier and will be used for all "require" calls:
│     package.json:50:6:
│       50 │       "require": "./lib/index.js",
│          ╵       ~~~~~~~~~
│   The "import" condition comes earlier and will be used for all "import" statements:

Runtime (please complete the following information):

  • OS: MacOS
  • Version 14.7.2

** Node version

  • 20.11.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingjs

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions