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

refactor: consider json a js source (if resolve_json_module) #322

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

gzm0
Copy link
Contributor

@gzm0 gzm0 commented Feb 14, 2023

This allows us to use the _out_paths machinery for json sources as well.

To achieve this, we add a resolve_json_module parameter to relevant methods in ts_lib (ts_lib is private so this is a backwards compatible change).

There are two small side-effects to this refactor:

  • We use _lib.relative_to_package rather than a prefix removal.
  • json inputs that are not sources and do not have an input / output collision are now declared.

@gzm0
Copy link
Contributor Author

gzm0 commented Feb 14, 2023

Alternative to #320 that doesn't break or fix anything.

@gregmagolan
Copy link
Member

I've forgotten all of the context on json inputs to ts_projects.... but if we're pushing to 2.0 @alexeagle we should look at this again and understand the change in this PR

@gregmagolan gregmagolan added this to the 2.0 milestone Apr 1, 2023
This allows us to use the _out_paths machinery for json sources as
well.

To achieve this, we add a resolve_json_module parameter to relevant
methods in ts_lib (ts_lib is private so this is a backwards compatible
change).

There are two small side-effects to this refactor:
- We use _lib.relative_to_package rather than a prefix removal.
- json inputs that are not sources and do not have an input / output
  collision are now declared.
@alexeagle alexeagle merged commit 12012a4 into aspect-build:main Apr 28, 2023
@gzm0 gzm0 deleted the json-is-js branch June 30, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in review
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants