ts-loader icon indicating copy to clipboard operation
ts-loader copied to clipboard

Cannot reference parent yarn workspace g:ts-node script

Open aboe026 opened this issue 3 years ago • 0 comments

Expected Behaviour

I can use parent yarn workspace ts-node with the g:ts-node syntax as outlined in https://yarnpkg.com/getting-started/qa#how-to-share-scripts-between-workspaces so I do not need to list the ts-node as a direct dependency of the child workspace that is doing the webpack compilation

Actual Behaviour

I am forced to create a duplicate dependency on ts-node in the child yarn workspace

Steps to Reproduce the Problem

Have a root/parent yarn workspace with the ts-node devDependency and add a "g:ts-node": "cd $INIT_CWD && ts-node" script so g:ts-node can be used from any child yarn workspace. Create a child yarn workspace and set it up to compile webpack with ts-node. There is no way to use the g:ts-node.

Location of a Minimal Repository that Demonstrates the Issue.

aboe026 avatar Sep 24 '22 18:09 aboe026