mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 11:38:48 -06:00
This eliminates a significant number of dependencies, eliminating all npm audit issues, speeding up `npm ci` by 20%, and overall making the build faster (faster startup, direct code is faster than streams, etc) and clearer to understand. I'm finding it much easier to make build changes for the module transform with this; I can more clearly indicate task dependencies and prevent running tasks that don't need to be run. Given we're changing our build process entirely (new deps, new steps), it seems like this is a good time to change things up.
55 lines
1.7 KiB
JSON
55 lines
1.7 KiB
JSON
{
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
// Kept for backwards compat for old launch.json files so it's
|
|
// less annoying if moving up to the new build or going back to
|
|
// the old build.
|
|
//
|
|
// This is first because the acutal "npm: build:tests" task
|
|
// below has the same script value, and VS Code ignores labels
|
|
// and deduplicates them.
|
|
// https://github.com/microsoft/vscode/issues/93001
|
|
"label": "gulp: tests",
|
|
"type": "npm",
|
|
"script": "build:tests",
|
|
"group": "build",
|
|
"hide": true,
|
|
"problemMatcher": [
|
|
"$tsc"
|
|
]
|
|
},
|
|
{
|
|
"label": "tsc: watch ./src",
|
|
"type": "shell",
|
|
"command": "node",
|
|
"args": ["${workspaceFolder}/lib/tsc.js", "--build", "${workspaceFolder}/src", "--watch"],
|
|
"group": "build",
|
|
"isBackground": true,
|
|
"problemMatcher": [
|
|
"$tsc-watch"
|
|
]
|
|
},
|
|
{
|
|
"label": "npm: build:compiler",
|
|
"type": "npm",
|
|
"script": "build:compiler",
|
|
"group": "build",
|
|
"problemMatcher": [
|
|
"$tsc"
|
|
]
|
|
},
|
|
{
|
|
"label": "npm: build:tests",
|
|
"type": "npm",
|
|
"script": "build:tests",
|
|
"group": "build",
|
|
"problemMatcher": [
|
|
"$tsc"
|
|
]
|
|
},
|
|
]
|
|
}
|