@tamagui/build 1.89.16 → 1.89.18

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 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/build",
3
- "version": "1.89.16",
3
+ "version": "1.89.18",
4
4
  "bin": {
5
5
  "tamagui-build": "tamagui-build.js"
6
6
  },
package/tamagui-build.js CHANGED
@@ -25,6 +25,7 @@ const declarationToRoot = !!process.argv.includes('--declaration-root')
25
25
  const ignoreBaseUrl = process.argv.includes('--ignore-base-url')
26
26
  const baseUrlIndex = process.argv.indexOf('--base-url')
27
27
  const tsProjectIndex = process.argv.indexOf('--ts-project')
28
+ const exludeIndex = process.argv.indexOf('--exclude')
28
29
  const baseUrl =
29
30
  baseUrlIndex > -1 && process.argv[baseUrlIndex + 1]
30
31
  ? process.argv[baseUrlIndex + 1]
@@ -34,6 +35,10 @@ const tsProject =
34
35
  ? process.argv[tsProjectIndex + 1]
35
36
  : null
36
37
 
38
+ const exclude = exludeIndex > -1 && process.argv[exludeIndex + 1]
39
+ ? process.argv[exludeIndex + 1]
40
+ : null
41
+
37
42
  const pkg = fs.readJSONSync('./package.json')
38
43
  let shouldSkipInitialTypes = !!process.env.SKIP_TYPES_INITIAL
39
44
  const pkgMain = pkg.main
@@ -181,7 +186,7 @@ async function buildJs() {
181
186
  const files = shouldBundle
182
187
  ? [pkgSource || './src/index.ts']
183
188
  : (await fg(['src/**/*.(m)?[jt]s(x)?', 'src/**/*.css'])).filter(
184
- (x) => !x.includes('.d.ts')
189
+ (x) => !x.includes('.d.ts') && (exclude ? !x.match(exclude) : true)
185
190
  )
186
191
 
187
192
  const externalPlugin = createExternalPlugin({
@@ -564,9 +569,10 @@ async function esbuildWriteIfChanged(
564
569
  ? outString
565
570
  : transform(outString, {
566
571
  filename: mjsOutPath,
572
+ configFile: false,
567
573
  plugins: [
568
574
  [
569
- 'babel-plugin-fully-specified',
575
+ require.resolve('babel-plugin-fully-specified'),
570
576
  {
571
577
  ensureFileExists: false,
572
578
  esExtensionDefault: '.mjs',