Skip to content

Commit 4d5d97f

Browse files
committed
Do not remove out directory before watch
This is re-used for incremental compilation. Also remove del since that was the only use (and we can use fs.rmdir in the future if we need something like this).
1 parent 92de2ae commit 4d5d97f

File tree

3 files changed

+9
-66
lines changed

3 files changed

+9
-66
lines changed

ci/dev/watch.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { spawn, fork, ChildProcess } from "child_process"
2-
import del from "del"
32
import { promises as fs } from "fs"
43
import * as path from "path"
54
import { CompilationStats, onLine, OnLineCallback } from "../../src/node/util"
@@ -57,8 +56,6 @@ class Watcher {
5756
process.on(event, () => this.dispose(0))
5857
}
5958

60-
this.cleanFiles()
61-
6259
for (const [processName, devProcess] of Object.entries(this.compilers)) {
6360
if (!devProcess) continue
6461

@@ -121,15 +118,6 @@ class Watcher {
121118

122119
//#region Utilities
123120

124-
/**
125-
* Cleans files from previous builds.
126-
*/
127-
private cleanFiles(): Promise<string[]> {
128-
console.log("[Watcher]", "Cleaning files from previous builds...")
129-
130-
return del(["out/**/*"])
131-
}
132-
133121
/**
134122
* Emits a file containing compilation data.
135123
* This is especially useful when Express needs to determine if VS Code is still compiling.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"@typescript-eslint/parser": "^5.0.0",
5353
"audit-ci": "^5.0.0",
5454
"codecov": "^3.8.3",
55-
"del": "^6.0.0",
5655
"doctoc": "^2.0.0",
5756
"eslint": "^7.7.0",
5857
"eslint-config-prettier": "^8.1.0",

yarn.lock

Lines changed: 9 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -615,14 +615,6 @@ agent-base@6, agent-base@^6.0.0, agent-base@^6.0.2:
615615
dependencies:
616616
debug "4"
617617

618-
aggregate-error@^3.0.0:
619-
version "3.1.0"
620-
resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a"
621-
integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==
622-
dependencies:
623-
clean-stack "^2.0.0"
624-
indent-string "^4.0.0"
625-
626618
ajv@^6.10.0, ajv@^6.12.4:
627619
version "6.12.6"
628620
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"
@@ -977,11 +969,6 @@ chownr@^2.0.0:
977969
resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece"
978970
integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==
979971

980-
clean-stack@^2.0.0:
981-
version "2.2.0"
982-
resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b"
983-
integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==
984-
985972
cliui@^7.0.2:
986973
version "7.0.4"
987974
resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f"
@@ -1235,20 +1222,6 @@ degenerator@^3.0.1:
12351222
esprima "^4.0.0"
12361223
vm2 "^3.9.3"
12371224

1238-
del@^6.0.0:
1239-
version "6.0.0"
1240-
resolved "https://registry.yarnpkg.com/del/-/del-6.0.0.tgz#0b40d0332cea743f1614f818be4feb717714c952"
1241-
integrity sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==
1242-
dependencies:
1243-
globby "^11.0.1"
1244-
graceful-fs "^4.2.4"
1245-
is-glob "^4.0.1"
1246-
is-path-cwd "^2.2.0"
1247-
is-path-inside "^3.0.2"
1248-
p-map "^4.0.0"
1249-
rimraf "^3.0.2"
1250-
slash "^3.0.0"
1251-
12521225
delegates@^1.0.0:
12531226
version "1.0.0"
12541227
resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a"
@@ -2082,10 +2055,10 @@ globals@^13.6.0, globals@^13.9.0:
20822055
dependencies:
20832056
type-fest "^0.20.2"
20842057

2085-
globby@^11.0.1, globby@^11.0.4:
2086-
version "11.0.4"
2087-
resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.4.tgz#2cbaff77c2f2a62e71e9b2813a67b97a3a3001a5"
2088-
integrity sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==
2058+
globby@^11.0.3:
2059+
version "11.0.3"
2060+
resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.3.tgz#9b1f0cb523e171dd1ad8c7b2a9fb4b644b9593cb"
2061+
integrity sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==
20892062
dependencies:
20902063
array-union "^2.1.0"
20912064
dir-glob "^3.0.1"
@@ -2094,10 +2067,10 @@ globby@^11.0.1, globby@^11.0.4:
20942067
merge2 "^1.3.0"
20952068
slash "^3.0.0"
20962069

2097-
globby@^11.0.3:
2098-
version "11.0.3"
2099-
resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.3.tgz#9b1f0cb523e171dd1ad8c7b2a9fb4b644b9593cb"
2100-
integrity sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==
2070+
globby@^11.0.4:
2071+
version "11.0.4"
2072+
resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.4.tgz#2cbaff77c2f2a62e71e9b2813a67b97a3a3001a5"
2073+
integrity sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==
21012074
dependencies:
21022075
array-union "^2.1.0"
21032076
dir-glob "^3.0.1"
@@ -2123,7 +2096,7 @@ graceful-fs@^4.1.2:
21232096
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee"
21242097
integrity sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==
21252098

2126-
graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4:
2099+
graceful-fs@^4.1.6, graceful-fs@^4.2.0:
21272100
version "4.2.8"
21282101
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a"
21292102
integrity sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==
@@ -2471,16 +2444,6 @@ is-number@^7.0.0:
24712444
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
24722445
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
24732446

2474-
is-path-cwd@^2.2.0:
2475-
version "2.2.0"
2476-
resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb"
2477-
integrity sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==
2478-
2479-
is-path-inside@^3.0.2:
2480-
version "3.0.3"
2481-
resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283"
2482-
integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==
2483-
24842447
is-plain-obj@^1.1.0:
24852448
version "1.1.0"
24862449
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e"
@@ -3186,13 +3149,6 @@ p-locate@^4.1.0:
31863149
dependencies:
31873150
p-limit "^2.2.0"
31883151

3189-
p-map@^4.0.0:
3190-
version "4.0.0"
3191-
resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b"
3192-
integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==
3193-
dependencies:
3194-
aggregate-error "^3.0.0"
3195-
31963152
p-try@^1.0.0:
31973153
version "1.0.0"
31983154
resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"

0 commit comments

Comments
 (0)