Skip to content

Commit

Permalink
feat: Prevent auto import of sweetalert style closes #116
Browse files Browse the repository at this point in the history
  • Loading branch information
avil13 committed Oct 25, 2020
1 parent a44858b commit a2820b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
28 changes: 6 additions & 22 deletions packages/vue-sweetalert2/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{
"name": "vue-sweetalert2",
"version": "4.0.1",
"version": "4.1.0",
"description": "Simple Vue sweetalert2 package",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"src",
"nuxt",
"dist"
],
"files": ["src", "nuxt", "dist"],
"scripts": {
"build": "tsc -p .",
"test": "jest --no-cache",
Expand All @@ -20,13 +16,7 @@
"lint:ts": "tsc --noEmit --skipLibCheck",
"lint": "npm run lint:prettier && npm run lint:ts"
},
"keywords": [
"sweetalert",
"sweetalert2",
"alert",
"prompt",
"ssr"
],
"keywords": ["sweetalert", "sweetalert2", "alert", "prompt", "ssr"],
"author": "Aleksey Pivkin @avil13",
"license": "MIT",
"dependencies": {
Expand Down Expand Up @@ -67,19 +57,13 @@
"vue-template-compiler": "^2.6.12"
},
"nodemonConfig": {
"watch": [
"src"
],
"watch": ["src"],
"exec": "npm run prepublish",
"delay": 2500
},
"lint-staged": {
"*.{js,html,vue,md,json}": [
"npm run lint:prettier"
],
"*.{ts}": [
"npm run lint:prettier && npm run lint:ts"
]
"*.{js,html,vue,md,json}": ["npm run lint:prettier"],
"*.{ts}": ["npm run lint:prettier && npm run lint:ts"]
},
"husky": {
"hooks": {
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-sweetalert2/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SweetAlertOptions } from 'sweetalert2';
import Swal from 'sweetalert2/dist/sweetalert2.js';
import Vue from 'vue';

import Swal, {SweetAlertOptions} from 'sweetalert2';

export * from 'sweetalert2';

type TVueSwalInstance = typeof Swal & typeof Swal.fire;
Expand Down

0 comments on commit a2820b6

Please sign in to comment.