{"name":"@ronin/schema","version":"0.1.6","type":"module","description":"Allows for defining the schema of a RONIN database in code.","publishConfig":{"access":"public"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{"./schema":"./dist/schema.js","./queries":"./dist/queries.js"},"typesVersions":{"*":{"schema":["./dist/schema"],"queries":["./dist/queries"]}},"scripts":{"lint":"bun run --bun lint:tsc && bun run --bun lint:biome","lint:biome":"biome check","lint:tsc":"tsc --pretty","format":"biome check --write && biome format --write","test":"bun test","build":"tsup","prepare":"bun run build"},"keywords":["database","schema","primitives"],"author":{"name":"ronin"},"license":"Apache-2.0","devDependencies":{"@biomejs/biome":"1.9.4","@ronin/compiler":"0.13.8","@types/bun":"1.1.14","ronin":"5.3.5","tsup":"8.3.5"},"_id":"@ronin/schema@0.1.6","gitHead":"d672a6e8040192a9df7398ed7f531ec1de2a897b","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/Ok+Dt9Si+DsXHx5Q1RBDRlXxtWqWkXxizwZzLhIn/jV/QhJJhi8SiWdkiEDCF5DDaDH9RSLlfK6v1ZI89gp7A==","shasum":"1a8141981801998952b3a6a99fcdd18d089e250a","tarball":"http://registry-npm.ywwl.com/@ronin/schema/download/@ronin/schema-0.1.6.tgz","fileCount":9,"unpackedSize":83383,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHr29ORx8fdnXOGl7FpCHzBYbCsR60i8qDrfyzoXXUPQIhAL6FTsVMbUf2FRteJwPkrPnxS2a/k33MY0nAA3HpzR3Y"}],"size":22549,"noattachment":false,"key":"/@ronin/schema/-/@ronin/schema-0.1.6.tgz"},"_npmUser":{"name":"leo","email":"mindrun@icloud.com"},"directories":{},"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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/schema_0.1.6_1736246515920_0.5157390921371445"},"_hasShrinkwrap":false,"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":1736246516102,"_cnpm_publish_time":1736246516102,"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"}}