Skip to content

Commit

Permalink
Modify publishing dist
Browse files Browse the repository at this point in the history
  • Loading branch information
denisstasyev committed Feb 4, 2022
1 parent c188f04 commit 5e1489d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ npm i svelte-skeleton

## Usage

Please note that you should import `.svelte` file to compile it with your project's Svelte version (you can use compiled `svelte-skeleton/index.js`, but there could be errors with different versions of Svelte in your project and in this package)

```html
<script>
import Skeleton from 'svelte-skeleton'
import Skeleton from 'svelte-skeleton/Skeleton.svelte'
...
</script>
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "svelte-skeleton",
"version": "1.2.0",
"version": "1.3.0",
"description": "Simple implementation of SVG skeletons in Svelte 3",
"main": "dist/index.js",
"module": "dist/index.mjs",
"files": [
"dist/*"
],
"scripts": {
"build": "rollup -c",
"build": "rollup -c & cp ./src/Skeleton.svelte ./dist/Skeleton.svelte",
"format": "prettier --write 'src/**/*'",
"prepublishOnly": "npm run format & npm run build"
},
Expand Down

0 comments on commit 5e1489d

Please sign in to comment.