Skip to content

kernel tarball includes dist/__tests__/ test files #327

@jithinraj

Description

@jithinraj

Problem

@peac/kernel@0.10.9 tarball includes 4 test files in dist/__tests__/:

  • http.test.js
  • http.test.d.ts
  • http.test.d.ts.map
  • http.test.js.map

The files field in packages/kernel/package.json is ["dist", "README.md"] which includes all of dist/ including compiled test output.

Fix

Either:

  1. Exclude test output from dist/ via tsconfig (preferred -- set outDir to exclude test files)
  2. Or narrow the files field: ["dist/**/*.js", "dist/**/*.d.ts", "!dist/__tests__", "README.md"]

Found during

v0.10.9 post-release tarball hygiene spot-check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions