From 434336d9f908be0056fcf23d766efdd8c6d9609e Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 23 Nov 2023 23:40:53 +0100 Subject: [PATCH 1/4] Use pnpm to publish --- packages/react-ranger/package.json | 8 ++------ scripts/publish.ts | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/react-ranger/package.json b/packages/react-ranger/package.json index 467517e..a6a8e76 100644 --- a/packages/react-ranger/package.json +++ b/packages/react-ranger/package.json @@ -7,16 +7,12 @@ "homepage": "https://github.com/tanstack/ranger#readme", "repository": { "type": "git", - "url": "git+https://github.com/tanstack/ranger.git" + "url": "git+https://github.com/tanstack/ranger.git", + "directory": "packages/react-ranger" }, "publishConfig": { "registry": "https://registry.npmjs.org/" }, - "keywords": [ - "react", - "ranger", - "ranger" - ], "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" diff --git a/scripts/publish.ts b/scripts/publish.ts index e3c304d..51247b6 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -557,7 +557,7 @@ async function run() { // Publish each package changedPackages.map((pkg) => { const packageDir = path.join(rootDir, 'packages', pkg.packageDir) - const cmd = `cd ${packageDir} && npm publish --tag ${npmTag} --access=public --no-git-checks` + const cmd = `cd ${packageDir} && pnpm publish --tag ${npmTag} --access=public --no-git-checks` console.info( ` Publishing ${pkg.name}@${version} to npm with tag "${npmTag}"...`, ) From 35fb5df40b85eff6448db7d1ec0a9114cca194f4 Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 23 Nov 2023 23:43:59 +0100 Subject: [PATCH 2/4] Bypass no changes --- scripts/publish.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/publish.ts b/scripts/publish.ts index 51247b6..0cd15f2 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -201,12 +201,12 @@ async function run() { return } - if (recommendedReleaseLevel === -1) { - console.info( - `There have been no changes since the release of ${latestTag} that require a new version. You're good!`, - ) - return - } + // if (recommendedReleaseLevel === -1) { + // console.info( + // `There have been no changes since the release of ${latestTag} that require a new version. You're good!`, + // ) + // return + // } } function getSorterFn(sorters: ((d: TItem) => any)[]) { From ab809f646d8fc6e049fad448804b0caf25cb3d81 Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 23 Nov 2023 23:46:31 +0100 Subject: [PATCH 3/4] Bring back fix --- scripts/publish.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/publish.ts b/scripts/publish.ts index 0cd15f2..51247b6 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -201,12 +201,12 @@ async function run() { return } - // if (recommendedReleaseLevel === -1) { - // console.info( - // `There have been no changes since the release of ${latestTag} that require a new version. You're good!`, - // ) - // return - // } + if (recommendedReleaseLevel === -1) { + console.info( + `There have been no changes since the release of ${latestTag} that require a new version. You're good!`, + ) + return + } } function getSorterFn(sorters: ((d: TItem) => any)[]) { From 40578bae183990654c01a27b22ec76c319d6941c Mon Sep 17 00:00:00 2001 From: robert Date: Thu, 23 Nov 2023 23:47:51 +0100 Subject: [PATCH 4/4] Reverse condition --- packages/react-ranger/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-ranger/src/index.tsx b/packages/react-ranger/src/index.tsx index 2f8ec6a..8eca363 100644 --- a/packages/react-ranger/src/index.tsx +++ b/packages/react-ranger/src/index.tsx @@ -4,7 +4,7 @@ import { RangerConfig, RangerOptions, Ranger } from '@tanstack/ranger' export * from '@tanstack/ranger' const useIsomorphicLayoutEffect = - typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect + typeof window === 'undefined' ? React.useEffect : React.useLayoutEffect export function useRanger( options: RangerOptions,