-
Notifications
You must be signed in to change notification settings - Fork 2
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
chore: build plugins with package #61
base: assemble-plugins
Are you sure you want to change the base?
chore: build plugins with package #61
Conversation
Hey @jarredkenny - I honestly hadn't put much thought into it. A plugins folder just seemed like a good approach when I first did it. Ideally, It would be best to setup an interface for accessing the Parkin internals, as this Maestro integration feels more like a separate plugin then part of the core repo. That said, it would take a bit to think through how it should work and to actually implement it. So in the mean time, I think how you have done it is fine for now. Unfortunately, the CI seems to be failing on an odd error. Assuming we can get the CI fixed, I'm happy to merge this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
The CI error seems like mixing CJS and ESM, not seeing this when building locally so perhaps related to node version. I don't want to pile too much on a PR, but you may benefit from moving from esbuild configs to tsup for shipping commonjs and ESM side by side. Looks like my editor wasn't picking up your prettier config either, I didn't realize it had reformatted some things. |
Quick demo of what that might look like here: https://github.com/lancetipton/parkin/pull/62/files |
Can you update the - name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.5.1
@jarredkenny - I cloned your branch, and updated the node version just to test it out. Looks like that fixed it. So it's definitely an issue
|
Not sure if this is how you planned on packaging plugins, but this at the very least has allowed me to link the package locally and import the Maestro plugin via:
import { Maestro } from "@ltipton/parkin/build/esm/plugins";