From a384fa7391f12c6d02a864454cbbb9a6559b92dc Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 17 Feb 2024 20:41:35 -0300 Subject: [PATCH] Fix stale references to twenty-backend --- twenty-client/Rakefile.rb | 2 +- twenty-server/Rakefile.rb | 6 +++--- .../share/{twenty-backend => twenty-server}/schema.graphql | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename twenty-server/share/{twenty-backend => twenty-server}/schema.graphql (100%) diff --git a/twenty-client/Rakefile.rb b/twenty-client/Rakefile.rb index b96a24e..ef4c778 100644 --- a/twenty-client/Rakefile.rb +++ b/twenty-client/Rakefile.rb @@ -3,7 +3,7 @@ load 'tasks/nanoc.rake' namespace :schema do desc "Generate src/js/types/schema.ts" task :regen do - path = File.join "..", "twenty-backend" + path = File.join "..", "twenty-server" Bundler.with_unbundled_env { Dir.chdir(path) { sh "bundle exec rake schema:regen" } } diff --git a/twenty-server/Rakefile.rb b/twenty-server/Rakefile.rb index 4afd658..1e23b82 100644 --- a/twenty-server/Rakefile.rb +++ b/twenty-server/Rakefile.rb @@ -2,10 +2,10 @@ require "bundler/setup" require "fileutils" namespace :schema do - desc "Generate share/twenty-backend/schema.graphql" + desc "Generate share/twenty-server/schema.graphql" task :regen do - require "twenty-backend" - schema = File.join(__dir__, "share", "twenty-backend", "schema.graphql") + require "twenty-server" + schema = File.join(__dir__, "share", "twenty-server", "schema.graphql") FileUtils.mkdir_p File.dirname(schema) File.binwrite schema, Twenty::GraphQL::Schema.to_definition end diff --git a/twenty-server/share/twenty-backend/schema.graphql b/twenty-server/share/twenty-server/schema.graphql similarity index 100% rename from twenty-server/share/twenty-backend/schema.graphql rename to twenty-server/share/twenty-server/schema.graphql