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

Export package.json so tools can more easily access meta data #2317

Merged
merged 1 commit into from
May 12, 2021

Conversation

mk-pmb
Copy link
Contributor

@mk-pmb mk-pmb commented Apr 7, 2021

I'd love if I could use the traditional

nodejs -p "require.resolve('systemjs/package.json')"

to find the module root directory.

with current master:

    throw e;
    ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in /tmp/sandbox/node_modules/systemjs/package.json imported from …

with my branch:

/tmp/sandbox/node_modules/systemjs/package.json

@github-actions
Copy link

github-actions bot commented Apr 7, 2021

File size impact

Merging export-package-json into master will not impact files in any group.

browser (0/2)

No impact on files in browser group.

node (0/1)

No impact on files in node group.

extras (0/8)

No impact on files in extras group.

Generated by file size impact during size-impact#727389576

@joeldenning joeldenning merged commit 6d85c9c into systemjs:master May 12, 2021
@joeldenning
Copy link
Collaborator

This is released in https://github.com/systemjs/systemjs/releases/tag/6.10.0

@mk-pmb
Copy link
Contributor Author

mk-pmb commented Jun 7, 2021

Thanks!

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