Skip to content

Commit

Permalink
Support Node.js v19 by using a custom loader
Browse files Browse the repository at this point in the history
  • Loading branch information
RainEggplant committed Feb 21, 2023
1 parent 044c2ca commit e35075a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"configurations": [
{
"type": "node",
"runtimeArgs": ["--experimental-specifier-resolution=node"],
"runtimeArgs": ["--experimental-loader=extensionless"],
"request": "launch",
"name": "Debug",
"skipFiles": ["<node_internals>/**"],
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"scripts": {
"build": "tsc --build",
"build:debug": "tsc --build && tsc --sourceMap",
"dev": "tsc-watch --onSuccess \"node --experimental-specifier-resolution=node dist/index.js\"",
"start": "node --experimental-specifier-resolution=node dist/index.js",
"dev": "tsc-watch --onSuccess \"node --experimental-loader=extensionless dist/index.js\"",
"start": "node --experimental-loader=extensionless dist/index.js",
"lint": "eslint src/**/*.{js,ts}",
"lint:fix": "eslint --fix src/**/*.{js,ts}",
"format": "prettier --check src/**/*.{js,ts}",
Expand Down Expand Up @@ -49,6 +49,7 @@
"chatgpt-v3": "npm:chatgpt@3.5.1",
"config": "^3.3.9",
"dotenv": "^16.0.3",
"extensionless": "^1.1.0",
"lodash": "^4.17.21",
"node-telegram-bot-api": "^0.60.0",
"puppeteer": "^19.7.1"
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit e35075a

Please sign in to comment.