Skip to content

Commit

Permalink
chore: build update
Browse files Browse the repository at this point in the history
  • Loading branch information
rick-hup committed Nov 21, 2024
1 parent 5b166ec commit 117e4fa
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ jobs:
- name: Install dependencies
run: pnpm i

- name: PNPM build
run: pnpm run build

- name: Build Docs
run: pnpm docs:build
Expand Down
6 changes: 3 additions & 3 deletions packages/motion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "motion-v",
"version": "0.1.0",
"version": "0.1.1",
"description": "",
"author": "",
"license": "MIT",
Expand All @@ -10,10 +10,10 @@
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.umd.cjs",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/src/index.d.ts",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/motion/src/features/gestures/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface StateHandlers {
export interface Gesture {
isActive: (options: Options) => void
subscribe: (
element: Element,
element: HTMLElement,
stateHandlers: StateHandlers,
options: Options
) => () => void
Expand Down
10 changes: 3 additions & 7 deletions packages/motion/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,14 @@ export default defineConfig({
build: {
lib: {
name: 'motion-v',
fileName: (format, name) => {
return `${name}.${format === 'es' ? 'js' : 'umd.cjs'}`
},
entry: {
index: path.resolve(__dirname, 'src/index.ts'),
},
formats: ['es', 'cjs'],
fileName: format => `index.${format === 'es' ? 'mjs' : 'cjs'}`,
entry: path.resolve(__dirname, 'src/index.ts'),
},
rollupOptions: {
external: [
'vue',
// 'framer-motion',
'radix-vue',
],
},
},
Expand Down
15 changes: 13 additions & 2 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 117e4fa

Please sign in to comment.