Fix stale references to twenty-backend
This commit is contained in:
parent
f2f1474fac
commit
a384fa7391
3 changed files with 4 additions and 4 deletions
|
@ -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" }
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue