Skip to content

Commit

Permalink
copy generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcasey committed Sep 8, 2024
1 parent a34e218 commit 0a2b779
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 110 deletions.
2 changes: 1 addition & 1 deletion apps/ceramic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY --parents @connect-shared/package.json \
.

# Copy compiled code
COPY --parents apps/*/dist .
COPY --parents apps/*/dist apps/ceramic/generated .

ENV PORT=3000

Expand Down
2 changes: 1 addition & 1 deletion apps/ceramic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ceramic:graphql:stg": "npx dotenv -e .env.staging -- tsx src/ceramic-client.ts"
},
"dependencies": {
"@ceramicnetwork/http-client": "^5.16.0",
"@ceramicnetwork/http-client": "5.6",
"@ceramicnetwork/streamid": "^3.4.1",
"@composedb/devtools-node": "^0.7.1",
"dids": "^4.0.4",
Expand Down
1 change: 0 additions & 1 deletion apps/ceramic/src/ceramic-client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable import/no-extraneous-dependencies */
import { log } from '@charmverse/core/log';
import { serveEncodedDefinition } from '@composedb/devtools-node';

Expand Down
6 changes: 2 additions & 4 deletions apps/ceramic/src/deploy-composites.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/* eslint-disable import/no-extraneous-dependencies */

import { createComposite, readEncodedComposite, writeEncodedComposite } from '@composedb/devtools-node';
import ora from 'ora';

import { getCeramicClient } from './authenticate';

const folder = 'apps/ceramic/src';
const folder = 'apps/ceramic';

function getCompositesFolder(filename: string) {
return `${folder}/generated/${filename}`;
Expand All @@ -22,7 +20,7 @@ export async function writeCompositeJson() {

spinner.info('creating composite for runtime usage');

const compositeGraphQLDefinition = await createComposite(ceramic, `${folder}/credentials.gql`);
const compositeGraphQLDefinition = await createComposite(ceramic, `${folder}/src/credentials.gql`);
await writeEncodedComposite(compositeGraphQLDefinition, compositeDefinitionFile);
}

Expand Down
105 changes: 2 additions & 103 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0a2b779

Please sign in to comment.