@pothos/core

v4.3.0
Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript
pothos graphql schema types typescript builder framework plugin deno and 1 more...

type

tsc --project tsconfig.type.json

build

pnpm build:clean && pnpm build:cjs && pnpm build:dts && pnpm build:esm

build:clean

git clean -dfX esm lib

build:cjs

swc src -d lib --config-file ../../.swcrc -C module.type=commonjs --strip-leading-paths

build:esm

cp -r dts/* esm/ && swc src -d esm --config-file ../../.swcrc -C module.type=es6 --strip-leading-paths && pnpm esm:extensions

build:dts

tsc

esm:extensions

TS_NODE_PROJECT=../../tsconfig.json node -r @swc-node/register ../../scripts/esm-transformer.ts

test

pnpm vitest --run
npm i @pothos/core

Metadata

  • ISC
  • Whatever
  • Michael Hayes
  • released 10/9/2024

Downloads

Maintainers