Fix stale references to twenty-backend

This commit is contained in:
0x1eef 2024-02-17 20:41:35 -03:00
parent f2f1474fac
commit a384fa7391
3 changed files with 4 additions and 4 deletions

View file

@ -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" }
}

View file

@ -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