From 70f32abdf8bcf962ead5a2663d33ba2c1a4f9c50 Mon Sep 17 00:00:00 2001 From: Jorrin Date: Sat, 9 Mar 2024 00:38:53 +0100 Subject: [PATCH] fix ci --- patches/nativewind@4.0.23.patch | 13 ------------- tooling/prettier/index.js | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 patches/nativewind@4.0.23.patch diff --git a/patches/nativewind@4.0.23.patch b/patches/nativewind@4.0.23.patch deleted file mode 100644 index 788eeb4..0000000 --- a/patches/nativewind@4.0.23.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/dist/metro/transformer.js b/dist/metro/transformer.js -index 1bda43b116d02834db01a42e64dd302e3d3fe785..8ff7f8a324cd9a8531df915a704d604828959e78 100644 ---- a/dist/metro/transformer.js -+++ b/dist/metro/transformer.js -@@ -16,7 +16,7 @@ new globalThis.WebSocket(\`\${url}:${config.nativewind.fastRefreshPort}\`).addEv - StyleSheet.registerCompiled(JSON.parse('${config.nativewind.parsedOutput}'));`, "utf8"), options); - } - else if (options.platform === "web") { -- return metro_transform_worker_1.default.transform(config, projectRoot, filename, Buffer.from(`require('${config.nativewind.outputPath}');`, "utf8"), options); -+ return metro_transform_worker_1.default.transform(config, projectRoot, filename, Buffer.from(`require('${config.nativewind.outputPath.replace(/\\/g, '\\\\')}');`, "utf8"), options); - } - else { - data = Buffer.from(config.nativewind.rawOutput, "utf8"); diff --git a/tooling/prettier/index.js b/tooling/prettier/index.js index 0a02a72..e96c01d 100644 --- a/tooling/prettier/index.js +++ b/tooling/prettier/index.js @@ -11,7 +11,7 @@ const config = { "prettier-plugin-tailwindcss", ], tailwindConfig: fileURLToPath( - new URL("../../tooling/tailwind/web.ts", import.meta.url), + new URL("../../tooling/tailwind/native.ts", import.meta.url), ), tailwindFunctions: ["cn", "cva"], importOrder: [