Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hot reload #38

Merged
merged 3 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"build": "tsc --project .",
"clean": "rm -rf coverage dist",
"dev": "pnpm ts-node src/index.ts",
"dev": "nodemon --ext ts,js,json,env --exec \"pnpm ts-node src/index.ts\"",
"docker:build": "docker compose --file docker/docker-compose.yml build",
"docker:start:detach": "docker compose --file docker/docker-compose.yml up --detach",
"docker:start": "docker compose --file docker/docker-compose.yml up",
Expand All @@ -18,13 +18,15 @@
"eslint:fix": "eslint . --ext .js,.ts --fix",
"prettier:check": "prettier --check \"./**/*.{js,ts,md,json}\"",
"prettier:fix": "prettier --write \"./**/*.{js,ts,md,json}\"",
"start-prod": "node dist/src/index.js",
"test": "jest"
},
"license": "MIT",
"devDependencies": {
"@types/express": "^4.17.17",
"@types/lodash": "^4.14.198",
"@types/source-map-support": "^0.5.7"
"@types/source-map-support": "^0.5.7",
"nodemon": "^3.0.1"
},
"dependencies": {
"@api3/promise-utils": "0.4.0",
Expand Down
6 changes: 4 additions & 2 deletions packages/data-pusher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "tsc --project .",
"clean": "rm -rf coverage dist",
"dev": "ts-node src/index.ts",
"dev": "nodemon --ext ts,js,json,env --exec \"pnpm ts-node src/index.ts\"",
"docker:build": "docker compose --file docker/docker-compose.yml build",
"docker:start:detach": "docker compose --file docker/docker-compose.yml up --detach",
"docker:start": "docker compose --file docker/docker-compose.yml up",
Expand All @@ -17,6 +17,7 @@
"eslint:fix": "eslint . --ext .js,.ts --fix",
"prettier:check": "prettier --check \"./**/*.{js,ts,md,yml,json}\"",
"prettier:fix": "prettier --write \"./**/*.{js,ts,md,yml,json}\"",
"start-prod": "node dist/src/index.js",
"test": "jest"
},
"license": "MIT",
Expand All @@ -40,6 +41,7 @@
"devDependencies": {
"@types/express": "^4.17.17",
"@types/lodash": "^4.14.198",
"@types/source-map-support": "^0.5.7"
"@types/source-map-support": "^0.5.7",
"nodemon": "^3.0.1"
}
}
1 change: 0 additions & 1 deletion packages/data-pusher/src/api-requests/data-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export const makeTemplateRequests = async (signedApiUpdate: SignedApiUpdate): Pr
if (!response.success) {
const message = `Failed to post process successful API call`;
getLogger().warn(message, { templateId, operationTemplateId, errorMessage: response.errorMessage });
process.exit(1);
return null;
}
return [templateId, response];
Expand Down
103 changes: 99 additions & 4 deletions pnpm-lock.yaml

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