@tamagui/build 1.114.4 → 1.115.0
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.
|
|
3
|
+
"version": "1.115.0",
|
|
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.
|
|
19
|
+
"@tamagui/build": "1.115.0",
|
|
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.
|
|
3
|
+
"version": "1.115.0",
|
|
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.
|
|
19
|
+
"@tamagui/build": "1.115.0",
|
|
20
20
|
"typescript": "^5.5.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -11,8 +11,8 @@ const watchSrcFilePath = join(watchPackagePath, 'src', 'watch.ts')
|
|
|
11
11
|
const simplePackagePath = join(__dirname, 'fixtures', 'simple-package')
|
|
12
12
|
const distPath = join(simplePackagePath, 'dist')
|
|
13
13
|
const srcFilePath = join(simplePackagePath, 'src', 'index.ts')
|
|
14
|
-
const distCjsFilePath = join(distPath, 'cjs', 'index.
|
|
15
|
-
const watchDistCjsFilePath = join(watchDistPath, 'cjs', 'watch.
|
|
14
|
+
const distCjsFilePath = join(distPath, 'cjs', 'index.cjs')
|
|
15
|
+
const watchDistCjsFilePath = join(watchDistPath, 'cjs', 'watch.cjs')
|
|
16
16
|
const distEsmFilePath = join(distPath, 'esm', 'index.mjs')
|
|
17
17
|
const distTypesFilePath = join(simplePackagePath, 'types', 'index.d.ts')
|
|
18
18
|
// // biome-ignore lint/suspicious/noConsoleLog: <explanation>
|
|
@@ -140,7 +140,7 @@ describe('tamagui-build integration test', () => {
|
|
|
140
140
|
it('should generate correct platform-specific output', async () => {
|
|
141
141
|
execSync('yarn build', { cwd: simplePackagePath })
|
|
142
142
|
|
|
143
|
-
const distCjsWebFilePath = join(distPath, 'cjs', 'index.
|
|
143
|
+
const distCjsWebFilePath = join(distPath, 'cjs', 'index.cjs')
|
|
144
144
|
const distCjsNativeFilePath = join(distPath, 'cjs', 'index.native.js')
|
|
145
145
|
|
|
146
146
|
// Check if the output files exist
|
|
@@ -197,8 +197,8 @@ describe('tamagui-build integration test', () => {
|
|
|
197
197
|
expect(esmOutput).not.toMatch(/^\s+$/m) // No lines with only whitespace
|
|
198
198
|
|
|
199
199
|
// Check that the number of lines is reduced
|
|
200
|
-
expect(cjsOutput.split('\n').length).toBeLessThan(
|
|
201
|
-
expect(esmOutput.split('\n').length).toBeLessThan(
|
|
200
|
+
expect(cjsOutput.split('\n').length).toBeLessThan(32)
|
|
201
|
+
expect(esmOutput.split('\n').length).toBeLessThan(32)
|
|
202
202
|
})
|
|
203
203
|
|
|
204
204
|
afterAll(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/build",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.115.0",
|
|
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.
|
|
17
|
+
"@tamagui/babel-plugin-fully-specified": "1.115.0",
|
|
18
18
|
"@types/fs-extra": "^9.0.13",
|
|
19
19
|
"babel-plugin-fully-specified": "*",
|
|
20
20
|
"chokidar": "^3.5.2",
|
package/tamagui-build.js
CHANGED
|
@@ -394,9 +394,7 @@ async function buildJs() {
|
|
|
394
394
|
|
|
395
395
|
const cjsConfigWeb = {
|
|
396
396
|
...cjsConfig,
|
|
397
|
-
|
|
398
|
-
// metro cant do platform-specific with cjs :/
|
|
399
|
-
// outExtension: { '.js': '.cjs' },
|
|
397
|
+
outExtension: { '.js': '.cjs' },
|
|
400
398
|
}
|
|
401
399
|
|
|
402
400
|
const esmConfig = {
|
|
@@ -428,7 +426,7 @@ async function buildJs() {
|
|
|
428
426
|
? esbuildWriteIfChanged(cjsConfigWeb, {
|
|
429
427
|
platform: 'web',
|
|
430
428
|
bundle: shouldBundleFlag,
|
|
431
|
-
|
|
429
|
+
specifyCJS: true,
|
|
432
430
|
})
|
|
433
431
|
: null,
|
|
434
432
|
|