tutorialkit icon indicating copy to clipboard operation
tutorialkit copied to clipboard

CLI eject command fails in workspace

Open PhearZero opened this issue 1 year ago • 1 comments

Describe the bug

Running tutorialkit eject fails to resolve the @tutoriakit/astro package in a workspace

 ERROR  ~/withastro-astro-ru7fip/packages/tutorial/node_modules/@tutorialkit/astro does not exists!

Link to a StackBlitz project which shows the error

https://stackblitz.com/edit/withastro-astro-ru7fip

Steps to reproduce

  1. cd into ./packages/tutorial/
  2. npx tutorialkit eject

Expected behavior

Package is ejected into the workspace package

Screenshots

No response

Platform

  • TutorialKit version: 0.1.2
  • OS: Linux
  • Browser: NA
  • Version: NA

Additional context

Related to #235 but at different location:

https://github.com/stackblitz/tutorialkit/blob/745be37ef20ae97d6ded221fca24670742981879/packages/cli/src/commands/eject/index.ts#L152

PhearZero avatar Aug 20 '24 12:08 PhearZero