|
@@ -11,19 +11,17 @@ set +a
|
|
|
|
|
|
yarn clean
|
|
yarn clean
|
|
|
|
|
|
-# We generate the code for each service separately to be able to specify
|
|
|
|
-# separate database names.
|
|
|
|
|
|
+# Build graphql-server customizing DB name
|
|
|
|
+yarn codegen
|
|
|
|
|
|
-# Build indexer customizing DB name
|
|
|
|
-DB_NAME=${INDEXER_DB_NAME} yarn codegen:indexer
|
|
|
|
|
|
+echo "Building mappings..."
|
|
|
|
+(cd mappings && yarn build)
|
|
|
|
|
|
-# Build graphql-server customizing DB name
|
|
|
|
-DB_NAME=${PROCESSOR_DB_NAME} yarn codegen:server
|
|
|
|
|
|
+# Copy joy types
|
|
|
|
+cp ../types/augment/all/defs.json ./mappings/lib/mappings/generated/types/typedefs.json
|
|
|
|
|
|
# We run yarn again to ensure processor and indexer dependencies are installed
|
|
# We run yarn again to ensure processor and indexer dependencies are installed
|
|
# and are inline with root workspace resolutions
|
|
# and are inline with root workspace resolutions
|
|
yarn
|
|
yarn
|
|
|
|
|
|
ln -s ../../../../../node_modules/typeorm/cli.js generated/graphql-server/node_modules/.bin/typeorm || :
|
|
ln -s ../../../../../node_modules/typeorm/cli.js generated/graphql-server/node_modules/.bin/typeorm || :
|
|
-
|
|
|
|
-yarn tsc --build tsconfig.json
|
|
|