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

Swap merge args, rename config.entries --> config.include #1

Merged
merged 5 commits into from
Jul 11, 2020

Conversation

willemneal
Copy link
Collaborator

Also make transforms relative or use require

Also make transforms relative or use require
@jtenner
Copy link
Owner

jtenner commented Jul 8, 2020

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.

@willemneal
Copy link
Collaborator Author

I only change that because you used includes in your examples. I'm fine changing to entries.

Also I want to add a workspace field, but again feel like perhaps it should be a separate tool.

@willemneal
Copy link
Collaborator Author

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
@jtenner
Copy link
Owner

jtenner commented Jul 9, 2020

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);
Copy link
Owner

Choose a reason for hiding this comment

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

Why was this changed?

Copy link
Owner

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".

Willem Wyndham added 3 commits July 10, 2020 14:17
Also exported args and argv from asc
And swapped back order of args to merge
@jtenner jtenner merged commit 3e0303d into jtenner:asconfig Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants