diff --git a/README.md b/README.md index af3d00a5..909d97bc 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ A collection of Nx plugins and commons tools to build them. | Plugin | Description | | ----------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | | [`@nx-tools/nx-container`](plugins/nx-container/README.md) | First class support for Container builds in your Nx workspace. Docker, Podman and Kaniko engines are supported | -| [`@nx-tools/nx-prisma`](packages/nx-prisma/README.md) | First class support for [Prisma](https://prisma.io/) in your Nx workspace. | +| [`@nx-tools/nx-prisma`](plugins/nx-prisma/README.md) | First class support for [Prisma](https://prisma.io/) in your Nx workspace. | | [`@nx-tools/nx-graphql-codegen`](packages/nx-graphql-codegen/README.md) | First class support for [graphql code generator](https://the-guild.dev/graphql/codegen) in your Nx workspace. | ## Authors diff --git a/packages/nx-prisma/.eslintrc.json b/plugins/nx-prisma/.eslintrc.json similarity index 100% rename from packages/nx-prisma/.eslintrc.json rename to plugins/nx-prisma/.eslintrc.json diff --git a/packages/nx-prisma/CHANGELOG.md b/plugins/nx-prisma/CHANGELOG.md similarity index 100% rename from packages/nx-prisma/CHANGELOG.md rename to plugins/nx-prisma/CHANGELOG.md diff --git a/packages/nx-prisma/README.md b/plugins/nx-prisma/README.md similarity index 100% rename from packages/nx-prisma/README.md rename to plugins/nx-prisma/README.md diff --git a/packages/nx-prisma/executors.json b/plugins/nx-prisma/executors.json similarity index 100% rename from packages/nx-prisma/executors.json rename to plugins/nx-prisma/executors.json diff --git a/packages/nx-prisma/generators.json b/plugins/nx-prisma/generators.json similarity index 100% rename from packages/nx-prisma/generators.json rename to plugins/nx-prisma/generators.json diff --git a/packages/nx-prisma/jest.config.ts b/plugins/nx-prisma/jest.config.ts similarity index 81% rename from packages/nx-prisma/jest.config.ts rename to plugins/nx-prisma/jest.config.ts index 35de2f43..6dc93a6b 100644 --- a/packages/nx-prisma/jest.config.ts +++ b/plugins/nx-prisma/jest.config.ts @@ -6,5 +6,5 @@ export default { '^.+\\.[tj]s$': ['ts-jest', { tsconfig: '/tsconfig.spec.json' }], }, moduleFileExtensions: ['ts', 'js', 'html'], - coverageDirectory: '../../coverage/packages/nx-prisma', + coverageDirectory: '../../coverage/plugins/nx-prisma', }; diff --git a/packages/nx-prisma/package.json b/plugins/nx-prisma/package.json similarity index 100% rename from packages/nx-prisma/package.json rename to plugins/nx-prisma/package.json diff --git a/packages/nx-prisma/project.json b/plugins/nx-prisma/project.json similarity index 69% rename from packages/nx-prisma/project.json rename to plugins/nx-prisma/project.json index 8060d3f8..b2573059 100644 --- a/packages/nx-prisma/project.json +++ b/plugins/nx-prisma/project.json @@ -1,7 +1,7 @@ { "name": "nx-prisma", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "packages/nx-prisma/src", + "sourceRoot": "plugins/nx-prisma/src", "projectType": "library", "release": { "version": { @@ -17,28 +17,28 @@ "executor": "@nx/js:tsc", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/packages/nx-prisma", - "main": "packages/nx-prisma/src/index.ts", - "tsConfig": "packages/nx-prisma/tsconfig.lib.json", + "outputPath": "dist/plugins/nx-prisma", + "main": "plugins/nx-prisma/src/index.ts", + "tsConfig": "plugins/nx-prisma/tsconfig.lib.json", "assets": [ - "packages/nx-prisma/*.md", + "plugins/nx-prisma/*.md", { - "input": "./packages/nx-prisma/src", + "input": "./plugins/nx-prisma/src", "glob": "**/!(*.ts)", "output": "./src" }, { - "input": "./packages/nx-prisma/src", + "input": "./plugins/nx-prisma/src", "glob": "**/*.d.ts", "output": "./src" }, { - "input": "./packages/nx-prisma", + "input": "./plugins/nx-prisma", "glob": "generators.json", "output": "." }, { - "input": "./packages/nx-prisma", + "input": "./plugins/nx-prisma", "glob": "executors.json", "output": "." } diff --git a/packages/nx-prisma/src/executors/deploy/executor.spec.ts b/plugins/nx-prisma/src/executors/deploy/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/deploy/executor.spec.ts rename to plugins/nx-prisma/src/executors/deploy/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/deploy/executor.ts b/plugins/nx-prisma/src/executors/deploy/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/deploy/executor.ts rename to plugins/nx-prisma/src/executors/deploy/executor.ts diff --git a/packages/nx-prisma/src/executors/deploy/schema.d.ts b/plugins/nx-prisma/src/executors/deploy/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/deploy/schema.d.ts rename to plugins/nx-prisma/src/executors/deploy/schema.d.ts diff --git a/packages/nx-prisma/src/executors/deploy/schema.json b/plugins/nx-prisma/src/executors/deploy/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/deploy/schema.json rename to plugins/nx-prisma/src/executors/deploy/schema.json diff --git a/packages/nx-prisma/src/executors/format/executor.spec.ts b/plugins/nx-prisma/src/executors/format/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/format/executor.spec.ts rename to plugins/nx-prisma/src/executors/format/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/format/executor.ts b/plugins/nx-prisma/src/executors/format/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/format/executor.ts rename to plugins/nx-prisma/src/executors/format/executor.ts diff --git a/packages/nx-prisma/src/executors/format/schema.d.ts b/plugins/nx-prisma/src/executors/format/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/format/schema.d.ts rename to plugins/nx-prisma/src/executors/format/schema.d.ts diff --git a/packages/nx-prisma/src/executors/format/schema.json b/plugins/nx-prisma/src/executors/format/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/format/schema.json rename to plugins/nx-prisma/src/executors/format/schema.json diff --git a/packages/nx-prisma/src/executors/generate/executor.spec.ts b/plugins/nx-prisma/src/executors/generate/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/generate/executor.spec.ts rename to plugins/nx-prisma/src/executors/generate/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/generate/executor.ts b/plugins/nx-prisma/src/executors/generate/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/generate/executor.ts rename to plugins/nx-prisma/src/executors/generate/executor.ts diff --git a/packages/nx-prisma/src/executors/generate/schema.d.ts b/plugins/nx-prisma/src/executors/generate/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/generate/schema.d.ts rename to plugins/nx-prisma/src/executors/generate/schema.d.ts diff --git a/packages/nx-prisma/src/executors/generate/schema.json b/plugins/nx-prisma/src/executors/generate/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/generate/schema.json rename to plugins/nx-prisma/src/executors/generate/schema.json diff --git a/packages/nx-prisma/src/executors/migrate/executor.spec.ts b/plugins/nx-prisma/src/executors/migrate/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/migrate/executor.spec.ts rename to plugins/nx-prisma/src/executors/migrate/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/migrate/executor.ts b/plugins/nx-prisma/src/executors/migrate/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/migrate/executor.ts rename to plugins/nx-prisma/src/executors/migrate/executor.ts diff --git a/packages/nx-prisma/src/executors/migrate/schema.d.ts b/plugins/nx-prisma/src/executors/migrate/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/migrate/schema.d.ts rename to plugins/nx-prisma/src/executors/migrate/schema.d.ts diff --git a/packages/nx-prisma/src/executors/migrate/schema.json b/plugins/nx-prisma/src/executors/migrate/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/migrate/schema.json rename to plugins/nx-prisma/src/executors/migrate/schema.json diff --git a/packages/nx-prisma/src/executors/pull/executor.spec.ts b/plugins/nx-prisma/src/executors/pull/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/pull/executor.spec.ts rename to plugins/nx-prisma/src/executors/pull/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/pull/executor.ts b/plugins/nx-prisma/src/executors/pull/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/pull/executor.ts rename to plugins/nx-prisma/src/executors/pull/executor.ts diff --git a/packages/nx-prisma/src/executors/pull/schema.d.ts b/plugins/nx-prisma/src/executors/pull/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/pull/schema.d.ts rename to plugins/nx-prisma/src/executors/pull/schema.d.ts diff --git a/packages/nx-prisma/src/executors/pull/schema.json b/plugins/nx-prisma/src/executors/pull/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/pull/schema.json rename to plugins/nx-prisma/src/executors/pull/schema.json diff --git a/packages/nx-prisma/src/executors/push/executor.spec.ts b/plugins/nx-prisma/src/executors/push/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/push/executor.spec.ts rename to plugins/nx-prisma/src/executors/push/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/push/executor.ts b/plugins/nx-prisma/src/executors/push/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/push/executor.ts rename to plugins/nx-prisma/src/executors/push/executor.ts diff --git a/packages/nx-prisma/src/executors/push/schema.d.ts b/plugins/nx-prisma/src/executors/push/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/push/schema.d.ts rename to plugins/nx-prisma/src/executors/push/schema.d.ts diff --git a/packages/nx-prisma/src/executors/push/schema.json b/plugins/nx-prisma/src/executors/push/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/push/schema.json rename to plugins/nx-prisma/src/executors/push/schema.json diff --git a/packages/nx-prisma/src/executors/reset/executor.spec.ts b/plugins/nx-prisma/src/executors/reset/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/reset/executor.spec.ts rename to plugins/nx-prisma/src/executors/reset/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/reset/executor.ts b/plugins/nx-prisma/src/executors/reset/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/reset/executor.ts rename to plugins/nx-prisma/src/executors/reset/executor.ts diff --git a/packages/nx-prisma/src/executors/reset/schema.d.ts b/plugins/nx-prisma/src/executors/reset/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/reset/schema.d.ts rename to plugins/nx-prisma/src/executors/reset/schema.d.ts diff --git a/packages/nx-prisma/src/executors/reset/schema.json b/plugins/nx-prisma/src/executors/reset/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/reset/schema.json rename to plugins/nx-prisma/src/executors/reset/schema.json diff --git a/packages/nx-prisma/src/executors/resolve/executor.spec.ts b/plugins/nx-prisma/src/executors/resolve/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/resolve/executor.spec.ts rename to plugins/nx-prisma/src/executors/resolve/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/resolve/executor.ts b/plugins/nx-prisma/src/executors/resolve/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/resolve/executor.ts rename to plugins/nx-prisma/src/executors/resolve/executor.ts diff --git a/packages/nx-prisma/src/executors/resolve/schema.d.ts b/plugins/nx-prisma/src/executors/resolve/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/resolve/schema.d.ts rename to plugins/nx-prisma/src/executors/resolve/schema.d.ts diff --git a/packages/nx-prisma/src/executors/resolve/schema.json b/plugins/nx-prisma/src/executors/resolve/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/resolve/schema.json rename to plugins/nx-prisma/src/executors/resolve/schema.json diff --git a/packages/nx-prisma/src/executors/seed/executor.spec.ts b/plugins/nx-prisma/src/executors/seed/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/seed/executor.spec.ts rename to plugins/nx-prisma/src/executors/seed/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/seed/executor.ts b/plugins/nx-prisma/src/executors/seed/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/seed/executor.ts rename to plugins/nx-prisma/src/executors/seed/executor.ts diff --git a/packages/nx-prisma/src/executors/seed/schema.d.ts b/plugins/nx-prisma/src/executors/seed/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/seed/schema.d.ts rename to plugins/nx-prisma/src/executors/seed/schema.d.ts diff --git a/packages/nx-prisma/src/executors/seed/schema.json b/plugins/nx-prisma/src/executors/seed/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/seed/schema.json rename to plugins/nx-prisma/src/executors/seed/schema.json diff --git a/packages/nx-prisma/src/executors/status/executor.spec.ts b/plugins/nx-prisma/src/executors/status/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/status/executor.spec.ts rename to plugins/nx-prisma/src/executors/status/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/status/executor.ts b/plugins/nx-prisma/src/executors/status/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/status/executor.ts rename to plugins/nx-prisma/src/executors/status/executor.ts diff --git a/packages/nx-prisma/src/executors/status/schema.d.ts b/plugins/nx-prisma/src/executors/status/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/status/schema.d.ts rename to plugins/nx-prisma/src/executors/status/schema.d.ts diff --git a/packages/nx-prisma/src/executors/status/schema.json b/plugins/nx-prisma/src/executors/status/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/status/schema.json rename to plugins/nx-prisma/src/executors/status/schema.json diff --git a/packages/nx-prisma/src/executors/studio/executor.spec.ts b/plugins/nx-prisma/src/executors/studio/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/studio/executor.spec.ts rename to plugins/nx-prisma/src/executors/studio/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/studio/executor.ts b/plugins/nx-prisma/src/executors/studio/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/studio/executor.ts rename to plugins/nx-prisma/src/executors/studio/executor.ts diff --git a/packages/nx-prisma/src/executors/studio/schema.d.ts b/plugins/nx-prisma/src/executors/studio/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/studio/schema.d.ts rename to plugins/nx-prisma/src/executors/studio/schema.d.ts diff --git a/packages/nx-prisma/src/executors/studio/schema.json b/plugins/nx-prisma/src/executors/studio/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/studio/schema.json rename to plugins/nx-prisma/src/executors/studio/schema.json diff --git a/packages/nx-prisma/src/executors/validate/executor.spec.ts b/plugins/nx-prisma/src/executors/validate/executor.spec.ts similarity index 100% rename from packages/nx-prisma/src/executors/validate/executor.spec.ts rename to plugins/nx-prisma/src/executors/validate/executor.spec.ts diff --git a/packages/nx-prisma/src/executors/validate/executor.ts b/plugins/nx-prisma/src/executors/validate/executor.ts similarity index 100% rename from packages/nx-prisma/src/executors/validate/executor.ts rename to plugins/nx-prisma/src/executors/validate/executor.ts diff --git a/packages/nx-prisma/src/executors/validate/schema.d.ts b/plugins/nx-prisma/src/executors/validate/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/executors/validate/schema.d.ts rename to plugins/nx-prisma/src/executors/validate/schema.d.ts diff --git a/packages/nx-prisma/src/executors/validate/schema.json b/plugins/nx-prisma/src/executors/validate/schema.json similarity index 100% rename from packages/nx-prisma/src/executors/validate/schema.json rename to plugins/nx-prisma/src/executors/validate/schema.json diff --git a/packages/nx-prisma/src/generators/configuration/constants.ts b/plugins/nx-prisma/src/generators/configuration/constants.ts similarity index 100% rename from packages/nx-prisma/src/generators/configuration/constants.ts rename to plugins/nx-prisma/src/generators/configuration/constants.ts diff --git a/packages/nx-prisma/src/generators/configuration/files/schema.prisma.template b/plugins/nx-prisma/src/generators/configuration/files/schema.prisma.template similarity index 100% rename from packages/nx-prisma/src/generators/configuration/files/schema.prisma.template rename to plugins/nx-prisma/src/generators/configuration/files/schema.prisma.template diff --git a/packages/nx-prisma/src/generators/configuration/generator.spec.ts b/plugins/nx-prisma/src/generators/configuration/generator.spec.ts similarity index 100% rename from packages/nx-prisma/src/generators/configuration/generator.spec.ts rename to plugins/nx-prisma/src/generators/configuration/generator.spec.ts diff --git a/packages/nx-prisma/src/generators/configuration/generator.ts b/plugins/nx-prisma/src/generators/configuration/generator.ts similarity index 100% rename from packages/nx-prisma/src/generators/configuration/generator.ts rename to plugins/nx-prisma/src/generators/configuration/generator.ts diff --git a/packages/nx-prisma/src/generators/configuration/schema.d.ts b/plugins/nx-prisma/src/generators/configuration/schema.d.ts similarity index 100% rename from packages/nx-prisma/src/generators/configuration/schema.d.ts rename to plugins/nx-prisma/src/generators/configuration/schema.d.ts diff --git a/packages/nx-prisma/src/generators/configuration/schema.json b/plugins/nx-prisma/src/generators/configuration/schema.json similarity index 100% rename from packages/nx-prisma/src/generators/configuration/schema.json rename to plugins/nx-prisma/src/generators/configuration/schema.json diff --git a/packages/nx-prisma/src/index.ts b/plugins/nx-prisma/src/index.ts similarity index 100% rename from packages/nx-prisma/src/index.ts rename to plugins/nx-prisma/src/index.ts diff --git a/packages/nx-prisma/src/interfaces.ts b/plugins/nx-prisma/src/interfaces.ts similarity index 100% rename from packages/nx-prisma/src/interfaces.ts rename to plugins/nx-prisma/src/interfaces.ts diff --git a/packages/nx-prisma/src/run-commands.ts b/plugins/nx-prisma/src/run-commands.ts similarity index 100% rename from packages/nx-prisma/src/run-commands.ts rename to plugins/nx-prisma/src/run-commands.ts diff --git a/packages/nx-prisma/src/utils.ts b/plugins/nx-prisma/src/utils.ts similarity index 100% rename from packages/nx-prisma/src/utils.ts rename to plugins/nx-prisma/src/utils.ts diff --git a/packages/nx-prisma/tsconfig.json b/plugins/nx-prisma/tsconfig.json similarity index 100% rename from packages/nx-prisma/tsconfig.json rename to plugins/nx-prisma/tsconfig.json diff --git a/packages/nx-prisma/tsconfig.lib.json b/plugins/nx-prisma/tsconfig.lib.json similarity index 100% rename from packages/nx-prisma/tsconfig.lib.json rename to plugins/nx-prisma/tsconfig.lib.json diff --git a/packages/nx-prisma/tsconfig.spec.json b/plugins/nx-prisma/tsconfig.spec.json similarity index 100% rename from packages/nx-prisma/tsconfig.spec.json rename to plugins/nx-prisma/tsconfig.spec.json diff --git a/tsconfig.base.json b/tsconfig.base.json index 438374bc..e776e9dd 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -20,7 +20,7 @@ "@nx-tools/core": ["packages/core/src/index.ts"], "@nx-tools/nx-container": ["plugins/nx-container/src/index.ts"], "@nx-tools/nx-graphql-codegen": ["packages/nx-graphql-codegen/src/index.ts"], - "@nx-tools/nx-prisma": ["packages/nx-prisma/src/index.ts"], + "@nx-tools/nx-prisma": ["plugins/nx-prisma/src/index.ts"], "@nx-tools/nx-set-shas": ["packages/nx-set-shas/src/index.ts"] } },