Skip to content

Commit

Permalink
WIP: avoid local git pollution
Browse files Browse the repository at this point in the history
  • Loading branch information
Mersho committed Oct 25, 2023
1 parent 68c90b7 commit d22ced1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules
.env
admin.macaroon
tls.cert
tls.cert
dist/
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
"description": "P2P lightning network telegram bot",
"main": "app.js",
"scripts": {
"prestart": "tsc",
"start": "node ./app",
"predev": "tsc",
"copy": "cp -r ./locales/ ./tests/ ./dist/",
"prestart": "tsc && npm run copy",
"start": "node ./dist/app",
"predev": "tsc && npm run copy",
"dev": "nodemon ./app",
"lint": "eslint .",
"format": "prettier --write '**/*.js'",
"pretest": "tsc",
"test": "export NODE_ENV=test && mocha --exit tests/"
"pretest": "tsc && npm run copy",
"test": "export NODE_ENV=test && mocha --exit dist/tests/"
},
"license": "MIT",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"compilerOptions": {
"strict": true,
"allowJs": true,
"outDir": "./dist/",
"skipLibCheck": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"downlevelIteration": true
Expand Down

0 comments on commit d22ced1

Please sign in to comment.