chore: add script to check import / export type sorting (#900)

* Enforce separate type imports

* chore: enforce separate type exports

* refactor: flatten sdk index exports

* updates

* fix improperly sorted types

* fixes and prettier

* prettier
This commit is contained in:
Justin Hernandez
2025-08-15 10:11:44 -07:00
committed by GitHub
parent d33e329164
commit 76f4980ef6
14 changed files with 297 additions and 233 deletions

View File

@@ -3,11 +3,7 @@
// Only export what's actually used elsewhere to enable proper tree shaking
// From provingMachine - used in screens and tests
export {
type ProvingStateType,
useProvingStore,
} from '@/utils/proving/provingMachine';
export type { ProvingStateType } from '@/utils/proving/provingMachine';
// From provingUtils - used in tests (keeping these for testing purposes)
export {
encryptAES256GCM,
@@ -23,3 +19,5 @@ export {
hasAnyValidRegisteredDocument,
isUserRegisteredWithAlternativeCSCA,
} from '@/utils/proving/validateDocument';
export { useProvingStore } from '@/utils/proving/provingMachine';

View File

@@ -20,10 +20,8 @@ import {
generateNullifier,
} from '@selfxyz/common/utils/passports';
import { getLeafDscTree } from '@selfxyz/common/utils/trees';
import {
isPassportDataValid,
type PassportValidationCallbacks,
} from '@selfxyz/mobile-sdk-alpha';
import type { PassportValidationCallbacks } from '@selfxyz/mobile-sdk-alpha';
import { isPassportDataValid } from '@selfxyz/mobile-sdk-alpha';
import { DocumentEvents } from '@/consts/analytics';
import {