From da53b08a3e45dc355206256d6337479b6ddc0194 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Thu, 9 Nov 2023 11:33:54 +0200 Subject: [PATCH] Use wildcard alias for workspace packages (#697) --- .github/workflows/size-limit.yaml | 4 ++-- packages/core/package.json | 2 +- packages/react/package.json | 2 +- pnpm-lock.yaml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/size-limit.yaml b/.github/workflows/size-limit.yaml index a36a0cfd0..0cc4ee7fe 100644 --- a/.github/workflows/size-limit.yaml +++ b/.github/workflows/size-limit.yaml @@ -21,9 +21,9 @@ jobs: cache: 'pnpm' - name: Install dependencies run: pnpm install - - uses: andresz1/size-limit-action@v1.7.0 + - uses: andresz1/size-limit-action@35ea3c74377213d727b88532229d467a849345f4 # with pnpm support with: github_token: ${{ secrets.GITHUB_TOKEN }} - script: npx -w @livekit/components-react size-limit --json + script: pnpm --filter @livekit/components-react exec size-limit --json package_manager: pnpm build_script: build:react diff --git a/packages/core/package.json b/packages/core/package.json index dfe372d29..1b0706cb7 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -45,7 +45,7 @@ "tslib": "^2.6.2" }, "devDependencies": { - "@livekit/components-styles": "workspace:../styles", + "@livekit/components-styles": "workspace:*", "@microsoft/api-extractor": "^7.36.0", "@size-limit/file": "^10.0.0", "@size-limit/webpack": "^10.0.0", diff --git a/packages/react/package.json b/packages/react/package.json index f1ead8a52..e99da7bb8 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -47,7 +47,7 @@ }, "typings": "dist/index.d.ts", "dependencies": { - "@livekit/components-core": "workspace:../core", + "@livekit/components-core": "workspace:*", "@react-hook/latest": "^1.0.3", "clsx": "^2.0.0", "usehooks-ts": "^2.9.1" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 12f1cac46..61b59b48a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -167,7 +167,7 @@ importers: version: 2.6.2 devDependencies: '@livekit/components-styles': - specifier: workspace:../styles + specifier: workspace:* version: link:../styles '@microsoft/api-extractor': specifier: ^7.36.0 @@ -197,7 +197,7 @@ importers: packages/react: dependencies: '@livekit/components-core': - specifier: workspace:../core + specifier: workspace:* version: link:../core '@react-hook/latest': specifier: ^1.0.3