stackblitz / tutorialkit

TutorialKit by StackBlitz - Create interactive tutorials powered by the WebContainer API
https://tutorialkit.dev
MIT License
460 stars 43 forks source link

CLI eject command fails in workspace #269

Open PhearZero opened 2 months ago

PhearZero commented 2 months ago

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

Additional context

Related to #235 but at different location:

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

stackblitz[bot] commented 2 months ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.