Skip to content

Commit

Permalink
fix: eliminate punycode warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mindrunner committed Dec 14, 2024
1 parent 2615ab7 commit 78bc9f5
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/scripts/basedbot.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

node main/basedbot
node -r ./setup-aliases.js main/basedbot
2 changes: 1 addition & 1 deletion docker/scripts/fleetbot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

migrate-db.sh

node main/fleetbot
node -r ./setup-aliases.js main/fleetbot
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"lint:docker": "docker run --rm -i hadolint/hadolint < cicd/docker/app/Dockerfile",
"lint:yaml": "yamllint .",
"clean": "rm -rf build",
"start:fleetbot": "ts-node-dev --transpile-only --rs --inspect=19230 -- src/main/fleetbot",
"start:basedbot": "ts-node-dev --transpile-only --rs --inspect=19230 -- src/main/basedbot",
"start:fleetbot": "ts-node-dev -r ./src/setup-aliases.ts --transpile-only --rs --inspect=19230 -- src/main/fleetbot",
"start:basedbot": "ts-node-dev -r ./src/setup-aliases.ts --transpile-only --rs --inspect=19230 -- src/main/basedbot",
"typeorm": "typeorm-ts-node-commonjs -d src/db/db-data-source.ts"
},
"repository": {
Expand Down Expand Up @@ -51,6 +51,7 @@
"dayjs": "^1.11.13",
"dotenv": "^16.4.7",
"ed25519-hd-key": "^1.3.0",
"module-alias": "^2.2.3",
"pg": "^8.13.1",
"pretty-error": "^4.0.0",
"superagent": "^10.1.1",
Expand All @@ -64,6 +65,7 @@
"@types/bn.js": "^5.1.6",
"@types/bs58": "^4.0.4",
"@types/chance": "^1.1.6",
"@types/module-alias": "^2.0.4",
"@types/pg": "^8.11.10",
"@types/superagent": "^8.1.9",
"@typescript-eslint/eslint-plugin": "^8.18.0",
Expand Down
16 changes: 16 additions & 0 deletions pnpm-lock.yaml

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

2 changes: 2 additions & 0 deletions src/setup-aliases.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const moduleAlias = require('module-alias');

Check failure on line 1 in src/setup-aliases.ts

View workflow job for this annotation

GitHub Actions / lint

A `require()` style import is forbidden

Check failure on line 1 in src/setup-aliases.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `;`
moduleAlias.addAlias('punycode', 'punycode/');

Check failure on line 2 in src/setup-aliases.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `;`

0 comments on commit 78bc9f5

Please sign in to comment.