From 97765d604372e5190002df1f64da649deea3faa6 Mon Sep 17 00:00:00 2001 From: David Bismut Date: Mon, 21 Aug 2023 16:32:01 +0200 Subject: [PATCH] chore: fix demo build and typescript version --- demo/package.json | 4 +-- .../gesture-drag-vanilla/src/App.tsx | 1 + package.json | 2 +- pnpm-lock.yaml | 25 +++++++++---------- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/demo/package.json b/demo/package.json index 9878fe4f1..b87940b20 100644 --- a/demo/package.json +++ b/demo/package.json @@ -30,8 +30,8 @@ "@types/react-dom": "^18.0.8", "@types/three": "^0.140.0", "@vitejs/plugin-react": "^3.1.0", - "typescript": "^4.9.4", - "typescript-plugin-css-modules": "^5.0.0", + "typescript": "^5.0.4", + "typescript-plugin-css-modules": "^5.0.1", "vite": "^4.2.1" } } diff --git a/demo/src/sandboxes/gesture-drag-vanilla/src/App.tsx b/demo/src/sandboxes/gesture-drag-vanilla/src/App.tsx index f90a6f830..ee68ad5a7 100644 --- a/demo/src/sandboxes/gesture-drag-vanilla/src/App.tsx +++ b/demo/src/sandboxes/gesture-drag-vanilla/src/App.tsx @@ -52,6 +52,7 @@ function Draggable() { if (!dragGesture.current) return api.set({ scale: 1, x: 0, y: 0 }) const { boundToParent, gesture, ...rest } = options + // @ts-ignore dragGesture.current.setConfig({ ...rest, pointer: pointerOptions, ...(boundToParent && { bounds: ref }) }) }, [api, options, pointerOptions]) diff --git a/package.json b/package.json index b721021f1..97b4bd5d1 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "docs:start": "pnpm --filter documentation run start", "docs:build": "pnpm --filter documentation run build", "demo:dev": "pnpm --filter demo run dev", - "demo:build": "pnpm --filter demo un build", + "demo:build": "pnpm --filter demo run build", "test": "jest", "test:watch": "jest --watchAll", "size": "size-limit", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5ffa0898e..c74b65cf3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,5 +1,9 @@ lockfileVersion: '6.0' +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + importers: .: @@ -174,11 +178,11 @@ importers: specifier: ^3.1.0 version: 3.1.0(vite@4.2.1) typescript: - specifier: ^4.9.4 - version: 4.9.4 + specifier: ^5.0.4 + version: 5.0.4 typescript-plugin-css-modules: - specifier: ^5.0.0 - version: 5.0.0(typescript@4.9.4) + specifier: ^5.0.1 + version: 5.0.1(typescript@5.0.4) vite: specifier: ^4.2.1 version: 4.2.1(@types/node@20.2.1) @@ -4654,6 +4658,7 @@ packages: /@sinonjs/fake-timers@10.2.0: resolution: {integrity: sha512-OPwQlEdg40HAj5KNF8WW6q2KG4Z+cBCZb3m4ninfTZKaBmbIJodviQsDBoYMPHkOyJJMHnOJo5j2+LKDOhOACg==} + deprecated: Use version 10.1.0. Version 10.2.0 has potential breaking issues dependencies: '@sinonjs/commons': 3.0.0 dev: false @@ -18539,8 +18544,8 @@ packages: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} dev: false - /typescript-plugin-css-modules@5.0.0(typescript@4.9.4): - resolution: {integrity: sha512-fWqguBTVLnV9Xto3maYByUt4rfJdmZ5Z66TQ6jOHpIiU/RPDf/DCCtJPNYyWLQflrbimSawag8zE6EmrkYmuZQ==} + /typescript-plugin-css-modules@5.0.1(typescript@5.0.4): + resolution: {integrity: sha512-hKXObfwfjx2/myRq4JeQ8D3xIWYTFqusi0hS/Aka7RFX1xQEoEkdOGDWyXNb8LmObawsUzbI30gQnZvqYXCrkA==} peerDependencies: typescript: '>=4.0.0' dependencies: @@ -18560,18 +18565,12 @@ packages: source-map-js: 1.0.2 stylus: 0.59.0 tsconfig-paths: 4.2.0 - typescript: 4.9.4 + typescript: 5.0.4 transitivePeerDependencies: - supports-color - ts-node dev: true - /typescript@4.9.4: - resolution: {integrity: sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==} - engines: {node: '>=4.2.0'} - hasBin: true - dev: true - /typescript@5.0.4: resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==} engines: {node: '>=12.20'}