Skip to content

Commit

Permalink
feat: pnpm instead of npm
Browse files Browse the repository at this point in the history
  • Loading branch information
rexdotsh committed Dec 25, 2024
1 parent 8c0b156 commit 91bd58f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,53 +5,58 @@
"tasks": [
{
"label": "watch",
"dependsOn": ["npm: watch:tsc", "npm: watch:esbuild"],
"dependsOn": ["pnpm: watch:tsc", "pnpm: watch:esbuild"],
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
},
"problemMatcher": []
},
{
"type": "npm",
"script": "watch:esbuild",
"type": "shell",
"command": "pnpm",
"args": ["run", "watch:esbuild"],
"group": "build",
"problemMatcher": "$esbuild-watch",
"isBackground": true,
"label": "npm: watch:esbuild",
"label": "pnpm: watch:esbuild",
"presentation": {
"group": "watch",
"reveal": "never"
}
},
{
"type": "npm",
"script": "watch:tsc",
"type": "shell",
"command": "pnpm",
"args": ["run", "watch:tsc"],
"group": "build",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"label": "npm: watch:tsc",
"label": "pnpm: watch:tsc",
"presentation": {
"group": "watch",
"reveal": "never"
}
},
{
"type": "npm",
"script": "watch-tests",
"type": "shell",
"command": "pnpm",
"args": ["run", "watch-tests"],
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
"group": "build"
"group": "build",
"label": "pnpm: watch-tests"
},
{
"label": "tasks: watch-tests",
"dependsOn": ["npm: watch", "npm: watch-tests"],
"dependsOn": ["pnpm: watch", "pnpm: watch-tests"],
"problemMatcher": []
}
]
Expand Down
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ const config = {
use: [
{
loader: "ts-loader",
options: {
transpileOnly: true, // faster compilation in watch mode
},
},
],
},
Expand Down

0 comments on commit 91bd58f

Please sign in to comment.