-
Notifications
You must be signed in to change notification settings - Fork 0
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
Swap merge args, rename config.entries --> config.include #1
Conversation
Also make transforms relative or use require
I discussed this with dcode and he said we should use entries, and not include, even though include matches typescript ergonomics. Feel free to talk this over with dcode and maxgraey, and I won't close this pr. |
I only change that because you used includes in your examples. I'm fine changing to entries. Also I want to add a |
Also I tested this with NEAR projects and it works like a charm! Which means I don't have to support a separate compile tool. |
Also fixed missing ;'s
Yeah this looks great! I forgot about transform paths :). |
@@ -283,10 +283,19 @@ exports.main = function main(argv, options, callback) { | |||
while (asconfig) { | |||
// merge target first, then merge options, then merge extended asconfigs | |||
if (asconfig.targets && asconfig.targets[target]) { | |||
args = optionsUtil.merge(exports.options, args, asconfig.targets[target]); | |||
args = optionsUtil.merge(exports.options, asconfig.targets[target], args); |
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.
Why was this changed?
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 switched it back, because targets should be respected over default "options".
Also exported args and argv from asc And swapped back order of args to merge
Also make transforms relative or use require