-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: adds order attribute to the ICommunity interface * chore: moves generated files to the 'dist' directory, and adds it to the .gitignore file * refactor: removes 'orders' field from the ICommunity interface The 'orders' field is not part of the Mongoose document, but rather it's something that's calculated on-the-fly as part of the response to the `/findcomms` command for each community. Converting the mongoose document to a plain object gets rid of the TSC errors without having to introduce an 'orders' field to the ICommunity interface. This solution is preferred as the ICommunity interface should ideally mirror what's stored in the database.
- Loading branch information
Showing
8 changed files
with
606 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
.env | ||
admin.macaroon | ||
tls.cert | ||
tls.cert | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,16 @@ | |
"version": "0.11.1", | ||
"author": "Francisco Calderón <[email protected]>", | ||
"description": "P2P lightning network telegram bot", | ||
"main": "app.js", | ||
"main": "dist/app.js", | ||
"scripts": { | ||
"prestart": "npx tsc", | ||
"start": "node ./app", | ||
"start": "node ./dist/app", | ||
"predev": "npx tsc", | ||
"dev": "nodemon ./app", | ||
"dev": "nodemon ./dist/app", | ||
"lint": "eslint .", | ||
"format": "prettier --write '**/*.js'", | ||
"pretest": "npx tsc", | ||
"test": "export NODE_ENV=test && mocha --exit tests/**/*.spec.js" | ||
"format": "prettier --write '**/*.{js,ts}'", | ||
"pretest": "tsc -p tsconfig.test.json", | ||
"test": "export NODE_ENV=test && mocha --exit 'dist/tests/**/*.spec.js'" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
{ | ||
"compilerOptions": { | ||
"strict": true, | ||
"strict": false, | ||
"esModuleInterop": true, | ||
"resolveJsonModule": true, | ||
"downlevelIteration": true | ||
} | ||
"downlevelIteration": true, | ||
"outDir": "./dist", | ||
"rootDir": ".", | ||
"allowJs": true, | ||
"moduleResolution": "node" | ||
}, | ||
"include": [ | ||
"app.ts", | ||
"bot/**/*", | ||
"jobs/**/*", | ||
"ln/**/*", | ||
"lnurl/**/*", | ||
"models/**/*", | ||
"util/**/*", | ||
"locales/**/*", | ||
], | ||
"exclude": ["node_modules", "dist", "tests", "locales"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": [ | ||
"tests/**/*" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} |