Skip to content

Remove some hard-coded paths#44

Open
blairwilcox wants to merge 2 commits intodestefanis:masterfrom
blairwilcox:build-locally
Open

Remove some hard-coded paths#44
blairwilcox wants to merge 2 commits intodestefanis:masterfrom
blairwilcox:build-locally

Conversation

@blairwilcox
Copy link

@blairwilcox blairwilcox 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
@blairwilcox blairwilcox 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