bun_bun_bundle 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bun/bun_bundle.js +8 -2
- data/lib/bun_bun_bundle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c36f2a8b4d7d9445dff7ceeade7c98961444b924b114ea349390fc1dd89e6ed7
|
|
4
|
+
data.tar.gz: 8e8022b3e594234cb560d0065463cc3b74c2cf2a97b39271e0c0949ac8d5ff3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df41b2fb7d57d8922330e501a21b4b4418340c204537d3b74af94ebe6ea4b9b07ebfcd239e8bd51c17d8aef5100ad396a4252cde1804297165c029081ec2fc62
|
|
7
|
+
data.tar.gz: 6b875cc9aa5b5c8d8c1ab1a2e13c5a5e2348e00b8585a13837dd454b3e78a1230ba25297371936f45757dcd1ce2ec451f24652a4582e9efa3edaa13100132f51
|
data/lib/bun/bun_bundle.js
CHANGED
|
@@ -260,8 +260,14 @@ export default {
|
|
|
260
260
|
})()
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
for (const dir of this.config.watchDirs)
|
|
264
|
-
|
|
263
|
+
for (const dir of this.config.watchDirs) {
|
|
264
|
+
const fullDir = join(this.root, dir)
|
|
265
|
+
if (!existsSync(fullDir)) {
|
|
266
|
+
console.warn(` ▸ Watch directory ${dir} does not exist, skipping...`)
|
|
267
|
+
continue
|
|
268
|
+
}
|
|
269
|
+
watch(fullDir, {recursive: true}, handler)
|
|
270
|
+
}
|
|
265
271
|
|
|
266
272
|
console.log('Beginning to watch your project')
|
|
267
273
|
},
|