Skip to content

Commit

Permalink
Fix babel compilation in VSCode tasks
Browse files Browse the repository at this point in the history
Add support for typescript files
+ cleanup old unused SSR env variable
  • Loading branch information
MonkeyDo committed Jun 4, 2024
1 parent dac72ad commit b3bc879
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// You can point to a specific file or folder to run only those tests
"${workspaceFolder}/test/"
],
"env": {"NODE_ENV":"test","SSR":true},
"env": {"NODE_ENV":"test", "DEBUG":"bbsite"},
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": ""
},
Expand All @@ -67,7 +67,7 @@
// If you want to run only on test file, put the path here:
"${workspaceFolder}/test/src/api/routes/test-search.js"
],
"env": {"NODE_ENV":"test","SSR":true},
"env": {"NODE_ENV":"test","DEBUG":"bbsite"},
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": "build-api-with-sourcemaps"
}
Expand Down
6 changes: 4 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"--out-dir",
"lib",
"--source-maps",
"--ignore", "src/api/"
"--ignore", "src/api/",
"--extensions", ".js,.jsx,.ts,.tsx"
],
"isBackground": false
},
Expand All @@ -38,7 +39,8 @@
"--ignore", "src/server","src/client",
"--source-maps",
"--out-dir",
"lib"
"lib",
"--extensions", ".js,.jsx,.ts,.tsx"
],
"isBackground": false
},
Expand Down

0 comments on commit b3bc879

Please sign in to comment.