Skip to content

Babel removes test files from src directory after building #163

Description

@MichaelDeBoey
  • kcd-scripts version: 6.6.0
  • node version: 14.14.0
  • npm version: 6.14.8

Relevant code or config

$ kcd-scripts build --out-dir .

What you did:
Run npm run build in the root of the project

What happened:
src/__tests__/gatsby-node.js was deleted

Reproduction repository:
https://github.com/MichaelDeBoey/gatsby-plugin-pinterest/tree/support-pluginOptionsSchema

Problem description:
When implementing gatsby-uc/gatsby-plugin-pinterest#15 and running npm run build or npm run validate in the root of the project, src/__tests__/gatsby-node.js was deleted.

Suggested solution:
Investigation needed 🤔

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions