Fix 'rake schema:regen'
This commit is contained in:
parent
c3b5c2377c
commit
b39017b6f2
3 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
schema:
|
||||
- ../twenty-server/share/twenty-server/schema.graphql
|
||||
- ../server/share/twenty/server/schema.graphql
|
||||
|
||||
generates:
|
||||
src/js/types/schema.ts:
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace :schema do
|
|||
|
||||
task :'regen:server' do
|
||||
Dir.chdir(workdir) do
|
||||
require "server"
|
||||
require "twenty/server"
|
||||
schema = File.join(Dir.getwd, "share", "server", "schema.graphql")
|
||||
mkdir_p File.dirname(schema)
|
||||
File.binwrite schema, Twenty::GraphQL::Schema.to_definition
|
||||
|
|
Loading…
Reference in a new issue