Skip to content

Commit

Permalink
fix: Error when building some services
Browse files Browse the repository at this point in the history
  • Loading branch information
kimyvgy committed Sep 20, 2023
1 parent 08e607a commit 9fa190c
Show file tree
Hide file tree
Showing 17 changed files with 456 additions and 1,335 deletions.
6 changes: 6 additions & 0 deletions src/account-service/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
.git
.env
.env.*
.gitignore
.devspace
devspace_start.sh
devspace.yaml
README.md
7 changes: 7 additions & 0 deletions src/account-subgraph/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
target
.git
.env
.env.*
.gitignore
.devspace
devspace_start.sh
devspace.yaml
README.md
8 changes: 8 additions & 0 deletions src/contents-view-subgraph/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.git
node_modules
dist
.env
.env.*
.gitignore
.devspace
devspace_start.sh
devspace.yaml
README.md
yarn-error.log
18 changes: 8 additions & 10 deletions src/contents-view-subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@
"version": "1.0.0",
"license": "MIT",
"scripts": {
"build": "tsc",
"start": "node -r esm ./dist/index.js",
"dev": "run-p \"dev:*\"",
"dev:ts": "tsc -w",
"dev:node": "nodemon -r esm ./dist/index.js"
"dev": "cross-env NODE_ENV=development nodemon src/index.ts",
"build": "cross-env NODE_ENV=production tsc -p .",
"start": "cross-env NODE_ENV=production node dist/index.js"
},
"dependencies": {
"@apollo/server": "^4.4.1",
"esm": "^3.2.25",
"cross-env": "^7.0.3",
"graphql": "^16.6.0",
"viblo-sdk": "0.1.0-beta.24"
},
"devDependencies": {
"@types/node": "^18.15.0",
"nodemon": "^2.0.21",
"npm-run-all": "^4.1.5",
"typescript": "^4.9.5"
"@types/node": "^20.6.3",
"nodemon": "^3.0.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
}
}
2 changes: 1 addition & 1 deletion src/contents-view-subgraph/src/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { markdown } from "./markdown";

export const resolvers = {
Query: {
contentsView: (_, { contents }) => {
contentsView: (_: any, { contents }: any) => {
return markdown.render(contents);
},
},
Expand Down
29 changes: 19 additions & 10 deletions src/contents-view-subgraph/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
{
"include": ["src/**/*.ts"],
"exclude": ["node_modules", ".vscode"],
"compilerOptions": {
"rootDirs": ["src"],
"outDir": "dist",
"lib": ["es2020"],
"target": "es2020",
"module": "esnext",
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
"types": ["node"]
}
}
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"allowJs": true,
"skipLibCheck": true,
"sourceMap": true,
"rootDir": "src",
"outDir": "dist",
"types": [
"node"
]
},
"include": [
"src/**/*"
]
}
Loading

0 comments on commit 9fa190c

Please sign in to comment.