Resolve issue with build scripts by moving entrypoint into dev/deploy scripts.
Previously there was an error here caused by a circular dependency. The postinstall script needed the worker-next artifact because it's defined in the wrangler.toml. However, it hasn't been built yet, and can't be built because the dependencies haven't been installed yet.
Extract key types into its own package and have both API and key manager depend on it.
Make list of resources in key types as const.
Fixup biome/lefthook config so tsx files are included and Next artifacts are excluded.
Run biome on key-manager code and fix lint/format errors.
Remove isAdmin helper as having special attributes does not imply that a key "is" an "admin key". Rather, it just means that someone in leadership has granted them an exception.
How Has This Been Tested?
Tested locally
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ ] My code involves a change to the database schema.
[ ] My code requires a change to the documentation.
Description
wrangler.toml
. However, it hasn't been built yet, and can't be built because the dependencies haven't been installed yet.as const
.isAdmin
helper as having special attributes does not imply that a key "is" an "admin key". Rather, it just means that someone in leadership has granted them an exception.How Has This Been Tested?
Tested locally
Types of changes
Checklist: