Skip to content

Commit

Permalink
chore: export update
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-hup committed Nov 23, 2024
1 parent bd308e5 commit 413997c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ jobs:
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 9
run_install: false

- name: Set node
uses: actions/setup-node@v4
Expand Down
5 changes: 3 additions & 2 deletions packages/motion/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ export default defineConfig({
build: {
lib: {
name: 'motion-v',
formats: ['es', 'cjs'],
fileName: format => `index.${format === 'es' ? 'js' : 'cjs'}`,
fileName: (format, name) => {
return `${name}.${format === 'es' ? 'js' : 'umd.cjs'}`
},
entry: path.resolve(__dirname, 'src/index.ts'),
},
rollupOptions: {
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 413997c

Please sign in to comment.