Skip to content

AreTheTypesWrong (attw) integration doesn't work with publishConfig / devExports #733

@michaelfaith

Description

@michaelfaith

Reproduction link or steps

When using attw in combination with pnpm publishConfig, it's not using the exports from the publishConfig value. The build works fine without that integration (with exports.devExports set to true). But attw fails.

{
  "exports": {
    ".": "./src/index.ts"
  },
  "publishConfig": {
    "access": "public",
    "exports": {
      ".": {
        "types": "./lib/index.d.ts",
        "default": "./lib/index.js"
      }
    }
  }
}

What is expected?

It should use the exports values from publishConfig.

What is actually happening?

screenshot
 ERROR  [@flint.fyi/astro] [attw] problems found:
  ❌ No resolution (node16-esm) at @flint.fyi/astro
  ❌ No resolution (bundler) at @flint.fyi/astro

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions