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 script for enforcing pkg json standards #1066

Merged
merged 6 commits into from
Nov 10, 2023

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Nov 8, 2023

This adds a pre-commit hook to audit the pkg json bundler directives.

Specifically, we don't know if a bundler is going to use the CJS or ES entrypoint, and thus the file replacement directives should account for either case.

@kuhe kuhe requested review from a team as code owners November 8, 2023 22:29
@kuhe kuhe force-pushed the chore/pkg-json-enforcement branch 3 times, most recently from 9bea73c to 54ab944 Compare November 9, 2023 16:10
@kuhe kuhe force-pushed the chore/pkg-json-enforcement branch 2 times, most recently from a7ef54e to 9a574e6 Compare November 9, 2023 21:43
@@ -55,6 +55,9 @@
"react-native": {
"@smithy/chunked-blob-reader": "@smithy/chunked-blob-reader-native"
},
"browser": {
"@smithy/chunked-blob-reader": "@smithy/chunked-blob-reader"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is redundant, but much easier to validate

@kuhe kuhe force-pushed the chore/pkg-json-enforcement branch 3 times, most recently from 00bef1a to b374742 Compare November 10, 2023 00:32
@kuhe kuhe merged commit 5598a03 into smithy-lang:main Nov 10, 2023
7 checks passed
@kuhe kuhe deleted the chore/pkg-json-enforcement branch November 10, 2023 18:32
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.

None yet

3 participants