Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some hard-coded paths #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

reccanti
Copy link

@reccanti reccanti commented Nov 18, 2022

Hello!

When I tried cloning and building this locally in a monorepo, I noticed that some of the hard-coded paths were breaking. Hoping this will fix some things so that running yarn build and yarn build:watch will work with a fresh clone.

I think some of the things here might be universally helpful:

  • removing the hard-coded webpack paths from the build and build:watch scripts, or
  • changing "typeRoots" paths to "types" listings).

Others might be more specific to my use-case:

  • Adding "allowSyntheticDefaultExports" needed to be added to get this working in our local monorepo, but didn't seem to be needed for a standalone clone. Adding it didn't seem to break the standalone clone build, though.

Anyway, happy to make any edits or take suggestions on this!

Blair Wilcox added 2 commits November 18, 2022 17:02
Removes some hard-coded paths that prevented compiling locally, or when
cloned into a monorepo
This seemed to be breaking things in our monorepo. Not sure why, but it
doesn't seem to break non-monorepo builds
@reccanti reccanti marked this pull request as ready for review November 18, 2022 22:28
@bgeisb
Copy link

bgeisb commented Jul 4, 2023

Nice fix @reccanti! This helped me a lot when trying to build the plugin locally. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants