├── .editorconfig ├── .env ├── .github ├── CONTRIBUTING.md ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ ├── config.yml │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── ci.yml │ └── release.yml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── CLAUDE.md ├── LICENSE ├── README.md ├── package.json ├── package.sh ├── pnpm-lock.yaml ├── prisma.config.ts ├── prisma ├── context.ts └── schema.prisma ├── src ├── config.ts ├── generator.ts ├── helpers.ts ├── index.ts ├── prisma-generator.ts ├── types.ts └── utils │ ├── formatFile.ts │ ├── getRelativePath.ts │ ├── removeDir.ts │ └── writeFileSafely.ts ├── tests ├── basic-shield-generation.test.ts ├── comprehensive-schema-coverage.test.ts ├── context.ts ├── edge-cases.test.ts ├── schemas │ ├── basic.prisma │ ├── comprehensive.prisma │ ├── edge-cases.prisma │ └── tests │ │ ├── generated │ │ ├── basic │ │ │ └── generated │ │ │ │ └── shield.ts │ │ ├── comprehensive │ │ │ └── generated │ │ │ │ └── shield.ts │ │ └── edge-cases │ │ │ └── generated │ │ │ └── shield.ts │ │ └── test-context.ts ├── test-context.ts ├── test-utils.ts └── tsconfig.test.json ├── tsconfig.json └── vitest.config.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.env -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.github/CONTRIBUTING.md -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: omar-dulaimi 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.github/ISSUE_TEMPLATE/bug_report.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.github/ISSUE_TEMPLATE/config.yml -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/.prettierrc -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/CLAUDE.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/package.json -------------------------------------------------------------------------------- /package.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/package.sh -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /prisma.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/prisma.config.ts -------------------------------------------------------------------------------- /prisma/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/prisma/context.ts -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/generator.ts: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | 3 | import "./index"; 4 | -------------------------------------------------------------------------------- /src/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/src/helpers.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/prisma-generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/src/prisma-generator.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils/formatFile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/src/utils/formatFile.ts -------------------------------------------------------------------------------- /src/utils/getRelativePath.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/src/utils/getRelativePath.ts -------------------------------------------------------------------------------- /src/utils/removeDir.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/src/utils/removeDir.ts -------------------------------------------------------------------------------- /src/utils/writeFileSafely.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/src/utils/writeFileSafely.ts -------------------------------------------------------------------------------- /tests/basic-shield-generation.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/basic-shield-generation.test.ts -------------------------------------------------------------------------------- /tests/comprehensive-schema-coverage.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/comprehensive-schema-coverage.test.ts -------------------------------------------------------------------------------- /tests/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/context.ts -------------------------------------------------------------------------------- /tests/edge-cases.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/edge-cases.test.ts -------------------------------------------------------------------------------- /tests/schemas/basic.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/schemas/basic.prisma -------------------------------------------------------------------------------- /tests/schemas/comprehensive.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/schemas/comprehensive.prisma -------------------------------------------------------------------------------- /tests/schemas/edge-cases.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/schemas/edge-cases.prisma -------------------------------------------------------------------------------- /tests/schemas/tests/generated/basic/generated/shield.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/schemas/tests/generated/basic/generated/shield.ts -------------------------------------------------------------------------------- /tests/schemas/tests/generated/comprehensive/generated/shield.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/schemas/tests/generated/comprehensive/generated/shield.ts -------------------------------------------------------------------------------- /tests/schemas/tests/generated/edge-cases/generated/shield.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/schemas/tests/generated/edge-cases/generated/shield.ts -------------------------------------------------------------------------------- /tests/schemas/tests/test-context.ts: -------------------------------------------------------------------------------- 1 | export * from '../../test-context'; 2 | -------------------------------------------------------------------------------- /tests/test-context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/test-context.ts -------------------------------------------------------------------------------- /tests/test-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/test-utils.ts -------------------------------------------------------------------------------- /tests/tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tests/tsconfig.test.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omar-dulaimi/prisma-trpc-shield-generator/HEAD/vitest.config.js --------------------------------------------------------------------------------