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

[FEATURE] allow importing certain parts of mcdev directly #1108

Closed
JoernBerkefeld opened this issue Sep 19, 2023 · 1 comment · Fixed by #1116 or #1117
Closed

[FEATURE] allow importing certain parts of mcdev directly #1108

JoernBerkefeld opened this issue Sep 19, 2023 · 1 comment · Fixed by #1116 or #1117
Assignees
Labels
enhancement New feature or request; requires increasing the minor version of mcdev. Jira issue-type "Story"
Milestone

Comments

@JoernBerkefeld
Copy link
Contributor

JoernBerkefeld commented Sep 19, 2023

after moving to es6 modules we should now be able to play with exports in package.json:
https://nodejs.org/api/packages.html#exports

prettier seems to be doing that nicely in their 3.0.0: https://github.com/prettier/prettier/blob/main/package.json
import { format } from "prettier/standalone";

goal should be that our copado extensions needs are covered - and maybe a few additional ones.

need to understand conditional exports for that and subpath-exports

@JoernBerkefeld JoernBerkefeld added the enhancement New feature or request; requires increasing the minor version of mcdev. Jira issue-type "Story" label Sep 19, 2023
@JoernBerkefeld JoernBerkefeld added this to the 6.0.0 milestone Sep 19, 2023
@JoernBerkefeld JoernBerkefeld self-assigned this Sep 19, 2023
JoernBerkefeld added a commit that referenced this issue Sep 28, 2023
…n the package is required instead of called via cli
JoernBerkefeld added a commit that referenced this issue Sep 29, 2023
@JoernBerkefeld JoernBerkefeld linked a pull request Sep 29, 2023 that will close this issue
4 tasks
@github-actions
Copy link

Closed by #1116.

@JoernBerkefeld JoernBerkefeld mentioned this issue Sep 29, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request; requires increasing the minor version of mcdev. Jira issue-type "Story"
Projects
None yet
1 participant