@tamagui/build 1.116.0 → 1.116.2
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamagui-build-test-simple-tpackage",
|
|
3
|
-
"version": "1.116.
|
|
3
|
+
"version": "1.116.2",
|
|
4
4
|
"main": "dist/cjs",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build:target-native": "TAMAGUI_TARGET=native node ../../../tamagui-build.js"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@tamagui/build": "1.116.
|
|
19
|
+
"@tamagui/build": "1.116.2",
|
|
20
20
|
"typescript": "^5.5.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tamagui-build-test-watch-package",
|
|
3
|
-
"version": "1.116.
|
|
3
|
+
"version": "1.116.2",
|
|
4
4
|
"main": "dist/cjs",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build:target-native": "TAMAGUI_TARGET=native node ../../../tamagui-build.js"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@tamagui/build": "1.116.
|
|
19
|
+
"@tamagui/build": "1.116.2",
|
|
20
20
|
"typescript": "^5.5.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "1.116.
|
|
3
|
+
"version": "1.116.2",
|
|
4
4
|
"bin": {
|
|
5
5
|
"tamagui-build": "tamagui-build.js",
|
|
6
6
|
"teesx": "./teesx.sh"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@babel/core": "^7.25.2",
|
|
16
16
|
"@swc/core": "^1.7.21",
|
|
17
|
-
"@tamagui/babel-plugin-fully-specified": "1.116.
|
|
17
|
+
"@tamagui/babel-plugin-fully-specified": "1.116.2",
|
|
18
18
|
"@types/fs-extra": "^9.0.13",
|
|
19
19
|
"chokidar": "^3.5.2",
|
|
20
20
|
"esbuild": "^0.24.0",
|
package/tamagui-build.js
CHANGED
|
@@ -394,12 +394,7 @@ async function buildJs() {
|
|
|
394
394
|
platform: 'node',
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
const cjsConfigWeb =
|
|
398
|
-
? cjsConfig
|
|
399
|
-
: {
|
|
400
|
-
...cjsConfig,
|
|
401
|
-
outExtension: { '.js': '.cjs' },
|
|
402
|
-
}
|
|
397
|
+
const cjsConfigWeb = cjsConfig
|
|
403
398
|
|
|
404
399
|
const esmConfig = {
|
|
405
400
|
target: 'esnext',
|
|
@@ -729,14 +724,22 @@ async function esbuildWriteIfChanged(
|
|
|
729
724
|
|
|
730
725
|
// path specifics:
|
|
731
726
|
|
|
727
|
+
// write first so we can find them in next loop with specify
|
|
728
|
+
await Promise.all(
|
|
729
|
+
outputs.map(async (file) => {
|
|
730
|
+
if (!file) return
|
|
731
|
+
const { path, contents } = file
|
|
732
|
+
// write it without specifics to just .js for older react-native compat
|
|
733
|
+
await FSE.writeFile(path, contents)
|
|
734
|
+
})
|
|
735
|
+
)
|
|
736
|
+
|
|
732
737
|
if (specifyCJS) {
|
|
733
738
|
await Promise.all(
|
|
734
739
|
outputs.map(async (file) => {
|
|
735
740
|
if (!file) return
|
|
736
|
-
|
|
737
741
|
const { path, contents } = file
|
|
738
|
-
|
|
739
|
-
if (!path.endsWith('.cjs')) return
|
|
742
|
+
if (!path.endsWith('.js')) return
|
|
740
743
|
|
|
741
744
|
const result = opts.bundle
|
|
742
745
|
? { code: contents }
|
|
@@ -749,7 +752,7 @@ async function esbuildWriteIfChanged(
|
|
|
749
752
|
].filter(Boolean),
|
|
750
753
|
})
|
|
751
754
|
|
|
752
|
-
await FSE.writeFile(path, result.code)
|
|
755
|
+
await FSE.writeFile(path.replace(/\.js$/, '.cjs'), result.code)
|
|
753
756
|
})
|
|
754
757
|
)
|
|
755
758
|
return
|