Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exports in package.json differ between npm and repo #6

Open
bartosz-dude opened this issue Nov 5, 2024 · 0 comments
Open

exports in package.json differ between npm and repo #6

bartosz-dude opened this issue Nov 5, 2024 · 0 comments

Comments

@bartosz-dude
Copy link

"exports" in package.json are different between repo and npm, which makes typescript not recognize types correctly.

"exports" from npm package

  "exports": {
    ".": {
      "solid": "./dist/source/index.js",
      "import": "./dist/esm/index.js",
      "browser": {
        "import": "./dist/esm/index.js",
        "require": "./dist/cjs/index.cjs"
      },
      "require": "./dist/cjs/index.cjs",
      "node": "./dist/cjs/index.cjs"
    }
  },

"exports" from repo

  "exports": {
    ".": {
      "solid": "./dist/source/index.js",
      "import": {
        "types": "./dist/types/index.d.ts",
        "default": "./dist/esm/index.js"
      },
      "browser": {
        "import": {
          "types": "./dist/types/index.d.ts",
          "default": "./dist/esm/index.js"
        },
        "require": {
          "types": "./dist/types/index.d.ts",
          "default": "./dist/cjs/index.cjs"
        }
      },
      "require": {
        "default": "./dist/cjs/index.cjs",
        "types": "./dist/types/index.d.ts"
      },
      "node": {
        "default": "./dist/cjs/index.cjs",
        "types": "./dist/types/index.d.ts"
      }
    }
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant