This monorepo is intended to be a home for various utilities which we use across a number of our projects. These utilities may include, but are not limited to:
- GraphQL-specific functions which don't necessarily belong in
graphql-js
- Apollo-specific functions (i.e.
operationRegistrySignature
) - Generic, commonly used JS/TS functions
- Commonly used TypeScript types
See CONTRIBUTING.md
- Run
npm init -w packages/<myNewPackage>
and follow the prompts. If you're unsure of description, author, or other fields in thepackage.json
file, please refer to a neighbor package'spackage.json
for inspiration. - Add appropriate entries for your package to the
tsconfig.build.json
andtsconfig.test.json
files. - Create a
src/index.ts
file which is home to your top-level exports. - Create a
src/__tests__
folder. Test files should be added here (and use the.test.ts
suffix). - Copy the following files from a neighbor package and adjust appropriately (if necessary):
.npmignore
jest.config.ts
LICENSE
tsconfig.json
src/__tests__/tsconfig.json