Skip to content

Commit 195414e

Browse files
committed
Build error fix
1 parent b91a3f9 commit 195414e

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,12 @@ jobs:
4848
- name: Build
4949
run: |
5050
pnpm --filter "@wdio/devtools-script" build
51-
pnpm --filter "@wdio/devtools-app" build
5251
pnpm --filter "@wdio/devtools-backend" build
5352
pnpm --filter "@wdio/devtools-service" build
53+
pnpm --filter "@wdio/devtools-app" build
5454
pnpm --filter "@wdio/nightwatch-devtools" build
5555
- name: Release
56-
run: pnpm -r publish --access public --no-git-checks
56+
run: pnpm -r publish --access public --no-git-checks --tag ${{ github.event.inputs.distTag }}
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/app/vite.config.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@ const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
88

99
export default defineConfig({
1010
resolve: {
11+
// Force all codemirror packages to use the same @codemirror/state instance,
12+
// preventing the "multiple instances" error when mixing codemirror meta-package
13+
// with direct @codemirror/* imports under pnpm.
14+
dedupe: ['@codemirror/state'],
1115
alias: {
12-
// Force all codemirror packages to use the same @codemirror/state instance,
13-
// preventing the "multiple instances" error when mixing codemirror meta-package
14-
// with direct @codemirror/* imports under pnpm.
15-
'@codemirror/state': path.resolve(
16-
__dirname,
17-
'../../node_modules/.pnpm/@[email protected]/node_modules/@codemirror/state'
18-
),
1916
'@': path.resolve(__dirname, './src'),
2017
'@core': path.resolve(__dirname, './src/core'),
2118
'@components': path.resolve(__dirname, './src/components'),

0 commit comments

Comments
 (0)