From 7a4fabeccf902dc761e567e067c89ee80fe73fe1 Mon Sep 17 00:00:00 2001 From: Kevin De Porre Date: Fri, 28 Jun 2024 16:32:10 +0200 Subject: [PATCH] Move generator to packages folder --- .github/workflows/generator_tests.yml | 4 +- .../generator}/.eslintrc.json | 0 {generator => packages/generator}/.gitignore | 0 {generator => packages/generator}/.npmignore | 0 .../generator}/.prettierignore | 0 .../generator}/.prettierrc.json | 0 .../generator}/CHANGELOG.md | 0 {generator => packages/generator}/Makefile | 0 {generator => packages/generator}/README.md | 2 +- {generator => packages/generator}/bin.js | 0 .../generator}/package.json | 0 {generator => packages/generator}/src/bin.ts | 0 .../generator}/src/classes/directoryHelper.ts | 0 .../generator}/src/classes/extendedDMMF.ts | 0 .../src/classes/extendedDMMFDatamodel.ts | 0 .../src/classes/extendedDMMFEnum.ts | 0 .../extendedDMMFField/extendedDMMFField.ts | 0 .../extendedDMMFFieldArrayValidatorString.ts | 0 .../extendedDMMFFieldBase.ts | 0 .../extendedDMMFFieldCustomValidatorString.ts | 0 .../extendedDMMFFieldDefaultValidators.ts | 0 .../extendedDMMFFieldOmitField.ts | 0 .../extendedDMMFFieldValidatorCustomErrors.ts | 0 .../extendedDMMFFieldValidatorMap.ts | 0 .../extendedDMMFFieldValidatorMatch.ts | 0 .../extendedDMMFFieldValidatorPattern.ts | 0 .../extendedDMMFFieldValidatorString.ts | 0 .../extendedDMMFFieldValidatorType.ts | 0 .../extendedDMMFFieldZodType.ts | 0 .../src/classes/extendedDMMFField/index.ts | 0 .../src/classes/extendedDMMFInputType.ts | 0 .../src/classes/extendedDMMFMappings.ts | 0 .../src/classes/extendedDMMFModel.ts | 0 .../src/classes/extendedDMMFOutputType.ts | 0 .../src/classes/extendedDMMFSchema.ts | 0 .../src/classes/extendedDMMFSchemaArg.ts | 0 .../classes/extendedDMMFSchemaArgInputType.ts | 0 .../src/classes/extendedDMMFSchemaEnum.ts | 0 .../src/classes/extendedDMMFSchemaField.ts | 0 .../generator}/src/classes/fileWriter.ts | 0 .../generator}/src/classes/formattedNames.ts | 0 .../generator}/src/classes/index.ts | 0 .../generator}/src/constants/index.ts | 0 .../generator}/src/constants/objectMaps.ts | 0 .../generator}/src/constants/regex.ts | 0 .../src/functions/contentWriters/index.ts | 0 .../src/functions/contentWriters/writeArgs.ts | 0 .../contentWriters/writeCountArgs.ts | 0 .../contentWriters/writeCountSelect.ts | 0 .../contentWriters/writeCustomEnum.ts | 0 .../contentWriters/writeDecimalJsLike.ts | 0 .../contentWriters/writeDecimalJsLikeList.ts | 0 .../functions/contentWriters/writeInclude.ts | 0 .../contentWriters/writeInputJsonValue.ts | 0 .../contentWriters/writeInputObjectType.ts | 0 .../writeIsValidDecimalInput.ts | 0 .../contentWriters/writeJsonValue.ts | 0 .../contentWriters/writeModelFields.ts | 0 .../contentWriters/writeModelOrType.ts | 0 .../contentWriters/writeNullableJsonValue.ts | 0 .../contentWriters/writeOutputObjectType.ts | 0 .../contentWriters/writePrismaEnum.ts | 0 .../functions/contentWriters/writeSelect.ts | 0 .../contentWriters/writeTransformJsonNull.ts | 0 .../src/functions/fieldWriters/index.ts | 0 .../src/functions/fieldWriters/writeJsDoc.ts | 0 .../functions/fieldWriters/writeModelBytes.ts | 0 .../fieldWriters/writeModelCustomValidator.ts | 0 .../fieldWriters/writeModelDecimal.ts | 0 .../functions/fieldWriters/writeModelEnum.ts | 0 .../fieldWriters/writeModelFieldAdditions.ts | 0 .../functions/fieldWriters/writeModelJson.ts | 0 .../fieldWriters/writeModelRelation.ts | 0 .../fieldWriters/writeModelScalar.ts | 0 .../fieldWriters/writeNonScalarType.ts | 0 .../functions/fieldWriters/writeScalarType.ts | 0 .../fieldWriters/writeSpecialType.ts | 0 .../generator}/src/functions/index.ts | 0 .../writeTableSchemas.ts | 0 .../functions/writeMultiFileArgTypeFiles.ts | 0 .../functions/writeMultiFileInputTypeFiles.ts | 0 .../src/functions/writeMultiFileModelFiles.ts | 0 .../writeSingleFileArgTypeStatements.ts | 0 .../writeSingleFileEnumStatements.ts | 0 .../writeSingleFileHelperStatements.ts | 0 .../writeSingleFileImportStatements.ts | 0 .../writeSingleFileIncludeSelectStatements.ts | 0 .../writeSingleFileInputTypeStatements.ts | 0 .../writeSingleFileModelStatements.ts | 0 .../writeSingleFileTypeStatements.ts | 0 .../generator}/src/generateMultipleFiles.ts | 0 .../generator}/src/generateSingleFile.ts | 0 .../generator}/src/generator.ts | 0 .../generator}/src/generatorHandler.ts | 0 .../src/schemas/generatorConfigSchema.ts | 0 .../generator}/src/schemas/index.ts | 0 .../generator}/src/types.ts | 0 .../src/utils/getAllBoolCombinations.ts | 0 .../src/utils/getPrismaClientOutputPath.ts | 0 .../src/utils/getPrismaDbProvider.ts | 0 .../generator}/src/utils/getStringVariants.ts | 0 .../generator}/src/utils/index.ts | 0 .../generator}/src/utils/schemaParser.ts | 0 .../generator}/src/utils/skipGenerator.ts | 0 .../extendedDMMF.prisma | 0 .../extendedDMMF.test.ts | 0 .../extendedDMMFField.prisma | 0 .../extendedDMMFField.test.ts | 0 .../extendedDMMFModel.prisma | 0 .../extendedDMMFModel.test.ts | 0 .../cases/testValidators/custom.prisma | 0 .../cases/testValidators/custom.test.ts | 0 .../classes/cases/testValidators/date.prisma | 0 .../classes/cases/testValidators/date.test.ts | 0 .../cases/testValidators/number.prisma | 0 .../cases/testValidators/number.test.ts | 0 .../cases/testValidators/string.prisma | 0 .../cases/testValidators/string.test.ts | 0 .../validatorErrors/invalidCustomError.prisma | 0 .../invalidCustomError.test.ts | 0 .../validatorErrors/invalidPrismaType.prisma | 0 .../validatorErrors/invalidPrismaType.test.ts | 0 .../cases/validatorErrors/invalidType.prisma | 0 .../cases/validatorErrors/invalidType.test.ts | 0 .../validatorErrors/invalidValidator.prisma | 0 .../validatorErrors/invalidValidator.test.ts | 0 .../invalidValidatorKey.prisma | 0 .../invalidValidatorKey.test.ts | 0 .../invalidValidatorText.prisma | 0 .../invalidValidatorText.test.ts | 0 .../extendedDMMFField.test.ts | 0 ...endedDMMFFieldArrayValidatorString.test.ts | 0 .../extendedDMMFFieldBase.test.ts | 0 ...ndedDMMFFieldCustomValidatorString.test.ts | 0 ...extendedDMMFFieldDefaultValidators.test.ts | 0 .../extendedDMMFFieldOmitField.test.ts | 0 ...ndedDMMFFieldValidatorCustomErrors.test.ts | 0 .../extendedDMMFFieldValidatorMap.test.ts | 0 .../extendedDMMFFieldValidatorMatch.test.ts | 0 .../extendedDMMFFieldValidatorPattern.test.ts | 0 .../extendedDMMFFieldValidatorString.test.ts | 0 .../extendedDMMFFieldValidatorType.test.ts | 0 .../extendedDMMFFieldZodType.test.ts | 0 .../test/classes/extendedDMMFField/setup.ts | 0 .../generator}/test/constants/regex.test.ts | 0 .../test/functions/withRelations.prisma | 0 .../test/functions/withoutRelations.prisma | 0 .../writeSingleFileImportStatements.test.ts | 0 .../generator}/test/testUtils/fileWriter.ts | 0 .../generator}/test/testUtils/index.ts | 0 .../generator}/test/testUtils/loadDMMF.ts | 0 .../test/utils/getAllBoolCombinations.test.ts | 0 .../test/utils/getStringVariants.test.ts | 0 .../generator}/tsconfig.json | 0 .../generator}/vite.config.ts | 0 pnpm-lock.yaml | 108 +++++++++--------- 156 files changed, 57 insertions(+), 57 deletions(-) rename {generator => packages/generator}/.eslintrc.json (100%) rename {generator => packages/generator}/.gitignore (100%) rename {generator => packages/generator}/.npmignore (100%) rename {generator => packages/generator}/.prettierignore (100%) rename {generator => packages/generator}/.prettierrc.json (100%) rename {generator => packages/generator}/CHANGELOG.md (100%) rename {generator => packages/generator}/Makefile (100%) rename {generator => packages/generator}/README.md (99%) rename {generator => packages/generator}/bin.js (100%) rename {generator => packages/generator}/package.json (100%) rename {generator => packages/generator}/src/bin.ts (100%) rename {generator => packages/generator}/src/classes/directoryHelper.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMF.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFDatamodel.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFEnum.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFField.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldArrayValidatorString.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldBase.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldCustomValidatorString.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldDefaultValidators.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldOmitField.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldValidatorCustomErrors.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldValidatorMap.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldValidatorMatch.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldValidatorPattern.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldValidatorString.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldValidatorType.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/extendedDMMFFieldZodType.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFField/index.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFInputType.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFMappings.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFModel.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFOutputType.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFSchema.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFSchemaArg.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFSchemaArgInputType.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFSchemaEnum.ts (100%) rename {generator => packages/generator}/src/classes/extendedDMMFSchemaField.ts (100%) rename {generator => packages/generator}/src/classes/fileWriter.ts (100%) rename {generator => packages/generator}/src/classes/formattedNames.ts (100%) rename {generator => packages/generator}/src/classes/index.ts (100%) rename {generator => packages/generator}/src/constants/index.ts (100%) rename {generator => packages/generator}/src/constants/objectMaps.ts (100%) rename {generator => packages/generator}/src/constants/regex.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/index.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeArgs.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeCountArgs.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeCountSelect.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeCustomEnum.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeDecimalJsLike.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeDecimalJsLikeList.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeInclude.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeInputJsonValue.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeInputObjectType.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeIsValidDecimalInput.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeJsonValue.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeModelFields.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeModelOrType.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeNullableJsonValue.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeOutputObjectType.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writePrismaEnum.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeSelect.ts (100%) rename {generator => packages/generator}/src/functions/contentWriters/writeTransformJsonNull.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/index.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeJsDoc.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeModelBytes.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeModelCustomValidator.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeModelDecimal.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeModelEnum.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeModelFieldAdditions.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeModelJson.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeModelRelation.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeModelScalar.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeNonScalarType.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeScalarType.ts (100%) rename {generator => packages/generator}/src/functions/fieldWriters/writeSpecialType.ts (100%) rename {generator => packages/generator}/src/functions/index.ts (100%) rename {generator => packages/generator}/src/functions/tableDescriptionWriters/writeTableSchemas.ts (100%) rename {generator => packages/generator}/src/functions/writeMultiFileArgTypeFiles.ts (100%) rename {generator => packages/generator}/src/functions/writeMultiFileInputTypeFiles.ts (100%) rename {generator => packages/generator}/src/functions/writeMultiFileModelFiles.ts (100%) rename {generator => packages/generator}/src/functions/writeSingleFileArgTypeStatements.ts (100%) rename {generator => packages/generator}/src/functions/writeSingleFileEnumStatements.ts (100%) rename {generator => packages/generator}/src/functions/writeSingleFileHelperStatements.ts (100%) rename {generator => packages/generator}/src/functions/writeSingleFileImportStatements.ts (100%) rename {generator => packages/generator}/src/functions/writeSingleFileIncludeSelectStatements.ts (100%) rename {generator => packages/generator}/src/functions/writeSingleFileInputTypeStatements.ts (100%) rename {generator => packages/generator}/src/functions/writeSingleFileModelStatements.ts (100%) rename {generator => packages/generator}/src/functions/writeSingleFileTypeStatements.ts (100%) rename {generator => packages/generator}/src/generateMultipleFiles.ts (100%) rename {generator => packages/generator}/src/generateSingleFile.ts (100%) rename {generator => packages/generator}/src/generator.ts (100%) rename {generator => packages/generator}/src/generatorHandler.ts (100%) rename {generator => packages/generator}/src/schemas/generatorConfigSchema.ts (100%) rename {generator => packages/generator}/src/schemas/index.ts (100%) rename {generator => packages/generator}/src/types.ts (100%) rename {generator => packages/generator}/src/utils/getAllBoolCombinations.ts (100%) rename {generator => packages/generator}/src/utils/getPrismaClientOutputPath.ts (100%) rename {generator => packages/generator}/src/utils/getPrismaDbProvider.ts (100%) rename {generator => packages/generator}/src/utils/getStringVariants.ts (100%) rename {generator => packages/generator}/src/utils/index.ts (100%) rename {generator => packages/generator}/src/utils/schemaParser.ts (100%) rename {generator => packages/generator}/src/utils/skipGenerator.ts (100%) rename {generator => packages/generator}/test/classes/cases/testCustomClassProperties/extendedDMMF.prisma (100%) rename {generator => packages/generator}/test/classes/cases/testCustomClassProperties/extendedDMMF.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/testCustomClassProperties/extendedDMMFField.prisma (100%) rename {generator => packages/generator}/test/classes/cases/testCustomClassProperties/extendedDMMFField.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/testCustomClassProperties/extendedDMMFModel.prisma (100%) rename {generator => packages/generator}/test/classes/cases/testCustomClassProperties/extendedDMMFModel.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/testValidators/custom.prisma (100%) rename {generator => packages/generator}/test/classes/cases/testValidators/custom.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/testValidators/date.prisma (100%) rename {generator => packages/generator}/test/classes/cases/testValidators/date.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/testValidators/number.prisma (100%) rename {generator => packages/generator}/test/classes/cases/testValidators/number.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/testValidators/string.prisma (100%) rename {generator => packages/generator}/test/classes/cases/testValidators/string.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidCustomError.prisma (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidCustomError.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidPrismaType.prisma (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidPrismaType.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidType.prisma (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidType.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidValidator.prisma (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidValidator.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidValidatorKey.prisma (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidValidatorKey.test.ts (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidValidatorText.prisma (100%) rename {generator => packages/generator}/test/classes/cases/validatorErrors/invalidValidatorText.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFField.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldArrayValidatorString.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldBase.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldCustomValidatorString.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldDefaultValidators.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldOmitField.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldValidatorCustomErrors.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldValidatorMap.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldValidatorMatch.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldValidatorPattern.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldValidatorString.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldValidatorType.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/extendedDMMFFieldZodType.test.ts (100%) rename {generator => packages/generator}/test/classes/extendedDMMFField/setup.ts (100%) rename {generator => packages/generator}/test/constants/regex.test.ts (100%) rename {generator => packages/generator}/test/functions/withRelations.prisma (100%) rename {generator => packages/generator}/test/functions/withoutRelations.prisma (100%) rename {generator => packages/generator}/test/functions/writeSingleFileImportStatements.test.ts (100%) rename {generator => packages/generator}/test/testUtils/fileWriter.ts (100%) rename {generator => packages/generator}/test/testUtils/index.ts (100%) rename {generator => packages/generator}/test/testUtils/loadDMMF.ts (100%) rename {generator => packages/generator}/test/utils/getAllBoolCombinations.test.ts (100%) rename {generator => packages/generator}/test/utils/getStringVariants.test.ts (100%) rename {generator => packages/generator}/tsconfig.json (100%) rename {generator => packages/generator}/vite.config.ts (100%) 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/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':