@tamagui/build
Advanced tools
Comparing version 1.0.1-beta.21 to 1.0.1-beta.23
{ | ||
"name": "@tamagui/build", | ||
"version": "1.0.1-beta.21", | ||
"version": "1.0.1-beta.23", | ||
"bin": { | ||
@@ -21,2 +21,3 @@ "tamagui-build": "tamagui-build.js" | ||
"json5": "^2.2.0", | ||
"lodash.debounce": "^4.0.8", | ||
"typescript": "^4.5.2" | ||
@@ -23,0 +24,0 @@ }, |
@@ -9,2 +9,3 @@ #!/usr/bin/env node | ||
const createExternalPlugin = require('./externalNodePlugin') | ||
const debounce = require('lodash.debounce') | ||
@@ -179,5 +180,3 @@ const jsOnly = !!process.env.JS_ONLY | ||
build().then(() => { | ||
const finish = (_, path, stats) => { | ||
build() | ||
} | ||
const rebuild = debounce(build, 100) | ||
const chokidar = require('chokidar') | ||
@@ -191,4 +190,4 @@ chokidar | ||
}) | ||
.on('change', finish) | ||
.on('add', finish) | ||
.on('change', rebuild) | ||
.on('add', rebuild) | ||
}) | ||
@@ -195,0 +194,0 @@ } else { |
Sorry, the diff of this file is not supported yet
7827
8
218
+ Addedlodash.debounce@^4.0.8
+ Addedlodash.debounce@4.0.8(transitive)