diff --git a/.github/workflows/generator_tests.yml b/.github/workflows/generator_tests.yml index 5a127a9553..5e13fa1070 100644 --- a/.github/workflows/generator_tests.yml +++ b/.github/workflows/generator_tests.yml @@ -7,11 +7,11 @@ on: pull_request: paths: - "pnpm-lock.yaml" - - "generator/**" + - "packages/generator/**" defaults: run: - working-directory: generator + working-directory: packages/generator jobs: verify_formatting: diff --git a/e2e/satellite_client/Dockerfile b/e2e/satellite_client/Dockerfile index 578ef53ed6..7183b982e9 100644 --- a/e2e/satellite_client/Dockerfile +++ b/e2e/satellite_client/Dockerfile @@ -14,7 +14,7 @@ COPY pnpm-workspace.yaml ./ # E2E Client deps install + build COPY packages/client ./packages/client COPY common ./common -COPY generator ./generator +COPY packages/generator ./packages/generator COPY packages/drivers ./packages/drivers COPY e2e/satellite_client/package.json ./e2e/satellite_client/ RUN pnpm install -r --offline --filter @internal/satellite-client^... diff --git a/packages/cli/Makefile b/packages/cli/Makefile index fe14d42e23..7ee97dbabe 100644 --- a/packages/cli/Makefile +++ b/packages/cli/Makefile @@ -1,8 +1,8 @@ deps: - make -C ../../packages/client deps + make -C ../client deps pnpm install --frozen-lockfile - make -C ../../packages/client build - make -C ../../generator build + make -C ..//client build + make -C ../generator build build: node_modules pnpm run build diff --git a/packages/client/Makefile b/packages/client/Makefile index 9fb462b766..eac7b6d4d1 100644 --- a/packages/client/Makefile +++ b/packages/client/Makefile @@ -1,5 +1,5 @@ build_generator: - $(MAKE) -C ../../generator build + $(MAKE) -C ../generator build deps: pnpm install --frozen-lockfile diff --git a/generator/.eslintrc.json b/packages/generator/.eslintrc.json similarity index 100% rename from generator/.eslintrc.json rename to packages/generator/.eslintrc.json diff --git a/generator/.gitignore b/packages/generator/.gitignore similarity index 100% rename from generator/.gitignore rename to packages/generator/.gitignore diff --git a/generator/.npmignore b/packages/generator/.npmignore similarity index 100% rename from generator/.npmignore rename to packages/generator/.npmignore diff --git a/generator/.prettierignore b/packages/generator/.prettierignore similarity index 100% rename from generator/.prettierignore rename to packages/generator/.prettierignore diff --git a/generator/.prettierrc.json b/packages/generator/.prettierrc.json similarity index 100% rename from generator/.prettierrc.json rename to packages/generator/.prettierrc.json diff --git a/generator/CHANGELOG.md b/packages/generator/CHANGELOG.md similarity index 100% rename from generator/CHANGELOG.md rename to packages/generator/CHANGELOG.md diff --git a/generator/Makefile b/packages/generator/Makefile similarity index 100% rename from generator/Makefile rename to packages/generator/Makefile diff --git a/generator/README.md b/packages/generator/README.md similarity index 99% rename from generator/README.md rename to packages/generator/README.md index a05128c1ba..023a6c36a0 100644 --- a/generator/README.md +++ b/packages/generator/README.md @@ -94,7 +94,7 @@ If you want to customize the behaviour of the generator you can use the followin ```prisma generator zod { - provider = "ts-node-dev ../generator/src/bin.ts" + provider = "ts-node-dev ../packages/generator/src/bin.ts" output = "./generated/zod" // default is ./generated/zod useMultipleFiles = true // default is false createInputTypes = false // default is true diff --git a/generator/bin.js b/packages/generator/bin.js similarity index 100% rename from generator/bin.js rename to packages/generator/bin.js diff --git a/generator/package.json b/packages/generator/package.json similarity index 100% rename from generator/package.json rename to packages/generator/package.json diff --git a/generator/src/bin.ts b/packages/generator/src/bin.ts similarity index 100% rename from generator/src/bin.ts rename to packages/generator/src/bin.ts diff --git a/generator/src/classes/directoryHelper.ts b/packages/generator/src/classes/directoryHelper.ts similarity index 100% rename from generator/src/classes/directoryHelper.ts rename to packages/generator/src/classes/directoryHelper.ts diff --git a/generator/src/classes/extendedDMMF.ts b/packages/generator/src/classes/extendedDMMF.ts similarity index 100% rename from generator/src/classes/extendedDMMF.ts rename to packages/generator/src/classes/extendedDMMF.ts diff --git a/generator/src/classes/extendedDMMFDatamodel.ts b/packages/generator/src/classes/extendedDMMFDatamodel.ts similarity index 100% rename from generator/src/classes/extendedDMMFDatamodel.ts rename to packages/generator/src/classes/extendedDMMFDatamodel.ts diff --git a/generator/src/classes/extendedDMMFEnum.ts b/packages/generator/src/classes/extendedDMMFEnum.ts similarity index 100% rename from generator/src/classes/extendedDMMFEnum.ts rename to packages/generator/src/classes/extendedDMMFEnum.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFField.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFField.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFField.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFField.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldArrayValidatorString.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldArrayValidatorString.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldArrayValidatorString.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldArrayValidatorString.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldBase.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldBase.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldBase.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldBase.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldCustomValidatorString.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldCustomValidatorString.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldCustomValidatorString.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldCustomValidatorString.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldDefaultValidators.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldDefaultValidators.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldDefaultValidators.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldDefaultValidators.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldOmitField.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldOmitField.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldOmitField.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldOmitField.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorCustomErrors.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorCustomErrors.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorCustomErrors.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorCustomErrors.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorMap.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorMap.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorMap.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorMap.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorMatch.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorMatch.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorMatch.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorMatch.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorPattern.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorPattern.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorPattern.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorPattern.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorString.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorString.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorString.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorString.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorType.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorType.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorType.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldValidatorType.ts diff --git a/generator/src/classes/extendedDMMFField/extendedDMMFFieldZodType.ts b/packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldZodType.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/extendedDMMFFieldZodType.ts rename to packages/generator/src/classes/extendedDMMFField/extendedDMMFFieldZodType.ts diff --git a/generator/src/classes/extendedDMMFField/index.ts b/packages/generator/src/classes/extendedDMMFField/index.ts similarity index 100% rename from generator/src/classes/extendedDMMFField/index.ts rename to packages/generator/src/classes/extendedDMMFField/index.ts diff --git a/generator/src/classes/extendedDMMFInputType.ts b/packages/generator/src/classes/extendedDMMFInputType.ts similarity index 100% rename from generator/src/classes/extendedDMMFInputType.ts rename to packages/generator/src/classes/extendedDMMFInputType.ts diff --git a/generator/src/classes/extendedDMMFMappings.ts b/packages/generator/src/classes/extendedDMMFMappings.ts similarity index 100% rename from generator/src/classes/extendedDMMFMappings.ts rename to packages/generator/src/classes/extendedDMMFMappings.ts diff --git a/generator/src/classes/extendedDMMFModel.ts b/packages/generator/src/classes/extendedDMMFModel.ts similarity index 100% rename from generator/src/classes/extendedDMMFModel.ts rename to packages/generator/src/classes/extendedDMMFModel.ts diff --git a/generator/src/classes/extendedDMMFOutputType.ts b/packages/generator/src/classes/extendedDMMFOutputType.ts similarity index 100% rename from generator/src/classes/extendedDMMFOutputType.ts rename to packages/generator/src/classes/extendedDMMFOutputType.ts diff --git a/generator/src/classes/extendedDMMFSchema.ts b/packages/generator/src/classes/extendedDMMFSchema.ts similarity index 100% rename from generator/src/classes/extendedDMMFSchema.ts rename to packages/generator/src/classes/extendedDMMFSchema.ts diff --git a/generator/src/classes/extendedDMMFSchemaArg.ts b/packages/generator/src/classes/extendedDMMFSchemaArg.ts similarity index 100% rename from generator/src/classes/extendedDMMFSchemaArg.ts rename to packages/generator/src/classes/extendedDMMFSchemaArg.ts diff --git a/generator/src/classes/extendedDMMFSchemaArgInputType.ts b/packages/generator/src/classes/extendedDMMFSchemaArgInputType.ts similarity index 100% rename from generator/src/classes/extendedDMMFSchemaArgInputType.ts rename to packages/generator/src/classes/extendedDMMFSchemaArgInputType.ts diff --git a/generator/src/classes/extendedDMMFSchemaEnum.ts b/packages/generator/src/classes/extendedDMMFSchemaEnum.ts similarity index 100% rename from generator/src/classes/extendedDMMFSchemaEnum.ts rename to packages/generator/src/classes/extendedDMMFSchemaEnum.ts diff --git a/generator/src/classes/extendedDMMFSchemaField.ts b/packages/generator/src/classes/extendedDMMFSchemaField.ts similarity index 100% rename from generator/src/classes/extendedDMMFSchemaField.ts rename to packages/generator/src/classes/extendedDMMFSchemaField.ts diff --git a/generator/src/classes/fileWriter.ts b/packages/generator/src/classes/fileWriter.ts similarity index 100% rename from generator/src/classes/fileWriter.ts rename to packages/generator/src/classes/fileWriter.ts diff --git a/generator/src/classes/formattedNames.ts b/packages/generator/src/classes/formattedNames.ts similarity index 100% rename from generator/src/classes/formattedNames.ts rename to packages/generator/src/classes/formattedNames.ts diff --git a/generator/src/classes/index.ts b/packages/generator/src/classes/index.ts similarity index 100% rename from generator/src/classes/index.ts rename to packages/generator/src/classes/index.ts diff --git a/generator/src/constants/index.ts b/packages/generator/src/constants/index.ts similarity index 100% rename from generator/src/constants/index.ts rename to packages/generator/src/constants/index.ts diff --git a/generator/src/constants/objectMaps.ts b/packages/generator/src/constants/objectMaps.ts similarity index 100% rename from generator/src/constants/objectMaps.ts rename to packages/generator/src/constants/objectMaps.ts diff --git a/generator/src/constants/regex.ts b/packages/generator/src/constants/regex.ts similarity index 100% rename from generator/src/constants/regex.ts rename to packages/generator/src/constants/regex.ts diff --git a/generator/src/functions/contentWriters/index.ts b/packages/generator/src/functions/contentWriters/index.ts similarity index 100% rename from generator/src/functions/contentWriters/index.ts rename to packages/generator/src/functions/contentWriters/index.ts diff --git a/generator/src/functions/contentWriters/writeArgs.ts b/packages/generator/src/functions/contentWriters/writeArgs.ts similarity index 100% rename from generator/src/functions/contentWriters/writeArgs.ts rename to packages/generator/src/functions/contentWriters/writeArgs.ts diff --git a/generator/src/functions/contentWriters/writeCountArgs.ts b/packages/generator/src/functions/contentWriters/writeCountArgs.ts similarity index 100% rename from generator/src/functions/contentWriters/writeCountArgs.ts rename to packages/generator/src/functions/contentWriters/writeCountArgs.ts diff --git a/generator/src/functions/contentWriters/writeCountSelect.ts b/packages/generator/src/functions/contentWriters/writeCountSelect.ts similarity index 100% rename from generator/src/functions/contentWriters/writeCountSelect.ts rename to packages/generator/src/functions/contentWriters/writeCountSelect.ts diff --git a/generator/src/functions/contentWriters/writeCustomEnum.ts b/packages/generator/src/functions/contentWriters/writeCustomEnum.ts similarity index 100% rename from generator/src/functions/contentWriters/writeCustomEnum.ts rename to packages/generator/src/functions/contentWriters/writeCustomEnum.ts diff --git a/generator/src/functions/contentWriters/writeDecimalJsLike.ts b/packages/generator/src/functions/contentWriters/writeDecimalJsLike.ts similarity index 100% rename from generator/src/functions/contentWriters/writeDecimalJsLike.ts rename to packages/generator/src/functions/contentWriters/writeDecimalJsLike.ts diff --git a/generator/src/functions/contentWriters/writeDecimalJsLikeList.ts b/packages/generator/src/functions/contentWriters/writeDecimalJsLikeList.ts similarity index 100% rename from generator/src/functions/contentWriters/writeDecimalJsLikeList.ts rename to packages/generator/src/functions/contentWriters/writeDecimalJsLikeList.ts diff --git a/generator/src/functions/contentWriters/writeInclude.ts b/packages/generator/src/functions/contentWriters/writeInclude.ts similarity index 100% rename from generator/src/functions/contentWriters/writeInclude.ts rename to packages/generator/src/functions/contentWriters/writeInclude.ts diff --git a/generator/src/functions/contentWriters/writeInputJsonValue.ts b/packages/generator/src/functions/contentWriters/writeInputJsonValue.ts similarity index 100% rename from generator/src/functions/contentWriters/writeInputJsonValue.ts rename to packages/generator/src/functions/contentWriters/writeInputJsonValue.ts diff --git a/generator/src/functions/contentWriters/writeInputObjectType.ts b/packages/generator/src/functions/contentWriters/writeInputObjectType.ts similarity index 100% rename from generator/src/functions/contentWriters/writeInputObjectType.ts rename to packages/generator/src/functions/contentWriters/writeInputObjectType.ts diff --git a/generator/src/functions/contentWriters/writeIsValidDecimalInput.ts b/packages/generator/src/functions/contentWriters/writeIsValidDecimalInput.ts similarity index 100% rename from generator/src/functions/contentWriters/writeIsValidDecimalInput.ts rename to packages/generator/src/functions/contentWriters/writeIsValidDecimalInput.ts diff --git a/generator/src/functions/contentWriters/writeJsonValue.ts b/packages/generator/src/functions/contentWriters/writeJsonValue.ts similarity index 100% rename from generator/src/functions/contentWriters/writeJsonValue.ts rename to packages/generator/src/functions/contentWriters/writeJsonValue.ts diff --git a/generator/src/functions/contentWriters/writeModelFields.ts b/packages/generator/src/functions/contentWriters/writeModelFields.ts similarity index 100% rename from generator/src/functions/contentWriters/writeModelFields.ts rename to packages/generator/src/functions/contentWriters/writeModelFields.ts diff --git a/generator/src/functions/contentWriters/writeModelOrType.ts b/packages/generator/src/functions/contentWriters/writeModelOrType.ts similarity index 100% rename from generator/src/functions/contentWriters/writeModelOrType.ts rename to packages/generator/src/functions/contentWriters/writeModelOrType.ts diff --git a/generator/src/functions/contentWriters/writeNullableJsonValue.ts b/packages/generator/src/functions/contentWriters/writeNullableJsonValue.ts similarity index 100% rename from generator/src/functions/contentWriters/writeNullableJsonValue.ts rename to packages/generator/src/functions/contentWriters/writeNullableJsonValue.ts diff --git a/generator/src/functions/contentWriters/writeOutputObjectType.ts b/packages/generator/src/functions/contentWriters/writeOutputObjectType.ts similarity index 100% rename from generator/src/functions/contentWriters/writeOutputObjectType.ts rename to packages/generator/src/functions/contentWriters/writeOutputObjectType.ts diff --git a/generator/src/functions/contentWriters/writePrismaEnum.ts b/packages/generator/src/functions/contentWriters/writePrismaEnum.ts similarity index 100% rename from generator/src/functions/contentWriters/writePrismaEnum.ts rename to packages/generator/src/functions/contentWriters/writePrismaEnum.ts diff --git a/generator/src/functions/contentWriters/writeSelect.ts b/packages/generator/src/functions/contentWriters/writeSelect.ts similarity index 100% rename from generator/src/functions/contentWriters/writeSelect.ts rename to packages/generator/src/functions/contentWriters/writeSelect.ts diff --git a/generator/src/functions/contentWriters/writeTransformJsonNull.ts b/packages/generator/src/functions/contentWriters/writeTransformJsonNull.ts similarity index 100% rename from generator/src/functions/contentWriters/writeTransformJsonNull.ts rename to packages/generator/src/functions/contentWriters/writeTransformJsonNull.ts diff --git a/generator/src/functions/fieldWriters/index.ts b/packages/generator/src/functions/fieldWriters/index.ts similarity index 100% rename from generator/src/functions/fieldWriters/index.ts rename to packages/generator/src/functions/fieldWriters/index.ts diff --git a/generator/src/functions/fieldWriters/writeJsDoc.ts b/packages/generator/src/functions/fieldWriters/writeJsDoc.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeJsDoc.ts rename to packages/generator/src/functions/fieldWriters/writeJsDoc.ts diff --git a/generator/src/functions/fieldWriters/writeModelBytes.ts b/packages/generator/src/functions/fieldWriters/writeModelBytes.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeModelBytes.ts rename to packages/generator/src/functions/fieldWriters/writeModelBytes.ts diff --git a/generator/src/functions/fieldWriters/writeModelCustomValidator.ts b/packages/generator/src/functions/fieldWriters/writeModelCustomValidator.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeModelCustomValidator.ts rename to packages/generator/src/functions/fieldWriters/writeModelCustomValidator.ts diff --git a/generator/src/functions/fieldWriters/writeModelDecimal.ts b/packages/generator/src/functions/fieldWriters/writeModelDecimal.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeModelDecimal.ts rename to packages/generator/src/functions/fieldWriters/writeModelDecimal.ts diff --git a/generator/src/functions/fieldWriters/writeModelEnum.ts b/packages/generator/src/functions/fieldWriters/writeModelEnum.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeModelEnum.ts rename to packages/generator/src/functions/fieldWriters/writeModelEnum.ts diff --git a/generator/src/functions/fieldWriters/writeModelFieldAdditions.ts b/packages/generator/src/functions/fieldWriters/writeModelFieldAdditions.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeModelFieldAdditions.ts rename to packages/generator/src/functions/fieldWriters/writeModelFieldAdditions.ts diff --git a/generator/src/functions/fieldWriters/writeModelJson.ts b/packages/generator/src/functions/fieldWriters/writeModelJson.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeModelJson.ts rename to packages/generator/src/functions/fieldWriters/writeModelJson.ts diff --git a/generator/src/functions/fieldWriters/writeModelRelation.ts b/packages/generator/src/functions/fieldWriters/writeModelRelation.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeModelRelation.ts rename to packages/generator/src/functions/fieldWriters/writeModelRelation.ts diff --git a/generator/src/functions/fieldWriters/writeModelScalar.ts b/packages/generator/src/functions/fieldWriters/writeModelScalar.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeModelScalar.ts rename to packages/generator/src/functions/fieldWriters/writeModelScalar.ts diff --git a/generator/src/functions/fieldWriters/writeNonScalarType.ts b/packages/generator/src/functions/fieldWriters/writeNonScalarType.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeNonScalarType.ts rename to packages/generator/src/functions/fieldWriters/writeNonScalarType.ts diff --git a/generator/src/functions/fieldWriters/writeScalarType.ts b/packages/generator/src/functions/fieldWriters/writeScalarType.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeScalarType.ts rename to packages/generator/src/functions/fieldWriters/writeScalarType.ts diff --git a/generator/src/functions/fieldWriters/writeSpecialType.ts b/packages/generator/src/functions/fieldWriters/writeSpecialType.ts similarity index 100% rename from generator/src/functions/fieldWriters/writeSpecialType.ts rename to packages/generator/src/functions/fieldWriters/writeSpecialType.ts diff --git a/generator/src/functions/index.ts b/packages/generator/src/functions/index.ts similarity index 100% rename from generator/src/functions/index.ts rename to packages/generator/src/functions/index.ts diff --git a/generator/src/functions/tableDescriptionWriters/writeTableSchemas.ts b/packages/generator/src/functions/tableDescriptionWriters/writeTableSchemas.ts similarity index 100% rename from generator/src/functions/tableDescriptionWriters/writeTableSchemas.ts rename to packages/generator/src/functions/tableDescriptionWriters/writeTableSchemas.ts diff --git a/generator/src/functions/writeMultiFileArgTypeFiles.ts b/packages/generator/src/functions/writeMultiFileArgTypeFiles.ts similarity index 100% rename from generator/src/functions/writeMultiFileArgTypeFiles.ts rename to packages/generator/src/functions/writeMultiFileArgTypeFiles.ts diff --git a/generator/src/functions/writeMultiFileInputTypeFiles.ts b/packages/generator/src/functions/writeMultiFileInputTypeFiles.ts similarity index 100% rename from generator/src/functions/writeMultiFileInputTypeFiles.ts rename to packages/generator/src/functions/writeMultiFileInputTypeFiles.ts diff --git a/generator/src/functions/writeMultiFileModelFiles.ts b/packages/generator/src/functions/writeMultiFileModelFiles.ts similarity index 100% rename from generator/src/functions/writeMultiFileModelFiles.ts rename to packages/generator/src/functions/writeMultiFileModelFiles.ts diff --git a/generator/src/functions/writeSingleFileArgTypeStatements.ts b/packages/generator/src/functions/writeSingleFileArgTypeStatements.ts similarity index 100% rename from generator/src/functions/writeSingleFileArgTypeStatements.ts rename to packages/generator/src/functions/writeSingleFileArgTypeStatements.ts diff --git a/generator/src/functions/writeSingleFileEnumStatements.ts b/packages/generator/src/functions/writeSingleFileEnumStatements.ts similarity index 100% rename from generator/src/functions/writeSingleFileEnumStatements.ts rename to packages/generator/src/functions/writeSingleFileEnumStatements.ts diff --git a/generator/src/functions/writeSingleFileHelperStatements.ts b/packages/generator/src/functions/writeSingleFileHelperStatements.ts similarity index 100% rename from generator/src/functions/writeSingleFileHelperStatements.ts rename to packages/generator/src/functions/writeSingleFileHelperStatements.ts diff --git a/generator/src/functions/writeSingleFileImportStatements.ts b/packages/generator/src/functions/writeSingleFileImportStatements.ts similarity index 100% rename from generator/src/functions/writeSingleFileImportStatements.ts rename to packages/generator/src/functions/writeSingleFileImportStatements.ts diff --git a/generator/src/functions/writeSingleFileIncludeSelectStatements.ts b/packages/generator/src/functions/writeSingleFileIncludeSelectStatements.ts similarity index 100% rename from generator/src/functions/writeSingleFileIncludeSelectStatements.ts rename to packages/generator/src/functions/writeSingleFileIncludeSelectStatements.ts diff --git a/generator/src/functions/writeSingleFileInputTypeStatements.ts b/packages/generator/src/functions/writeSingleFileInputTypeStatements.ts similarity index 100% rename from generator/src/functions/writeSingleFileInputTypeStatements.ts rename to packages/generator/src/functions/writeSingleFileInputTypeStatements.ts diff --git a/generator/src/functions/writeSingleFileModelStatements.ts b/packages/generator/src/functions/writeSingleFileModelStatements.ts similarity index 100% rename from generator/src/functions/writeSingleFileModelStatements.ts rename to packages/generator/src/functions/writeSingleFileModelStatements.ts diff --git a/generator/src/functions/writeSingleFileTypeStatements.ts b/packages/generator/src/functions/writeSingleFileTypeStatements.ts similarity index 100% rename from generator/src/functions/writeSingleFileTypeStatements.ts rename to packages/generator/src/functions/writeSingleFileTypeStatements.ts diff --git a/generator/src/generateMultipleFiles.ts b/packages/generator/src/generateMultipleFiles.ts similarity index 100% rename from generator/src/generateMultipleFiles.ts rename to packages/generator/src/generateMultipleFiles.ts diff --git a/generator/src/generateSingleFile.ts b/packages/generator/src/generateSingleFile.ts similarity index 100% rename from generator/src/generateSingleFile.ts rename to packages/generator/src/generateSingleFile.ts diff --git a/generator/src/generator.ts b/packages/generator/src/generator.ts similarity index 100% rename from generator/src/generator.ts rename to packages/generator/src/generator.ts diff --git a/generator/src/generatorHandler.ts b/packages/generator/src/generatorHandler.ts similarity index 100% rename from generator/src/generatorHandler.ts rename to packages/generator/src/generatorHandler.ts diff --git a/generator/src/schemas/generatorConfigSchema.ts b/packages/generator/src/schemas/generatorConfigSchema.ts similarity index 100% rename from generator/src/schemas/generatorConfigSchema.ts rename to packages/generator/src/schemas/generatorConfigSchema.ts diff --git a/generator/src/schemas/index.ts b/packages/generator/src/schemas/index.ts similarity index 100% rename from generator/src/schemas/index.ts rename to packages/generator/src/schemas/index.ts diff --git a/generator/src/types.ts b/packages/generator/src/types.ts similarity index 100% rename from generator/src/types.ts rename to packages/generator/src/types.ts diff --git a/generator/src/utils/getAllBoolCombinations.ts b/packages/generator/src/utils/getAllBoolCombinations.ts similarity index 100% rename from generator/src/utils/getAllBoolCombinations.ts rename to packages/generator/src/utils/getAllBoolCombinations.ts diff --git a/generator/src/utils/getPrismaClientOutputPath.ts b/packages/generator/src/utils/getPrismaClientOutputPath.ts similarity index 100% rename from generator/src/utils/getPrismaClientOutputPath.ts rename to packages/generator/src/utils/getPrismaClientOutputPath.ts diff --git a/generator/src/utils/getPrismaDbProvider.ts b/packages/generator/src/utils/getPrismaDbProvider.ts similarity index 100% rename from generator/src/utils/getPrismaDbProvider.ts rename to packages/generator/src/utils/getPrismaDbProvider.ts diff --git a/generator/src/utils/getStringVariants.ts b/packages/generator/src/utils/getStringVariants.ts similarity index 100% rename from generator/src/utils/getStringVariants.ts rename to packages/generator/src/utils/getStringVariants.ts diff --git a/generator/src/utils/index.ts b/packages/generator/src/utils/index.ts similarity index 100% rename from generator/src/utils/index.ts rename to packages/generator/src/utils/index.ts diff --git a/generator/src/utils/schemaParser.ts b/packages/generator/src/utils/schemaParser.ts similarity index 100% rename from generator/src/utils/schemaParser.ts rename to packages/generator/src/utils/schemaParser.ts diff --git a/generator/src/utils/skipGenerator.ts b/packages/generator/src/utils/skipGenerator.ts similarity index 100% rename from generator/src/utils/skipGenerator.ts rename to packages/generator/src/utils/skipGenerator.ts diff --git a/generator/test/classes/cases/testCustomClassProperties/extendedDMMF.prisma b/packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMF.prisma similarity index 100% rename from generator/test/classes/cases/testCustomClassProperties/extendedDMMF.prisma rename to packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMF.prisma diff --git a/generator/test/classes/cases/testCustomClassProperties/extendedDMMF.test.ts b/packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMF.test.ts similarity index 100% rename from generator/test/classes/cases/testCustomClassProperties/extendedDMMF.test.ts rename to packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMF.test.ts diff --git a/generator/test/classes/cases/testCustomClassProperties/extendedDMMFField.prisma b/packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMFField.prisma similarity index 100% rename from generator/test/classes/cases/testCustomClassProperties/extendedDMMFField.prisma rename to packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMFField.prisma diff --git a/generator/test/classes/cases/testCustomClassProperties/extendedDMMFField.test.ts b/packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMFField.test.ts similarity index 100% rename from generator/test/classes/cases/testCustomClassProperties/extendedDMMFField.test.ts rename to packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMFField.test.ts diff --git a/generator/test/classes/cases/testCustomClassProperties/extendedDMMFModel.prisma b/packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMFModel.prisma similarity index 100% rename from generator/test/classes/cases/testCustomClassProperties/extendedDMMFModel.prisma rename to packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMFModel.prisma diff --git a/generator/test/classes/cases/testCustomClassProperties/extendedDMMFModel.test.ts b/packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMFModel.test.ts similarity index 100% rename from generator/test/classes/cases/testCustomClassProperties/extendedDMMFModel.test.ts rename to packages/generator/test/classes/cases/testCustomClassProperties/extendedDMMFModel.test.ts diff --git a/generator/test/classes/cases/testValidators/custom.prisma b/packages/generator/test/classes/cases/testValidators/custom.prisma similarity index 100% rename from generator/test/classes/cases/testValidators/custom.prisma rename to packages/generator/test/classes/cases/testValidators/custom.prisma diff --git a/generator/test/classes/cases/testValidators/custom.test.ts b/packages/generator/test/classes/cases/testValidators/custom.test.ts similarity index 100% rename from generator/test/classes/cases/testValidators/custom.test.ts rename to packages/generator/test/classes/cases/testValidators/custom.test.ts diff --git a/generator/test/classes/cases/testValidators/date.prisma b/packages/generator/test/classes/cases/testValidators/date.prisma similarity index 100% rename from generator/test/classes/cases/testValidators/date.prisma rename to packages/generator/test/classes/cases/testValidators/date.prisma diff --git a/generator/test/classes/cases/testValidators/date.test.ts b/packages/generator/test/classes/cases/testValidators/date.test.ts similarity index 100% rename from generator/test/classes/cases/testValidators/date.test.ts rename to packages/generator/test/classes/cases/testValidators/date.test.ts diff --git a/generator/test/classes/cases/testValidators/number.prisma b/packages/generator/test/classes/cases/testValidators/number.prisma similarity index 100% rename from generator/test/classes/cases/testValidators/number.prisma rename to packages/generator/test/classes/cases/testValidators/number.prisma diff --git a/generator/test/classes/cases/testValidators/number.test.ts b/packages/generator/test/classes/cases/testValidators/number.test.ts similarity index 100% rename from generator/test/classes/cases/testValidators/number.test.ts rename to packages/generator/test/classes/cases/testValidators/number.test.ts diff --git a/generator/test/classes/cases/testValidators/string.prisma b/packages/generator/test/classes/cases/testValidators/string.prisma similarity index 100% rename from generator/test/classes/cases/testValidators/string.prisma rename to packages/generator/test/classes/cases/testValidators/string.prisma diff --git a/generator/test/classes/cases/testValidators/string.test.ts b/packages/generator/test/classes/cases/testValidators/string.test.ts similarity index 100% rename from generator/test/classes/cases/testValidators/string.test.ts rename to packages/generator/test/classes/cases/testValidators/string.test.ts diff --git a/generator/test/classes/cases/validatorErrors/invalidCustomError.prisma b/packages/generator/test/classes/cases/validatorErrors/invalidCustomError.prisma similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidCustomError.prisma rename to packages/generator/test/classes/cases/validatorErrors/invalidCustomError.prisma diff --git a/generator/test/classes/cases/validatorErrors/invalidCustomError.test.ts b/packages/generator/test/classes/cases/validatorErrors/invalidCustomError.test.ts similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidCustomError.test.ts rename to packages/generator/test/classes/cases/validatorErrors/invalidCustomError.test.ts diff --git a/generator/test/classes/cases/validatorErrors/invalidPrismaType.prisma b/packages/generator/test/classes/cases/validatorErrors/invalidPrismaType.prisma similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidPrismaType.prisma rename to packages/generator/test/classes/cases/validatorErrors/invalidPrismaType.prisma diff --git a/generator/test/classes/cases/validatorErrors/invalidPrismaType.test.ts b/packages/generator/test/classes/cases/validatorErrors/invalidPrismaType.test.ts similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidPrismaType.test.ts rename to packages/generator/test/classes/cases/validatorErrors/invalidPrismaType.test.ts diff --git a/generator/test/classes/cases/validatorErrors/invalidType.prisma b/packages/generator/test/classes/cases/validatorErrors/invalidType.prisma similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidType.prisma rename to packages/generator/test/classes/cases/validatorErrors/invalidType.prisma diff --git a/generator/test/classes/cases/validatorErrors/invalidType.test.ts b/packages/generator/test/classes/cases/validatorErrors/invalidType.test.ts similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidType.test.ts rename to packages/generator/test/classes/cases/validatorErrors/invalidType.test.ts diff --git a/generator/test/classes/cases/validatorErrors/invalidValidator.prisma b/packages/generator/test/classes/cases/validatorErrors/invalidValidator.prisma similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidValidator.prisma rename to packages/generator/test/classes/cases/validatorErrors/invalidValidator.prisma diff --git a/generator/test/classes/cases/validatorErrors/invalidValidator.test.ts b/packages/generator/test/classes/cases/validatorErrors/invalidValidator.test.ts similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidValidator.test.ts rename to packages/generator/test/classes/cases/validatorErrors/invalidValidator.test.ts diff --git a/generator/test/classes/cases/validatorErrors/invalidValidatorKey.prisma b/packages/generator/test/classes/cases/validatorErrors/invalidValidatorKey.prisma similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidValidatorKey.prisma rename to packages/generator/test/classes/cases/validatorErrors/invalidValidatorKey.prisma diff --git a/generator/test/classes/cases/validatorErrors/invalidValidatorKey.test.ts b/packages/generator/test/classes/cases/validatorErrors/invalidValidatorKey.test.ts similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidValidatorKey.test.ts rename to packages/generator/test/classes/cases/validatorErrors/invalidValidatorKey.test.ts diff --git a/generator/test/classes/cases/validatorErrors/invalidValidatorText.prisma b/packages/generator/test/classes/cases/validatorErrors/invalidValidatorText.prisma similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidValidatorText.prisma rename to packages/generator/test/classes/cases/validatorErrors/invalidValidatorText.prisma diff --git a/generator/test/classes/cases/validatorErrors/invalidValidatorText.test.ts b/packages/generator/test/classes/cases/validatorErrors/invalidValidatorText.test.ts similarity index 100% rename from generator/test/classes/cases/validatorErrors/invalidValidatorText.test.ts rename to packages/generator/test/classes/cases/validatorErrors/invalidValidatorText.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFField.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFField.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFField.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFField.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldArrayValidatorString.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldArrayValidatorString.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldArrayValidatorString.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldArrayValidatorString.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldBase.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldBase.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldBase.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldBase.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldCustomValidatorString.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldCustomValidatorString.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldCustomValidatorString.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldCustomValidatorString.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldDefaultValidators.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldDefaultValidators.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldDefaultValidators.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldDefaultValidators.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldOmitField.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldOmitField.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldOmitField.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldOmitField.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorCustomErrors.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorCustomErrors.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorCustomErrors.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorCustomErrors.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorMap.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorMap.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorMap.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorMap.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorMatch.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorMatch.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorMatch.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorMatch.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorPattern.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorPattern.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorPattern.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorPattern.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorString.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorString.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorString.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorString.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorType.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorType.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorType.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldValidatorType.test.ts diff --git a/generator/test/classes/extendedDMMFField/extendedDMMFFieldZodType.test.ts b/packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldZodType.test.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/extendedDMMFFieldZodType.test.ts rename to packages/generator/test/classes/extendedDMMFField/extendedDMMFFieldZodType.test.ts diff --git a/generator/test/classes/extendedDMMFField/setup.ts b/packages/generator/test/classes/extendedDMMFField/setup.ts similarity index 100% rename from generator/test/classes/extendedDMMFField/setup.ts rename to packages/generator/test/classes/extendedDMMFField/setup.ts diff --git a/generator/test/constants/regex.test.ts b/packages/generator/test/constants/regex.test.ts similarity index 100% rename from generator/test/constants/regex.test.ts rename to packages/generator/test/constants/regex.test.ts diff --git a/generator/test/functions/withRelations.prisma b/packages/generator/test/functions/withRelations.prisma similarity index 100% rename from generator/test/functions/withRelations.prisma rename to packages/generator/test/functions/withRelations.prisma diff --git a/generator/test/functions/withoutRelations.prisma b/packages/generator/test/functions/withoutRelations.prisma similarity index 100% rename from generator/test/functions/withoutRelations.prisma rename to packages/generator/test/functions/withoutRelations.prisma diff --git a/generator/test/functions/writeSingleFileImportStatements.test.ts b/packages/generator/test/functions/writeSingleFileImportStatements.test.ts similarity index 100% rename from generator/test/functions/writeSingleFileImportStatements.test.ts rename to packages/generator/test/functions/writeSingleFileImportStatements.test.ts diff --git a/generator/test/testUtils/fileWriter.ts b/packages/generator/test/testUtils/fileWriter.ts similarity index 100% rename from generator/test/testUtils/fileWriter.ts rename to packages/generator/test/testUtils/fileWriter.ts diff --git a/generator/test/testUtils/index.ts b/packages/generator/test/testUtils/index.ts similarity index 100% rename from generator/test/testUtils/index.ts rename to packages/generator/test/testUtils/index.ts diff --git a/generator/test/testUtils/loadDMMF.ts b/packages/generator/test/testUtils/loadDMMF.ts similarity index 100% rename from generator/test/testUtils/loadDMMF.ts rename to packages/generator/test/testUtils/loadDMMF.ts diff --git a/generator/test/utils/getAllBoolCombinations.test.ts b/packages/generator/test/utils/getAllBoolCombinations.test.ts similarity index 100% rename from generator/test/utils/getAllBoolCombinations.test.ts rename to packages/generator/test/utils/getAllBoolCombinations.test.ts diff --git a/generator/test/utils/getStringVariants.test.ts b/packages/generator/test/utils/getStringVariants.test.ts similarity index 100% rename from generator/test/utils/getStringVariants.test.ts rename to packages/generator/test/utils/getStringVariants.test.ts diff --git a/generator/tsconfig.json b/packages/generator/tsconfig.json similarity index 100% rename from generator/tsconfig.json rename to packages/generator/tsconfig.json diff --git a/generator/vite.config.ts b/packages/generator/vite.config.ts similarity index 100% rename from generator/vite.config.ts rename to packages/generator/vite.config.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5e3c665b85..e0881040d7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,7 +38,7 @@ importers: devDependencies: '@electric-sql/prisma-generator': specifier: workspace:* - version: link:../../generator + version: link:../../packages/generator '@prisma/client': specifier: 4.8.1 version: 4.8.1(prisma@4.8.1) @@ -122,63 +122,11 @@ importers: specifier: ^5.4.5 version: 5.4.5 - generator: - dependencies: - '@prisma/generator-helper': - specifier: ^4.11.0 - version: 4.11.0 - code-block-writer: - specifier: ^11.0.3 - version: 11.0.3 - lodash: - specifier: ^4.17.21 - version: 4.17.21 - zod: - specifier: 3.21.1 - version: 3.21.1 - devDependencies: - '@prisma/internals': - specifier: ^4.11.0 - version: 4.11.0 - '@types/lodash': - specifier: ^4.14.191 - version: 4.14.191 - '@typescript-eslint/eslint-plugin': - specifier: ^5.54.1 - version: 5.54.1(@typescript-eslint/parser@5.54.1(eslint@8.57.0)(typescript@4.9.5))(eslint@8.57.0)(typescript@4.9.5) - '@typescript-eslint/parser': - specifier: ^5.54.1 - version: 5.54.1(eslint@8.57.0)(typescript@4.9.5) - eslint: - specifier: ^8.35.0 - version: 8.57.0 - eslint-config-prettier: - specifier: ^8.7.0 - version: 8.7.0(eslint@8.57.0) - eslint-config-universe: - specifier: ^11.2.0 - version: 11.2.0(eslint@8.57.0)(prettier@2.8.4)(typescript@4.9.5) - eslint-plugin-import: - specifier: ^2.27.5 - version: 2.27.5(@typescript-eslint/parser@5.54.1(eslint@8.57.0)(typescript@4.9.5))(eslint@8.57.0) - eslint-plugin-prettier: - specifier: ^4.2.1 - version: 4.2.1(eslint-config-prettier@8.7.0(eslint@8.57.0))(eslint@8.57.0)(prettier@2.8.4) - prettier: - specifier: ^2.8.4 - version: 2.8.4 - typescript: - specifier: ^4.9.5 - version: 4.9.5 - vitest: - specifier: ^0.24.5 - version: 0.24.5(happy-dom@14.10.2)(jsdom@24.0.0)(terser@5.31.1) - packages/cli: dependencies: '@electric-sql/prisma-generator': specifier: workspace:* - version: link:../../generator + version: link:../generator '@prisma/client': specifier: 4.8.1 version: 4.8.1(prisma@4.8.1) @@ -548,6 +496,58 @@ importers: packages/electric: {} + packages/generator: + dependencies: + '@prisma/generator-helper': + specifier: ^4.11.0 + version: 4.11.0 + code-block-writer: + specifier: ^11.0.3 + version: 11.0.3 + lodash: + specifier: ^4.17.21 + version: 4.17.21 + zod: + specifier: 3.21.1 + version: 3.21.1 + devDependencies: + '@prisma/internals': + specifier: ^4.11.0 + version: 4.11.0 + '@types/lodash': + specifier: ^4.14.191 + version: 4.14.191 + '@typescript-eslint/eslint-plugin': + specifier: ^5.54.1 + version: 5.54.1(@typescript-eslint/parser@5.54.1(eslint@8.57.0)(typescript@4.9.5))(eslint@8.57.0)(typescript@4.9.5) + '@typescript-eslint/parser': + specifier: ^5.54.1 + version: 5.54.1(eslint@8.57.0)(typescript@4.9.5) + eslint: + specifier: ^8.35.0 + version: 8.57.0 + eslint-config-prettier: + specifier: ^8.7.0 + version: 8.7.0(eslint@8.57.0) + eslint-config-universe: + specifier: ^11.2.0 + version: 11.2.0(eslint@8.57.0)(prettier@2.8.4)(typescript@4.9.5) + eslint-plugin-import: + specifier: ^2.27.5 + version: 2.27.5(@typescript-eslint/parser@5.54.1(eslint@8.57.0)(typescript@4.9.5))(eslint@8.57.0) + eslint-plugin-prettier: + specifier: ^4.2.1 + version: 4.2.1(eslint-config-prettier@8.7.0(eslint@8.57.0))(eslint@8.57.0)(prettier@2.8.4) + prettier: + specifier: ^2.8.4 + version: 2.8.4 + typescript: + specifier: ^4.9.5 + version: 4.9.5 + vitest: + specifier: ^0.24.5 + version: 0.24.5(happy-dom@14.10.2)(jsdom@24.0.0)(terser@5.31.1) + packages/toolbar: dependencies: '@glideapps/glide-data-grid':