{"_id":"@diamir/nx-nest","_rev":"6-6b53e3a5d04aaf0676dcff2d4d664375","name":"@diamir/nx-nest","dist-tags":{"latest":"23.0.0-beta.3"},"versions":{"22.0.0":{"name":"@diamir/nx-nest","version":"22.0.0","keywords":[],"author":{"name":"Backend","email":"backend@diamir.io"},"license":"ISC","_id":"@diamir/nx-nest@22.0.0","maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"homepage":"https://github.com/tailoredmedia/backend-nx-skeleton#readme","bugs":{"url":"https://github.com/tailoredmedia/backend-nx-skeleton/issues"},"dist":{"shasum":"25d3fb12c1a3c90494a6d49cdde2661464ef15ce","tarball":"https://registry.npmjs.org/@diamir/nx-nest/-/nx-nest-22.0.0.tgz","fileCount":196,"integrity":"sha512-SSkYMfGSf3IANj29w1liTbEu1Sv52ZqVj1JILJAb3mqWsr43CfptRxlQ/6VnY2uEd5X+A3ZA2qzkXHFCGoq/CQ==","signatures":[{"sig":"MEQCICHaH/Out5koxUaurejY4ZV5zLLtJb9EnciLZaqimAcdAiBdvABqVR0xKsiKwwYNCTVBiqax28sgsxy1TpYwEH+/Ng==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":160113},"main":"./src/index.js","type":"commonjs","_from":"file:diamir-nx-nest-22.0.0.tgz","types":"./src/index.d.ts","engines":{"node":">= 20"},"_npmUser":{"name":"ws-admin","email":"backend@webundsoehne.com"},"_resolved":"/tmp/0e80dac8889f1bcbe6182183943467c2/diamir-nx-nest-22.0.0.tgz","_integrity":"sha512-SSkYMfGSf3IANj29w1liTbEu1Sv52ZqVj1JILJAb3mqWsr43CfptRxlQ/6VnY2uEd5X+A3ZA2qzkXHFCGoq/CQ==","generators":"./generators.json","repository":{"url":"git+https://github.com/tailoredmedia/backend-nx-skeleton.git","type":"git"},"_npmVersion":"10.9.2","description":"<p align=\"center\">   <a href=\"https://webundsoehne.com\" target=\"blank\">     <img src=\"https://webundsoehne.com/wp-content/uploads/webundsoehne-logo.png\" width=\"320\" alt=\"Web und Söhne - Logo\" />   </a> </p> Web & Söhne is Austria's leading expert in progr","directories":{},"_nodeVersion":"22.13.1","dependencies":{"yaml":"2.8.2","tslib":"2.8.1","@nx/js":"22.3.3","ts-morph":"27.0.2","@nx/devkit":"22.3.3","@nx/workspace":"22.3.3"},"nx-migrations":{"migrations":"./migrations.json"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"nx":">= 22.0.0","enquirer":">= 2.3.0"},"_npmOperationalInternal":{"tmp":"tmp/nx-nest_22.0.0_1778593000776_0.935937350703588","host":"s3://npm-registry-packages-npm-production"}},"22.0.1":{"name":"@diamir/nx-nest","version":"22.0.1","keywords":["diamir","nx","nestjs","workspace"],"author":{"name":"Backend","email":"backend@diamir.io"},"license":"ISC","_id":"@diamir/nx-nest@22.0.1","maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"homepage":"https://github.com/tailoredmedia/backend-nx-skeleton#readme","bugs":{"url":"https://github.com/tailoredmedia/backend-nx-skeleton/issues"},"dist":{"shasum":"bc92a02cf3dc4ad622498640d846818a14816f00","tarball":"https://registry.npmjs.org/@diamir/nx-nest/-/nx-nest-22.0.1.tgz","fileCount":196,"integrity":"sha512-k0i0KB7QuBXW6kuFMePZFEzDqbTfJv17F9rtRS2CURCvFjspHmB+vY5e1che+u0RwnFDh6y7gXnc5VUhrZJG+Q==","signatures":[{"sig":"MEUCIQDy+e/Str9D1HAV0aOf1xRiNRaQvxmUFxobNwN6td7YRQIgcsZyBAsGrKDqt+uTyKwWSAUJ2y/o+CAz3Knlx0uLuIM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":160548},"main":"./src/index.js","type":"commonjs","_from":"file:diamir-nx-nest-22.0.1.tgz","types":"./src/index.d.ts","engines":{"node":">= 20"},"_npmUser":{"name":"ws-admin","email":"backend@webundsoehne.com"},"_resolved":"/tmp/7fd1f3895179941cac53bd823afabc67/diamir-nx-nest-22.0.1.tgz","_integrity":"sha512-k0i0KB7QuBXW6kuFMePZFEzDqbTfJv17F9rtRS2CURCvFjspHmB+vY5e1che+u0RwnFDh6y7gXnc5VUhrZJG+Q==","generators":"./generators.json","repository":{"url":"git+https://github.com/tailoredmedia/backend-nx-skeleton.git","type":"git"},"_npmVersion":"10.9.8","description":"Nx nestjs workspace and package generator","directories":{},"_nodeVersion":"22.22.3","dependencies":{"yaml":"2.8.2","tslib":"2.8.1","@nx/js":"22.3.3","ts-morph":"27.0.2","@nx/devkit":"22.3.3","@nx/workspace":"22.3.3"},"nx-migrations":{"migrations":"./migrations.json"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"nx":">= 22.0.0","enquirer":">= 2.3.0"},"_npmOperationalInternal":{"tmp":"tmp/nx-nest_22.0.1_1778851677521_0.01072008573918315","host":"s3://npm-registry-packages-npm-production"}},"22.0.2":{"name":"@diamir/nx-nest","version":"22.0.2","keywords":["diamir","nx","nestjs","workspace"],"author":{"name":"Backend","email":"backend@diamir.io"},"license":"ISC","_id":"@diamir/nx-nest@22.0.2","maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"homepage":"https://github.com/tailoredmedia/backend-nx-skeleton#readme","bugs":{"url":"https://github.com/tailoredmedia/backend-nx-skeleton/issues"},"dist":{"shasum":"e8a34c594b836a4479b62e12899dd4d1635e4534","tarball":"https://registry.npmjs.org/@diamir/nx-nest/-/nx-nest-22.0.2.tgz","fileCount":196,"integrity":"sha512-YL/H3mbptl2pkJv9Hc6IjbNVrVa22Qdsoz+KDXE+lVVeMSKDQGbkB2INE+qWmZmt3va30z5aSoqAS0F4smXsRQ==","signatures":[{"sig":"MEUCIQCFR7CpZPv+jC+UCq91YOkX2I7sB6EAYc7THQgEUzkB+AIgHHGTVRuqA+Sck/JEE9N9U3PKum4LA7cQkfl06Ufr/3M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":160554},"main":"./src/index.js","type":"commonjs","_from":"file:diamir-nx-nest-22.0.2.tgz","types":"./src/index.d.ts","engines":{"node":">= 20"},"_npmUser":{"name":"ws-admin","email":"backend@webundsoehne.com"},"_resolved":"/tmp/af2b9f02da15fb1371f9e2c5410bd148/diamir-nx-nest-22.0.2.tgz","_integrity":"sha512-YL/H3mbptl2pkJv9Hc6IjbNVrVa22Qdsoz+KDXE+lVVeMSKDQGbkB2INE+qWmZmt3va30z5aSoqAS0F4smXsRQ==","generators":"./generators.json","repository":{"url":"git+https://github.com/tailoredmedia/backend-nx-skeleton.git","type":"git"},"_npmVersion":"10.9.8","description":"Nx nestjs workspace and package generator","directories":{},"_nodeVersion":"22.22.3","dependencies":{"yaml":"^2.8.2","tslib":"^2.8.1","@nx/js":"^22.7.0","ts-morph":"^27.0.2","@nx/devkit":"^22.7.0","@nx/workspace":"^22.7.0"},"nx-migrations":{"migrations":"./migrations.json"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"nx":">= 22.0.0","enquirer":">= 2.3.0"},"_npmOperationalInternal":{"tmp":"tmp/nx-nest_22.0.2_1779200921747_0.16819882172277123","host":"s3://npm-registry-packages-npm-production"}},"23.0.0-beta.1":{"name":"@diamir/nx-nest","version":"23.0.0-beta.1","keywords":["diamir","nx","nestjs","workspace"],"author":"Backend <backend@diamir.io>","license":"ISC","_id":"@diamir/nx-nest@23.0.0-beta.1","maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"dist":{"shasum":"950ef032fbcf39bd0546151653c8884db3c675a8","tarball":"https://registry.npmjs.org/@diamir/nx-nest/-/nx-nest-23.0.0-beta.1.tgz","fileCount":196,"integrity":"sha512-qT5snc7bJPZSGiFD5K8TNgoHVcJcHdWw19xDTZLF2tR73IqhDnqBGvNfAUwJFr01wvTm3NbczoR8EIIZ6R8N2g==","signatures":[{"sig":"MEUCIASrFRWFlup/v5NUYC4qw8SSz/wD4bho/hKARysBflFpAiEAsWWw5D3gpCUhTyCiZNCt4qeC+bKXZWpUqZwAKNmz0D8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":160475},"main":"./src/index.js","type":"commonjs","types":"./src/index.d.ts","engines":{"node":">= 20"},"_npmUser":{"name":"ws-admin","email":"backend@webundsoehne.com"},"generators":"./generators.json","repository":"https://github.com/tailoredmedia/backend-nx-skeleton","description":"Nx nestjs workspace and package generator","directories":{},"_nodeVersion":"26.0.0","dependencies":{"yaml":"^2.8.3","tslib":"^2.8.1","@nx/js":"^23.1.0","ts-morph":"^27.0.2","@nx/devkit":"^23.1.0","@nx/workspace":"^23.1.0"},"nx-migrations":{"migrations":"./migrations.json"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"nx":">= 23.1.0","enquirer":">= 2.3.0"},"_npmOperationalInternal":{"tmp":"tmp/nx-nest_23.0.0-beta.1_1785393211687_0.13200746710925504","host":"s3://npm-registry-packages-npm-production"}},"23.0.0-beta.2":{"name":"@diamir/nx-nest","version":"23.0.0-beta.2","keywords":["diamir","nx","nestjs","workspace"],"author":"Backend <backend@diamir.io>","license":"ISC","_id":"@diamir/nx-nest@23.0.0-beta.2","maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"dist":{"shasum":"d9d6ea6a5599f9b9456fd7f4e01bbfc9630cee96","tarball":"https://registry.npmjs.org/@diamir/nx-nest/-/nx-nest-23.0.0-beta.2.tgz","fileCount":196,"integrity":"sha512-kxGQnpiTP+qs/trqyJvO2EAL7hvCm7chlOItDEm5EL9W6FuPbZRYNjT+cJQOOqf8fFUfpFLjES/jrTaWxY1clQ==","signatures":[{"sig":"MEUCIGUZE8FPvs0r7kZHgmIh0fUGwnBbvpCp2FHjEr+7E3asAiEA6qtVdeLkzY2wqZtXpnFVROXI4XPuH8Eg/+A1LL6WCqI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":160480},"main":"./src/index.js","type":"commonjs","types":"./src/index.d.ts","engines":{"node":">= 20"},"_npmUser":{"name":"ws-admin","email":"backend@webundsoehne.com"},"generators":"./generators.json","repository":"https://github.com/tailoredmedia/backend-nx-skeleton","description":"Nx nestjs workspace and package generator","directories":{},"_nodeVersion":"26.0.0","dependencies":{"yaml":"^2.8.3","tslib":"^2.8.1","@nx/js":"^23.1.0","ts-morph":"^27.0.2","@nx/devkit":"^23.1.0","@nx/workspace":"^23.1.0"},"nx-migrations":{"migrations":"./migrations.json"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"nx":">= 23.1.0","enquirer":">= 2.3.0"},"_npmOperationalInternal":{"tmp":"tmp/nx-nest_23.0.0-beta.2_1785743868145_0.47986576926772195","host":"s3://npm-registry-packages-npm-production"}},"23.0.0-beta.3":{"_id":"@diamir/nx-nest@23.0.0-beta.3","dist":{"shasum":"dad49187c00437ce0f65d3f9e655a7fdf57ee5aa","tarball":"https://registry.npmjs.org/@diamir/nx-nest/-/nx-nest-23.0.0-beta.3.tgz","fileCount":198,"integrity":"sha512-/bpYuUzQkaJV98h9JQXhbQwyi837WsSKBJOevViPoQBlfOliSgrhicoJHwg+hoTmZpDFXdwBVHvuC9YSutDtBw==","signatures":[{"sig":"MEUCIFWZKw7Wxx5l/2ohpy9HAh2FP3/nfGnG4drPJnBuf96nAiEA00tRbfmJLrMJBdEjUVUQl/ysFC7Accg3XHP/uzWvTzs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGgVGawQ3iqecettQRAZYk78xnW24xZqoAbUQBKlalDsAiBnm4cF82tuwnKbT+r/Q07NMzVWvV3UHdLyQeOkTHTssQ=="}],"unpackedSize":165038},"main":"./src/index.js","name":"@diamir/nx-nest","type":"commonjs","types":"./src/index.d.ts","author":"Backend <backend@diamir.io>","engines":{"node":">= 20"},"license":"ISC","version":"23.0.0-beta.3","_npmUser":{"name":"ws-admin","email":"backend@webundsoehne.com"},"keywords":["diamir","nx","nestjs","workspace"],"generators":"./generators.json","repository":{"url":"https://github.com/tailoredmedia/backend-nx-skeleton","type":"git"},"description":"Nx nestjs workspace and package generator","directories":{},"maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"dependencies":{"yaml":"^2.8.3","tslib":"^2.8.1","@nx/js":"^23.2.0","ts-morph":"^27.0.2","@nx/devkit":"^23.2.0","@nx/workspace":"^23.2.0"},"nx-migrations":{"migrations":"./migrations.json"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"nx":">= 23.1.0","enquirer":">= 2.3.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nx-nest_23.0.0-beta.3_1790260989156_0.21191506301144392"}}},"time":{"created":"2026-05-12T13:36:40.587Z","modified":"2026-09-24T14:43:09.456Z","22.0.0":"2026-05-12T13:36:40.951Z","22.0.1":"2026-05-15T13:27:57.706Z","22.0.2":"2026-05-19T14:28:41.890Z","23.0.0-beta.1":"2026-07-30T06:33:31.827Z","23.0.0-beta.2":"2026-08-03T07:57:48.273Z","23.0.0-beta.3":"2026-09-24T14:43:09.244Z"},"author":"Backend <backend@diamir.io>","license":"ISC","keywords":["diamir","nx","nestjs","workspace"],"repository":{"url":"https://github.com/tailoredmedia/backend-nx-skeleton","type":"git"},"description":"Nx nestjs workspace and package generator","maintainers":[{"name":"ws-admin","email":"backend@webundsoehne.com"},{"name":"dabls","email":"stephan.schmid@diamir.io"}],"readme":"# nx-nest\n\n## Description\n\nThis package includes [nx](https://github.com/nrwl/nx) generators to set up nest.js projects.\n\n---\n\n<!-- TOC -->\n* [nx-nest](#nx-nest)\n  * [Description](#description)\n  * [Preset](#preset)\n  * [Generators](#generators)\n    * [Workspace](#workspace)\n    * [Application](#application)\n    * [Microservice Provider](#microservice-provider)\n    * [Database ORM](#database-orm)\n    * [Library](#library)\n    * [Resource](#resource)\n    * [Database Target](#database-target)\n    * [Seeder](#seeder)\n* [Links](#links)\n<!-- TOC -->\n\n---\n\n## Preset\n\nTo create a nx + nestjs workspace together in one command: `npx create-nx-workspace --skip ci --preset @diamir/nx-nest [name]`. (See [Workspace](#workspace) for details on the options)\n\nBased on the selected database and microservice-provider, this will generate an empty workspace with `apps` and `libs` folders, eslint setup, gitlab-ci preset, package.json scripts and pre-commit setup.\n\nIf a database was selected the `database` util-library will be generated providing the database-orm options and a central place for entities, migrations and seeds.\n\nIf the microservice-provider was included, the `microservice-provider` library will be created. This will be the central spot for keeping Message-Queues, their patterns and message-interfaces.\n\n## Generators\n\nUse the generators by calling `nx g @diamir/nx-nest:<NAME> [OPTIONS]`. Any required option will be prompted for if not given as parameter yet. To update an application pass `--update` with the same name of an existing application and reselect the required and new options. (This will not remove existing configurations if deselected on update)\n\nDatabase-ORM and Microservice-Provider Libraries can be created on workspace initialization, if selected on application generation or manually by hand. Information to those two util-libraries are stored in the `nx.json` in the custom `integration` section.\n\nRun `nx list @diamir/nx-nest` to view available generators (or check the following sections below).<br> Run `nx g @diamir/nx-nest:<NAME> --help` to get details about the selected generator (also below in the respective section).\n\n`typeorm` only: Once a `database` system is selected it is automatically used on any following application generations, if `typeorm` is selected as ORM.\n\n### Workspace\n\nThe generator used in the preset. If you have an empty nx workspace already, use this to add the nestjs skeleton presets.\n\nNames: `workspace`, `ws`\n\nOptions:\n\n| Option               | Type    | Description                                                                  |\n| -------------------- | ------- | ---------------------------------------------------------------------------- |\n| name                 | string  | workspace folder name                                                        |\n| scope                | string  | library import prefix i.e. `@scope/lib`                                      |\n| database             | boolean | if a database-orm should be set up                                           |\n| microserviceProvider | boolean | if to include the microservice-provider util-library                         |\n| skipPackageJson      | boolean | optional skip any action related to the package.json (scripts, dependencies) |\n| force                | boolean | option force overwriting existing files                                      |\n\n### Application\n\nThe main nestjs application itself.\n\nNames: `application`, `app`\n\nOptions:\n\n| Option               | Type     | Description                                                                               |\n| -------------------- | -------- | ----------------------------------------------------------------------------------------- |\n| name                 | string   | application folder name                                                                   |\n| components           | string[] | what components the app includes (any of: server, bg-task, command, microservice)         |\n| jest                 | boolean  | if to setup jest for unit and e2e tests                                                   |\n| database             | boolean  | if a database-orm should be set up                                                        |\n| microserviceProvider | boolean  | if to include the microservice-provider in the app (if the app is an Microservice-Client) |\n| skipPackageJson      | boolean  | optional skip any action related to the package.json (scripts, dependencies)              |\n| update               | boolean  | option set to true if you want to update the applications options                         |\n\n### Microservice Provider\n\nAll about microservices and their message patterns and interfaces. In here, the Message-Queues are defined, what pattern they hold and which interfaces those patterns require on request and response.\n\nNames: `microserviceProvider`, `microservice-provider`, `msp`\n\nOptions:\n\n| Option          | Type    | Description                                                                  |\n| --------------- | ------- | ---------------------------------------------------------------------------- |\n| name            | string  | library folder name (default: microservice-provider)                         |\n| importPath      | string  | optional import-path overwrite (full path) (default: `@{scope}/{name}`)      |\n| skipPackageJson | boolean | optional skip any action related to the package.json (scripts, dependencies) |\n\n### Database ORM\n\nThe place for database setup, entities, migrations and seeds. Besides the orm-config and general database options, in this library the entities, migrations and seeds should be placed.\n\nNames: `database`, `db`\n\nOptions:\n\n| Option          | Type    | Description                                                                  |\n| --------------- | ------- | ---------------------------------------------------------------------------- |\n| orm             | string  | which database orm to use                                                    |\n| database        | string  | for `typeorm` select mysql or postgres db-system                             |\n| name            | string  | library folder name (default: database)                                      |\n| importPath      | string  | optional import-path overwrite (full path) (default: `@{scope}/{name}`)      |\n| skipPackageJson | boolean | optional skip any action related to the package.json (scripts, dependencies) |\n\n### Library\n\nAn empty library folder with optional jest setup.\n\nNames: `library`, `lib`\n\nOptions:\n\n| Option          | Type    | Description                                                                  |\n| --------------- | ------- | ---------------------------------------------------------------------------- |\n| name            | string  | library folder name                                                          |\n| jest            | boolean | if to setup jest for unit tests                                              |\n| importPath      | string  | optional import-path overwrite (full path) (default: `@{scope}/{name}`)      |\n| skipPackageJson | boolean | optional skip any action related to the package.json (scripts, dependencies) |\n| update          | boolean | optional set to true if you want to update the library options               |\n\n### Resource\n\nA specific component resource: folder with module + controller/task/command + service.\n\nNames: `resource`, `res`\n\nOptions:\n\n| Option    | Type   | Description                                                                            |\n| --------- | ------ | -------------------------------------------------------------------------------------- |\n| component | string | the resource-type to generate (one of: server, bg-task, command, microservice, seeder) |\n| name      | string | Resource name                                                                          |\n| project   | string | in which project to generate the new resource                                          |\n\nThe resource generator allows generating via commandline args, but also has a custom enquirer prompt flow. After setting the name and selecting the component, only applications including this component will be suggested for selection.\n\nAdditionally, a resources can be generated by the shorthand command `nx g @diamir/nx-nest:res <component> <name> <project>` i.e. `nx g @diamir/nx-nest:res server user app-api`\n\n`component == seeder` ignores any `project` option and will always generate the seed and factory file into the seeder lib folder.\n\n### Database Target\n\nGenerates the `package.json` scripts and `project.json` targets to manage db migrations.\n\nNames: `database-target`, `dbt`\n\nOptions:\n\n| Option  | Type   | Description                                              |\n| ------- | ------ | -------------------------------------------------------- |\n| project | string | in/for which project to generate the scripts and targets |\n\n### Seeder\n\nGenerates a seeder library for e.g. seeding database entries.\n\nNames: `seeder`, `seed`\n\n# Links\n- [Diamir](https://diamir.io/)\n- [nx](https://nx.dev/)\n- [nestjs](https://nestjs.com/)\n","readmeFilename":""}