{"name":"@ronin/schema","version":"0.1.3","keywords":["database","schema","primitives"],"author":{"name":"ronin"},"license":"Apache-2.0","_id":"@ronin/schema@0.1.3","maintainers":[{"name":"juriadams","email":"juri@adams.sh"},{"name":"leo","email":"mindrun@icloud.com"},{"name":"codenn","email":"corny@ronin.co"},{"name":"nurodev","email":"ben@nuro.dev"}],"dist":{"shasum":"a3440f26ad79168a416ab25d7790b78785e9c798","tarball":"http://registry-npm.ywwl.com/@ronin/schema/download/@ronin/schema-0.1.3.tgz","fileCount":5,"integrity":"sha512-1BFz/pw0y4v24QNOcPS5TzPBqqmK1JKdB2SQpDS+FKNvuk6NKADGNb8iX31gtANa1W1eLoEOOR7A3xA9BTImYQ==","signatures":[{"sig":"MEUCIB3pdkGtaAPseZW7WCXT5stSFGPj59tVXMjgoQlvZZaHAiEAyB8YaB7HRRPNEWw+j/xMYP8Mm4Xzi9LHMHmPjHN+sck=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26471,"size":8299,"noattachment":false,"key":"/@ronin/schema/-/@ronin/schema-0.1.3.tgz"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"a5b31d9564a6e544afb3d7b61ba21daf6e57f4b5","scripts":{"lint":"bun run --bun lint:tsc && bun run --bun lint:biome","test":"bun test","build":"tsup ./src/index.ts --dts --format esm","format":"biome check --write && biome format --write","prepare":"bun run build","lint:tsc":"tsc --pretty","lint:biome":"biome check"},"_npmUser":{"name":"leo","email":"mindrun@icloud.com"},"_npmVersion":"10.8.2","description":"Allows for defining the schema of a RONIN database in code.","directories":{},"_nodeVersion":"18.20.5","dependencies":{"zod":"3.23.8","ronin":"5.2.0","@types/bun":"1.1.10","@ronin/compiler":"0.12.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"8.3.0","typescript":"5.6.3","@biomejs/biome":"1.9.2"},"_npmOperationalInternal":{"tmp":"tmp/schema_0.1.3_1735631723655_0.8265007052362625","host":"s3://npm-registry-packages-npm-production"},"readme":"# RONIN Schema\n\n[![tests](https://img.shields.io/github/actions/workflow/status/ronin-co/schema/validate.yml?label=tests)](https://github.com/ronin-co/schema/actions/workflows/validate.yml)\n[![code coverage](https://img.shields.io/codecov/c/github/ronin-co/schema)](https://codecov.io/github/ronin-co/schema)\n[![install size](https://packagephobia.com/badge?p=@ronin/schema)](https://packagephobia.com/result?p=@ronin/schema)\n\nThis package provides all primitives necessary for defining a [RONIN database schema](https://ronin.co/docs/platform/schemas-in-code) in code.\n\n## Setup\n\nYou don't need to install this package explicitly, as it is already included in the [RONIN client](https://github.com/ronin-co/client).\n\nHowever, we would be excited to welcome your feature suggestions or bug fixes for the RONIN schema. Read on to learn more about how to suggest changes.\n\n## Contributing\n\nTo start contributing code, first make sure you have [Bun](https://bun.sh) installed, which is a JavaScript runtime.\n\nNext, [clone the repo](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) and install its dependencies:\n\n```bash\nbun install\n```\n\nOnce that's done, link the package to make it available to all of your local projects:\n\n```bash\nbun link\n```\n\nInside your project, you can then run the following command, which is similar to `bun add @ronin/schema` or `npm install @ronin/schema`, except that it doesn't install `@ronin/schema` from npm, but instead uses your local clone of the package:\n\n```bash\nbun link @ronin/schema\n```\n\nIf your project is not yet compatible with [Bun](https://bun.sh), feel free to replace all of the occurrences of the word `bun` in the commands above with `npm` instead.\n\nYou will just need to make sure that, once you [create a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request#creating-the-pull-request) on the current repo, it will not contain a `package-lock.json` file, which is usually generated by npm. Instead, we're using the `bun.lockb` file for this purpose (locking sub dependencies to a certain version).\n\n### Transpilation\n\nIn order to be compatible with a wide range of projects, the source code of the `schema` repo needs to be compiled (transpiled) whenever you make changes to it. To automate this, you can keep this command running in your terminal:\n\n```bash\nbun run dev\n```\n\nWhenever you make a change to the source code, it will then automatically be transpiled again.\n\n### Running Tests\n\nThe RONIN schema has 100% test coverage, which means that every single line of code is tested automatically, to ensure that any change to the source code doesn't cause a regression.\n\nBefore you create a pull request on the `schema` repo, it is therefore advised to run those tests in order to ensure everything works as expected:\n\n```bash\n# Run all tests\nbun test\n\n# Alternatively, run a single test\nbun test -t 'your test name'\n```","publish_time":1735631723812,"_cnpm_publish_time":1735631723812,"dist-tags":{"corny-ron-1071-experimental-15":"0.1.4-corny-ron-1071-experimental-15","corny-ron-1071-experimental-16":"0.1.4-corny-ron-1071-experimental-16","corny-ron-1071-experimental-17":"0.1.4-corny-ron-1071-experimental-17","corny-ron-1071-experimental-18":"0.1.4-corny-ron-1071-experimental-18","corny-ron-1071-experimental-19":"0.1.4-corny-ron-1071-experimental-19","corny-ron-1071-experimental-20":"0.1.4-corny-ron-1071-experimental-20","corny-ron-1071-experimental-4":"0.1.1-corny-ron-1071-experimental-4","corny-ron-1071-experimental-6":"0.1.2-corny-ron-1071-experimental-6","corny-ron-1071-experimental-7":"0.1.2-corny-ron-1071-experimental-7","corny-ron-1071-experimental-8":"0.1.2-corny-ron-1071-experimental-8","corny-ron-1071-experimental-9":"0.1.2-corny-ron-1071-experimental-9","latest":"0.1.6","leo-ron-1071-experimental-10":"0.1.3-leo-ron-1071-experimental-10","leo-ron-1071-experimental-11":"0.1.3-leo-ron-1071-experimental-11","leo-ron-1071-experimental-12":"0.1.3-leo-ron-1071-experimental-12","leo-ron-1071-experimental-13":"0.1.3-leo-ron-1071-experimental-13","leo-ron-1071-experimental-14":"0.1.3-leo-ron-1071-experimental-14","leo-ron-1071-experimental-21":"0.1.4-leo-ron-1071-experimental-21","leo-ron-1071-experimental-22":"0.1.4-leo-ron-1071-experimental-22","leo-ron-1097-experimental-23":"0.1.5-leo-ron-1097-experimental-23","leo-ron-1097-experimental-24":"0.1.5-leo-ron-1097-experimental-24","leo-ron-1097-experimental-25":"0.1.5-leo-ron-1097-experimental-25","leo-ron-1097-experimental-26":"0.1.5-leo-ron-1097-experimental-26","leo-ron-1097-experimental-27":"0.1.5-leo-ron-1097-experimental-27","leo-ron-1097-experimental-28":"0.1.5-leo-ron-1097-experimental-28","leo-ron-1097-experimental-29":"0.1.5-leo-ron-1097-experimental-29","leo-ron-1097-experimental-30":"0.1.5-leo-ron-1097-experimental-30","leo-ron-1097-experimental-31":"0.1.5-leo-ron-1097-experimental-31","leo-ron-1097-experimental-32":"0.1.5-leo-ron-1097-experimental-32"}}