Skip to content

Commit

Permalink
Merge pull request #6 from bcastlel/fix/npmignore-and-README
Browse files Browse the repository at this point in the history
add .npmignore file, fix the example in README.md
  • Loading branch information
bcastlel authored Apr 3, 2023
2 parents f12f5c6 + 94ffa38 commit 867a091
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
demo-src
docs
node_modules
public
src
.eslintrc.cjs
index.html
tsconfig.json
vite.config.js
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ const open = (): void => {
const close = (): void => {
isOpened.value = false;
};

defineExpose({ open, close });
</script>
```

Expand Down
14 changes: 7 additions & 7 deletions demo-src/package-lock.json

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

2 changes: 1 addition & 1 deletion demo-src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"v3-scroll-lock": "^1.2.1",
"v3-scroll-lock": "^1.3.0",
"vue": "^3.2.45"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "v3-scroll-lock",
"version": "1.3.0",
"version": "1.3.1",
"description": "A scroll lock tool for Vue 3",
"type": "module",
"main": "dist/v3-scroll-lock.umd.cjs",
Expand Down

0 comments on commit 867a091

Please sign in to comment.