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

Add support for preset organization shortcuts #4542

Merged
merged 3 commits into from Sep 21, 2016
Merged

Add support for preset organization shortcuts #4542

merged 3 commits into from Sep 21, 2016

Conversation

hzoo
Copy link
Member

@hzoo hzoo commented Sep 21, 2016

Ref #4482, by @nkt

It doesn't let me fix merge conflicts from the website or push the branch up from my terminal so made this.

presets: ["@babel/es2015"]
});
},
/Couldn\'t find preset \"\@babel\/babel\-preset\-es2015\" relative to directory/
Copy link
Member Author

Choose a reason for hiding this comment

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

Not the best test but the error is correct

@hzoo hzoo changed the title Nkt fix/4362 Add support for preset organization shortcuts Sep 21, 2016
@hzoo hzoo added the PR: New Feature 🚀 A type of pull request used for our changelog categories label Sep 21, 2016
@@ -261,6 +261,18 @@ export default class OptionManager {
try {
if (typeof val === "string") {
presetLoc = resolve(`babel-preset-${val}`, dirname) || resolve(val, dirname);
Copy link
Member

@danez danez Sep 21, 2016

Choose a reason for hiding this comment

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

babel-preset-${val} will never be a valid name if val contains an @, but I think doing a check if it contains an @ and then doing different things makes it even more complex and it works right now anyway.

@codecov-io
Copy link

Current coverage is 88.35% (diff: 100%)

Merging #4542 into master will increase coverage by 0.01%

@@             master      #4542   diff @@
==========================================
  Files           194        194          
  Lines         13621      13628     +7   
  Methods        1427       1427          
  Messages          0          0          
  Branches       3150       3152     +2   
==========================================
+ Hits          12033      12041     +8   
+ Misses         1588       1587     -1   
  Partials          0          0          

Powered by Codecov. Last update f3a6e4b...6eacdf1

@hzoo hzoo merged commit c07919b into master Sep 21, 2016
@hzoo hzoo deleted the nkt-fix/4362 branch September 21, 2016 20:44
panagosg7 pushed a commit to panagosg7/babel that referenced this pull request Jan 17, 2017
* add support for @org shortcats, fixes babel#4362

* add shortcut test

* fixes
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: New Feature 🚀 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants