ONEARMY / community-platform

A platform to build useful communities that aim to tackle global problems
https://platform.onearmy.earth
MIT License
1.07k stars 357 forks source link

[bug] New Component builder broken #3718

Open benfurber opened 4 days ago

benfurber commented 4 days ago

Describe the bug The command to build a new component errors.

To Reproduce Steps to reproduce the behaviour:

  1. Go to 'packages/component'
  2. In the terminal type yarn new-component WhateverName
  3. See error:
    TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for <path>/community-platform/packages/components/scripts/newComponent.ts

Expected behaviour For the component, story file and test file to be generated.