@tamagui/build 1.0.1-beta.151 → 1.0.1-beta.152

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 +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "1.0.1-beta.151",
3
+ "version": "1.0.1-beta.152",
4
4
  "bin": {
5
5
  "tamagui-build": "tamagui-build.js"
6
6
  },
package/tamagui-build.js CHANGED
@@ -22,6 +22,7 @@ let shouldSkipInitialTypes = !!process.env.SKIP_TYPES_INITIAL
22
22
  const pkgMain = pkg.main
23
23
  const pkgModule = pkg.module
24
24
  const pkgModuleJSX = pkg['module:jsx']
25
+ const pkgTypes = Boolean(pkg['types'] || pkg['typings'])
25
26
 
26
27
  const flatOut = [pkgMain, pkgModule, pkgModuleJSX].filter(Boolean).length === 1
27
28
 
@@ -107,6 +108,7 @@ async function build() {
107
108
  // process.once('SIGTERM', cleanup)
108
109
 
109
110
  async function buildTsc() {
111
+ if (!pkgTypes) return
110
112
  if (jsOnly || shouldSkipTypes) return
111
113
  if (shouldSkipInitialTypes) {
112
114
  shouldSkipInitialTypes = false
@@ -164,6 +166,8 @@ async function buildJs() {
164
166
  keepNames: false,
165
167
  format: 'cjs',
166
168
  color: true,
169
+ allowOverwrite: true,
170
+ jsx: 'automatic',
167
171
  logLevel: 'error',
168
172
  plugins: [externalPlugin],
169
173
  minify: false,
@@ -178,6 +182,9 @@ async function buildJs() {
178
182
  sourcemap: true,
179
183
  target: 'node16',
180
184
  keepNames: false,
185
+ jsx: 'automatic',
186
+ allowOverwrite: true,
187
+ jsxFactory: '_jsx',
181
188
  format: 'esm',
182
189
  color: true,
183
190
  logLevel: 'error',
@@ -193,6 +200,7 @@ async function buildJs() {
193
200
  entryPoints: files,
194
201
  bundle: shouldBundle,
195
202
  sourcemap: true,
203
+ allowOverwrite: true,
196
204
  target: 'es2020',
197
205
  keepNames: false,
198
206
  format: 'esm',