Skip to content

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Алексей Пивкин committed Oct 18, 2019
1 parent faeead2 commit a83f0c0
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 40 deletions.
6 changes: 0 additions & 6 deletions example/index.d.ts

This file was deleted.

2 changes: 2 additions & 0 deletions example/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import App from './App.vue';

import VueSweetalert2 from './vue-sweetalert2';

import 'sweetalert2/dist/sweetalert2.min.css';

Vue.use(VueSweetalert2);

// tslint:disable-next-line: no-unused-expression
Expand Down
22 changes: 5 additions & 17 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"es2015"
],
"lib": ["dom", "es2015"],
"module": "es2015",
"moduleResolution": "node",
"experimentalDecorators": true,
Expand All @@ -18,19 +15,10 @@
"baseUrl": ".",
"sourceMap": true,
"paths": {
"@/*": [
"./src/*"
]
"@/*": ["./src/*"]
}
},
"files": [
"./index.d.ts"
],
"include": [
"./src/**/*.ts",
"./src/**/*.vue"
],
"exclude": [
"node_modules"
]
"files": ["vue-shims.d.ts", "**/*.d.ts"],
"include": ["./src/**/*.ts", "./src/**/*.vue"],
"exclude": ["node_modules"]
}
4 changes: 4 additions & 0 deletions example/vue-shims.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.vue' {
import Vue from 'vue';
export default Vue;
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
"delay": 2500
},
"lint-staged": {
"*.{js,html,vue,md,json}": ["npm run lint:prettier", "git add"],
"*.{ts}": ["npm run lint:prettier", "npm run lint:ts", "git add"]
"*.{js,html,vue,md,json}": ["npm run lint:prettier && git add"],
"*.{ts}": ["npm run lint:prettier && npm run lint:ts && git add"]
},
"husky": {
"hooks": {
Expand Down
19 changes: 4 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,11 @@
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"sourceMap": true,
"types": [
"node",
"jest"
],
"types": ["node", "jest"],
"paths": {
"@/*": [
"./src/*"
]
"@/*": ["./src/*"]
}
},
"include": [
"./src/**/*.ts",
"./src/**/*.vue"
],
"exclude": [
"node_modules",
"dist"
]
"include": ["./src/**/*.ts", "./src/**/*.vue"],
"exclude": ["node_modules", "dist", "example"]
}

0 comments on commit a83f0c0

Please sign in to comment.