From 17afa9b787a660fd92ccb52cfdc0a45f4bf03f43 Mon Sep 17 00:00:00 2001 From: Aryan Deora Date: Sun, 1 Jan 2023 10:50:37 -0500 Subject: [PATCH] (fix: solid-query): Revert breaking build (#4733) This is in reference to the breaking build in solid-query. Because client Context value is never passed into the provider RELEASE_ALL --- packages/solid-query/package.json | 2 +- packages/solid-query/src/{index.tsx => index.ts} | 0 rollup.config.ts | 8 ++++---- 3 files changed, 5 insertions(+), 5 deletions(-) rename packages/solid-query/src/{index.tsx => index.ts} (100%) diff --git a/packages/solid-query/package.json b/packages/solid-query/package.json index 7453968c94..06e7e0ef0f 100644 --- a/packages/solid-query/package.json +++ b/packages/solid-query/package.json @@ -16,7 +16,7 @@ "exports": { ".": { "types": "./build/lib/index.d.ts", - "solid": "./build/solid/index.jsx", + "solid": "./build/solid/index.js", "import": "./build/lib/index.mjs", "browser": "./build/lib/index.mjs", "require": "./build/lib/index.js", diff --git a/packages/solid-query/src/index.tsx b/packages/solid-query/src/index.ts similarity index 100% rename from packages/solid-query/src/index.tsx rename to packages/solid-query/src/index.ts diff --git a/rollup.config.ts b/rollup.config.ts index af9309c622..ee5ffe47fc 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -120,12 +120,12 @@ export default function rollup(options: RollupOptions): RollupOptions[] { '@tanstack/react-query': 'ReactQuery', '@tanstack/match-sorter-utils': 'MatchSorterUtils', 'use-sync-external-store/shim/index.js': 'UseSyncExternalStore', - "superjson": 'SuperJson', + superjson: 'SuperJson', }, bundleUMDGlobals: [ '@tanstack/match-sorter-utils', 'use-sync-external-store/shim/index.js', - "superjson", + 'superjson', ], }), ...buildConfigs({ @@ -140,7 +140,7 @@ export default function rollup(options: RollupOptions): RollupOptions[] { '@tanstack/react-query': 'ReactQuery', '@tanstack/match-sorter-utils': 'MatchSorterUtils', 'use-sync-external-store/shim/index.js': 'UseSyncExternalStore', - "superjson": 'SuperJson', + superjson: 'SuperJson', }, forceDevEnv: true, forceBundle: true, @@ -164,7 +164,7 @@ export default function rollup(options: RollupOptions): RollupOptions[] { packageDir: 'packages/solid-query', jsName: 'SolidQuery', outputFile: 'index', - entryFile: 'src/index.tsx', + entryFile: 'src/index.ts', globals: { 'solid-js/store': 'SolidStore', 'solid-js': 'Solid',