@tamagui/build 1.39.5 → 1.39.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tamagui-build.js +13 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "1.39.5",
3
+ "version": "1.39.7",
4
4
  "bin": {
5
5
  "tamagui-build": "tamagui-build.js"
6
6
  },
package/tamagui-build.js CHANGED
@@ -69,31 +69,29 @@ if (shouldClean || shouldCleanBuildOnly) {
69
69
  if (shouldWatch) {
70
70
  process.env.IS_WATCHING = true
71
71
  process.env.DISABLE_AUTORUN = true
72
- build().then(() => {
73
- const rebuild = debounce(build, 100)
74
- const chokidar = require('chokidar')
75
- chokidar
76
- // prevent infinite loop but cause race condition if you just build directly
77
- .watch('src', {
78
- persistent: true,
79
- alwaysStat: true,
80
- ignoreInitial: true,
81
- })
82
- .on('change', rebuild)
83
- .on('add', rebuild)
84
- })
72
+ const rebuild = debounce(build, 100)
73
+ const chokidar = require('chokidar')
74
+ chokidar
75
+ // prevent infinite loop but cause race condition if you just build directly
76
+ .watch('src', {
77
+ persistent: true,
78
+ alwaysStat: true,
79
+ ignoreInitial: true,
80
+ })
81
+ .on('change', rebuild)
82
+ .on('add', rebuild)
85
83
  return
86
84
  }
87
85
 
88
86
  build()
89
87
 
90
- async function build() {
88
+ async function build({ skipTypes } = {}) {
91
89
  if (process.env.DEBUG) console.log('🔹', pkg.name)
92
90
  try {
93
91
  const start = Date.now()
94
92
  await Promise.all([
95
93
  //
96
- buildTsc(),
94
+ skipTypes ? null : buildTsc(),
97
95
  buildJs(),
98
96
  ])
99
97
  console.log('built', pkg.name, 'in', Date.now() - start, 'ms')