-
Notifications
You must be signed in to change notification settings - Fork 28
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
Use built in types from ember-source instead of the types-packages #118
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Docs: https://pnpm.io/npmrc | ||
# https://github.com/emberjs/rfcs/pull/907 | ||
|
||
# we don't want addons to be bad citizens of the ecosystem | ||
auto-install-peers=false | ||
|
||
# we want true isolation, if a dependency is not declared, we want an error | ||
resolve-peers-from-workspace-root=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,9 @@ | |
"test": "echo 'A v2 addon does not have tests, run tests in test-app'", | ||
"prepack": "rollup --config" | ||
}, | ||
"peerDependencies": { | ||
"ember-source": "^3.28.0 || ^4.0.0 || >= 5.0.0" | ||
}, | ||
"dependencies": { | ||
"@embroider/addon-shim": "^1.0.0" | ||
}, | ||
|
@@ -33,33 +36,19 @@ | |
<% if (typescript) { %>"@babel/preset-typescript": "^7.18.6"<% } else { %>"@babel/eslint-parser": "^7.19.1"<% } %>, | ||
"@babel/plugin-proposal-class-properties": "^7.16.7", | ||
"@babel/plugin-proposal-decorators": "^7.20.13", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.20.7", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this will go away with this PR: #136 |
||
"@babel/runtime": "^7.17.0", | ||
"@embroider/addon-dev": "^3.0.0",<% if (typescript) { %> | ||
"@glimmer/component": "^1.1.2", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is required by glint |
||
"@glint/core": "^1.0.2", | ||
"@glint/environment-ember-loose": "^1.0.2", | ||
"@glint/template": "^1.0.2", | ||
"@tsconfig/ember": "^2.0.0", | ||
"@types/ember": "^4.0.0", | ||
"@types/ember__object": "^4.0.0", | ||
"@types/ember__service": "^4.0.0", | ||
"@types/ember__controller": "^4.0.0", | ||
"@types/ember__string": "^3.16.0", | ||
"@types/ember__template": "^4.0.0", | ||
"@types/ember__polyfills": "^4.0.0", | ||
"@types/ember__utils": "^4.0.0", | ||
"@types/ember__runloop": "^4.0.0", | ||
"@types/ember__debug": "^4.0.0", | ||
"@types/ember__engine": "^4.0.0", | ||
"@types/ember__application": "^4.0.0", | ||
"@types/ember__test": "^4.0.0", | ||
"@types/ember__array": "^4.0.0", | ||
"@types/ember__error": "^4.0.0", | ||
"@types/ember__component": "^4.0.0", | ||
"@types/ember__routing": "^4.0.0", | ||
NullVoxPopuli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"@typescript-eslint/eslint-plugin": "^5.30.5", | ||
"@typescript-eslint/parser": "^5.30.5",<% } else { %> | ||
"@rollup/plugin-babel": "^6.0.3",<% } %> | ||
"concurrently": "^8.0.1", | ||
"ember-source": "^5.1.2", | ||
"ember-template-lint": "^5.7.3", | ||
"eslint": "^8.33.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
|
2 changes: 2 additions & 0 deletions
2
files/__addonLocation__/unpublished-development-types/index.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
highly likely a v2 addon will want a peer on ember-source
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.
Seems good to me, especially since the v1 blueprint also has this, but I remember this comment by @ef4 🤔
but this is the case quite often, often implicitly by others doing this, e.g. see ember-polyfills/ember-cached-decorator-polyfill#212
So I'm 👍, but just wanted to make sure...
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.
hmmm that's a good point. I'll hopefully remember to bring this up in tomorrows meeting.