-
Notifications
You must be signed in to change notification settings - Fork 137
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: improve package json typings #955
Conversation
lifeart
commented
Aug 31, 2021
•
edited
Loading
edited
- in addition, fixed keywords field for synthetic packages
- AddonMeta properties merging
name: '@embroider/synthesized-vendor', | ||
version: '0.0.0', | ||
keywords: 'ember-addon', | ||
keywords: ['ember-addon'], |
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.
here is fix
name: '@embroider/synthesized-styles', | ||
version: '0.0.0', | ||
keywords: 'ember-addon', | ||
keywords: ['ember-addon'], |
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.
here is fix
| AddonMeta | ||
| AppMeta | ||
| { | ||
main?: string; |
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.
I'm not confident about v1 version structure here
16e1384
to
2845d21
Compare
@@ -288,7 +288,7 @@ export default class V1Addon { | |||
// shallow copy only! This is OK as long as we're only changing top-level | |||
// keys in this method | |||
let pkg = Object.assign({}, this.packageJSON); | |||
let meta: AddonMeta = Object.assign({}, pkg.meta, this.packageMeta); | |||
let meta: AddonMeta = Object.assign({}, this.packageCache.get(this.root).meta, this.packageMeta); |
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.
fixed one more case here, looks like meta
exists on Package class, not package.json payload
b9d5e8b
to
b0b8dbe
Compare
also fixed few error, finding by type-checking improve addonInstance typings fix more typing errors fix more typings suspend overload error here
340d42d
to
6cb360f
Compare