Skip to content

"exports" field does not have types, and that results in a package being untyped #460

@talentlessguy

Description

@talentlessguy

./esm/spektr.js path leads to nowhere

Config:

{
  "name": "spektr",
  "description": "Elegant CLI framework.",
  "repository": {
    "type": "git",
    "url": "https://github.com/StauroDEV/spektr.git"
  },
  "license": "Apache-2.0",
  "bugs": {
    "url": "https://github.com/StauroDEV/spektr/issues"
  },
  "module": "./esm/spektr.js",
  "exports": {
    ".": {
      "import": "./esm/spektr.js"
    },
    "./plugins/color.js": {
      "import": "./esm/plugins/color.js"
    }
  },
  "publishConfig": {
    "access": "public"
  },
  "dependencies": {
    "picocolors": "^1.1.1",
    "table": "^6.8.1",
    "type-detect": "^4.1.0"
  },
  "devDependencies": {
    "@types/node": "latest",
    "@types/type-detect": "^4.0.3"
  },
  "_generatedBy": "dnt@dev",
  "packageManager": "pnpm@10.1.0+sha512.c89847b0667ddab50396bbbd008a2a43cf3b581efd59cf5d9aa8923ea1fb4b8106c041d540d08acb095037594d73ebc51e1ec89ee40c88b30b8a66c0fae0ac1b"
}

Result package.json:

{
  "name": "spektr",
  "description": "Elegant CLI framework.",
  "repository": {
    "type": "git",
    "url": "https://github.com/StauroDEV/spektr.git"
  },
  "license": "Apache-2.0",
  "bugs": {
    "url": "https://github.com/StauroDEV/spektr/issues"
  },
  "module": "./esm/spektr.js",
  "exports": {
    ".": {
      "import": "./esm/spektr.js"
    },
    "./plugins/color.js": {
      "import": "./esm/plugins/color.js"
    }
  },
  "publishConfig": {
    "access": "public"
  },
  "dependencies": {
    "picocolors": "^1.1.1",
    "table": "^6.8.1",
    "type-detect": "^4.1.0"
  },
  "devDependencies": {
    "@types/node": "latest",
    "@types/type-detect": "^4.0.3"
  },
  "_generatedBy": "dnt@dev",
  "packageManager": "pnpm@10.1.0+sha512.c89847b0667ddab50396bbbd008a2a43cf3b581efd59cf5d9aa8923ea1fb4b8106c041d540d08acb095037594d73ebc51e1ec89ee40c88b30b8a66c0fae0ac1b"
}

https://publint.dev/spektr@0.1.5

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