diff --git a/.gitignore b/.gitignore index 3b63a98..5ef9327 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -node_modules dist +node_modules storybook-static diff --git a/package.json b/package.json index 0b73e0b..be06556 100644 --- a/package.json +++ b/package.json @@ -4,24 +4,14 @@ "description": "Svelte component for fileupload and file dropzone", "scripts": { "package": "svelte-kit sync && svelte-package && publint", + "prepare": "npm run package", "prepublishOnly": "npm run package", "test": "echo \"Error: no test specified\" && exit 1", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build" }, - "exports": { - "./Dropzone.svelte": { - "types": "./dist/components/Dropzone.svelte.d.ts", - "svelte": "./dist/components/Dropzone.svelte" - } - }, - "typesVersions": { - ">4.0": { - "Dropzone.svelte": [ - "./dist/components/Dropzone.svelte.d.ts" - ] - } - }, + "main": "./dist/components/Dropzone.svelte", + "types": "./dist/components/Dropzone.svelte.d.ts", "repository": { "url": "https://github.com/thecodejack/svelte-file-dropzone" }, @@ -62,4 +52,4 @@ "src", "dist" ] -} +} \ No newline at end of file