Skip to content

[BUG] npm-template-check should tell us if templated files have the wrong content #39

@nlf

Description

@nlf

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

if a templated file is manually edited, npm-template-check won't notice (except for the package.json and .gitignore)

Expected Behavior

we should receive an error and the check should fail if other templated files (i.e. ci workflows, eslint config, etc) do not match what they should

Steps To Reproduce

  1. mkdir foo && cd foo && npm init -y
  2. npm i -D @npmcli/template-oss
  3. echo "" >> .github/actions/ci.yml
  4. npm run lint
  5. observe there is no error, despite the ci.yml having a change from the template

Environment

  • npm: 8.4.0
  • Node: 16.13.2
  • OS: osx
  • platform: M1 Macbook Pro

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions