@tamagui/build 1.74.11 → 1.74.12

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 +7 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "1.74.11",
3
+ "version": "1.74.12",
4
4
  "bin": {
5
5
  "tamagui-build": "tamagui-build.js"
6
6
  },
package/tamagui-build.js CHANGED
@@ -58,7 +58,7 @@ async function clean() {
58
58
  // ok
59
59
  }
60
60
  if (shouldCleanBuildOnly) {
61
- console.log('🔹 cleaned', pkg.name)
61
+ console.info('🔹 cleaned', pkg.name)
62
62
  process.exit(0)
63
63
  }
64
64
  try {
@@ -66,7 +66,7 @@ async function clean() {
66
66
  } catch {
67
67
  // ok
68
68
  }
69
- console.log('🔹 cleaned', pkg.name)
69
+ console.info('🔹 cleaned', pkg.name)
70
70
  process.exit(0)
71
71
  }
72
72
 
@@ -103,7 +103,7 @@ if (shouldWatch) {
103
103
  build()
104
104
 
105
105
  async function build({ skipTypes } = {}) {
106
- if (process.env.DEBUG) console.log('🔹', pkg.name)
106
+ if (process.env.DEBUG) console.info('🔹', pkg.name)
107
107
  try {
108
108
  const start = Date.now()
109
109
  await Promise.all([
@@ -111,7 +111,7 @@ async function build({ skipTypes } = {}) {
111
111
  skipTypes ? null : buildTsc(),
112
112
  buildJs(),
113
113
  ])
114
- console.log('built', pkg.name, 'in', Date.now() - start, 'ms')
114
+ console.info('built', pkg.name, 'in', Date.now() - start, 'ms')
115
115
  } catch (error) {
116
116
  console.error(`Error building:`, error.message)
117
117
  }
@@ -149,11 +149,10 @@ async function buildTsc() {
149
149
  const tsProjectFlag = tsProject ? ` --project ${tsProject}` : ''
150
150
  const cmd = `tsc${baseUrlFlag}${tsProjectFlag} --outDir ${targetDir} --rootDir src ${declarationToRootFlag}--emitDeclarationOnly --declarationMap`
151
151
 
152
- console.log('\x1b[2m$', `npx ${cmd}`)
152
+ console.info('\x1b[2m$', `npx ${cmd}`)
153
153
  await exec('npx', cmd.split(' '))
154
154
  } catch (err) {
155
- // biome-ignore lint/suspicious/noConsoleLog: <explanation>
156
- console.log(err.message)
155
+ console.info(err.message)
157
156
  if (!shouldWatch) {
158
157
  process.exit(1)
159
158
  }
@@ -365,8 +364,7 @@ async function buildJs() {
365
364
  )
366
365
  : null,
367
366
  ]).then(() => {
368
- // biome-ignore lint/suspicious/noConsoleLog: <explanation>
369
- if (process.env.DEBUG) console.log(`built js in ${Date.now() - start}ms`)
367
+ if (process.env.DEBUG) console.info(`built js in ${Date.now() - start}ms`)
370
368
  })
371
369
  }
372
370