diff --git a/packages/react-ranger/src/index.tsx b/packages/react-ranger/src/index.tsx index 2f8ec6a..8fb069c 100644 --- a/packages/react-ranger/src/index.tsx +++ b/packages/react-ranger/src/index.tsx @@ -12,7 +12,7 @@ export function useRanger( const rerender = React.useReducer(() => ({}), {})[1] const resolvedOptions: RangerConfig = { ...options, - rerender: rerender, + rerender, onChange: (instance) => { rerender() options.onChange?.(instance) diff --git a/scripts/publish.ts b/scripts/publish.ts index f52bc6e..93968f8 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -583,8 +583,7 @@ async function run() { console.info(` Github release created.`) console.info(`Committing changes...`) - execSync('git add -A ') - execSync(`git commit --verbose -m "${releaseCommitMsg(version)}"`, { encoding: 'utf8' }) + execSync(`git add -A && git commit --verbose -m "${releaseCommitMsg(version)}"`, { encoding: 'utf8' }) console.info() console.info(` Committed Changes.`)