-
Notifications
You must be signed in to change notification settings - Fork 74
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
Added validate-exports script to check the consistency of package exports #1269
Added validate-exports script to check the consistency of package exports #1269
Conversation
"exclude": [ | ||
"../src/test/**/*" | ||
] | ||
} |
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.
That's very smart 🎩
I'm just confused by the name and location of the file. What about
tsconfig.src-main.json
, tsconfig.src-main-only.json
, tsconfig.src-plain.json
, tsconfig.src-plain-only.json
? (to have it in line with the other tsconfig
s).
I would love to see a comment like
// only used for validating to not import modules from 'src/test', ... within base modules like 'src/parser/*'
in line 1 😉
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'm just confused by the name and location of the file. What about
tsconfig.src-main.json, tsconfig.src-main-only.json, tsconfig.src-plain.json, tsconfig.src-plain-only.json? (to have it in line with the other tsconfigs).
I'd prefer to keep it separate to highlight that this is part of the framework tests and that it's not used for building. Having too many tsconfigs next to each other could be confusing.
I would love to see a comment like `// only used for validating to not import modules from 'src/test', ... within base modules like 'src/parser/*' in line 1 😉
I got an error in the JSON editor when I added a comment (comments are not part of the standard JSON syntax).
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.
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.
Ok, renamed and added a comment. I still think it's better to keep the file in a subfolder to avoid confusion.
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.
🎉
61346d6
to
445cccc
Compare
Fixes #1261.
#1171 and #1258 should be adapted to include additional exports validation and update the exclude paths of main.