hunk.code_window:       if: ${{ inputs.target != 'x86_64-unknown-linux-gnu' && inputs.target != 'aarch64-unknown-linux-gnu' }}
         shell: bash
         run: yarn nx build @affine/native --target ${{ inputs.target }}
       - name: Build
         if: ${{ inputs.target == 'x86_64-unknown-linux-gnu' }}
         uses: addnab/docker-run-action@v3
         with:
  
hunk.labels: keep keep add keep keep keep keep keep
hunk.after_edit:       env:
           NX_CLOUD_ACCESS_TOKEN: ${{ inputs.nx_token }}
  
hunk.file_path: .github/actions/build-rust/action.yml
hunk.type: add
file: import { resolve } from 'node:path';
  
  import { fileURLToPath } from 'url';
  import { defineConfig } from 'vite';
  import dts from 'vite-plugin-dts';
  
  const __dirname = fileURLToPath(new URL('.', import.meta.url));
  
  export default defineConfig({
    build: {
      terserOptions: {
        ecma: 2020,
      },
      sourcemap: true,
      lib: {
        entry: resolve(__dirname, 'src/index.ts'),
        fileName: 'index',
        name: 'ToEverythingIndexedDBProvider',
      },
      rollupOptions: {
        external: ['idb', 'yjs'],
      },
    },
    plugins: [dts()],
  });
  