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

fix: update packemon #2

Merged
merged 3 commits into from
Jul 30, 2022
Merged

fix: update packemon #2

merged 3 commits into from
Jul 30, 2022

Conversation

azu
Copy link
Owner

@azu azu commented Jul 30, 2022

We want to treat package as mjs package(type: module).

I've tested index-wrapper.mjs, but it force type: "commonjs".
So, we apply dual packages.

fix #1
refs milesj/packemon#133 (comment)

@@ -60,13 +52,14 @@
"./*": {
"types": "./dts/*.d.ts",
"node": {
"import": "./mjs/*.mjs"
"require": "./cjs/*.cjs"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index-wrapper appoch missed import for ./*.

- We want to treat package as mjs package(type: module)
   - index-wrapper.mjs force type: "commonjs"
@azu azu changed the title fix: use index-wrapper.mjs fix: update packemon Jul 30, 2022
@azu
Copy link
Owner Author

azu commented Jul 30, 2022

@file-cache/core
● Entry point "main" resolves to an invalid or missing file.

@file-cache/core
● Entry point "main" resolves to an invalid or missing file.

ERROR

Validation failed. Found errors in @file-cache/core package!

fmm, why?

@azu
Copy link
Owner Author

azu commented Jul 30, 2022

#2 (comment)

Add deps https://moonrepo.dev/docs/concepts/target
And remove rename buildPackage. It is misleading.

@azu azu merged commit 9474864 into main Jul 30, 2022
@azu azu deleted the feature/1 branch July 30, 2022 09:24
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.

use mjs wrapper
1 participant