Skip to content

Commit

Permalink
fix: delete shebang and define node version precisely
Browse files Browse the repository at this point in the history
Other changes:
– changes command in Makefile
  • Loading branch information
Vyachowski committed Dec 15, 2023
1 parent 924cbed commit 20789be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ install:
dev:
nodemon --env-file=.env src/index.js
dev-bot:
nodemon --env-file=.env bin/bot.js
nodemon --no-deprecation --env-file=.env bin/bot.js
start:
node --env-file=.env src/index.js
node --no-deprecation src/index.js
start-bot:
node --env-file=.env bin/bot.js
node --no-deprecation bin/bot.js
publish:
npm publish --dry-run
test:
Expand Down
1 change: 0 additions & 1 deletion bin/bot.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env node --env-file=.env
import { Bot } from 'grammy';
import { getIntroMessage, provideMenuWithGroceryList } from '../src/index.js';
import { basicCookBook } from '../src/basicCookBook.js';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"type": "module",
"engines": {
"node": ">=21.1.0"
"node": "=21.1.0"
},
"scripts": {
"test": "npx jest --detectOpenHandles --env-file=.env",
Expand Down

0 comments on commit 20789be

Please sign in to comment.