-
Notifications
You must be signed in to change notification settings - Fork 215
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 cosmic-proto swingset exports #6540
Conversation
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.
A bit of a shame to have build products checked in.
I’m surprised no further ceremony was necessary to mute the useOptional=messages
warnings. When I tried that, I ran into some problem or another. It looked like it produced a breaking change in the generated code.
1d8b97b
to
ad84094
Compare
While looking into this more I realized what I submitted wouldn't solve my downtream problem because it has The solution is for NPM packages to distribute only |
ad84094
to
f3e752a
Compare
e9e44d2
to
b70d063
Compare
packages/cosmic-proto/package.json
Outdated
"./swingset/msgs.js": { | ||
"types": "./dist/agoric/swingset/msgs.d.ts", | ||
"default": "./dist/agoric/swingset/msgs.js" | ||
}, | ||
"./swingset/query.js": { | ||
"types": "./dist/agoric/swingset/query.d.ts", | ||
"default": "./dist/agoric/swingset/query.js" | ||
}, | ||
"./swingset/swingset.js": { | ||
"types": "./dist/agoric/swingset/swingset.d.ts", | ||
"default": "./dist/agoric/swingset/swingset.js" | ||
} |
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.
Could we reduce duplication by exporting the copy in swingset
and not include dist
in the published artifact? Multiple physical locations could effect multiple module instances and an identity discontinuity between them in the same program.
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.
Good call. We don't really need dist
in the source tree. Force-pushed this change and will merge if it passes CI.
b70d063
to
4ab9ed9
Compare
}, | ||
"files": [ | ||
"build", | ||
"dist", |
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.
"dist", |
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.
well I spoke too soon. integrating with master, swingset
now depends on cosmos
which is at a higher level such that copying it to root would require moving swingset
. I had to revert to the symlink approach.
So all this does now is add dist
for consumers of the package through NPM. Keeps symlinks for peer packages in the repo.
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.
Whatever works.
6728cd4
to
b91d91a
Compare
Description
As described in #6521 (comment)
Third time's a charm!
Security Considerations
Documentation Considerations
explained in README
Testing Considerations