|
13 | 13 | "url": "https://github.com/baloise/vue-keycloak.git" |
14 | 14 | }, |
15 | 15 | "scripts": { |
16 | | - "test": "jest", |
| 16 | + "test": "vue-demi-switch 3 vue3 && jest && vue-demi-switch 2 vue && jest && vue-demi-switch 3 vue3", |
17 | 17 | "test:watch": "jest --watchAll", |
18 | 18 | "build": "npm run build:clean && npm run build:compile && npm run build:bundle", |
19 | 19 | "build:clean": "rimraf dist && rimraf dist-transpiled", |
20 | | - "build:compile": "tsc -p .", |
21 | | - "build:bundle": "rollup --config rollup.config.js", |
| 20 | + "build:compile": "vue-demi-switch 3 vue3 && tsc -p .", |
| 21 | + "build:bundle": "vue-demi-switch 3 vue3 && rollup --config rollup.config.js", |
22 | 22 | "lint": "eslint src --ext .ts,vue", |
23 | 23 | "format": "npm run prettier:write", |
24 | 24 | "prettier:write": "prettier --write \"./src\"", |
|
37 | 37 | "composition-api" |
38 | 38 | ], |
39 | 39 | "license": "Apache-2.0", |
| 40 | + "dependencies": { |
| 41 | + "vue-demi": "^0.11.4" |
| 42 | + }, |
40 | 43 | "peerDependencies": { |
| 44 | + "@vue/composition-api": "^1.0.0-rc.1", |
41 | 45 | "jwt-decode": "^3.1.2", |
42 | 46 | "keycloak-js": "^12.0.4", |
43 | | - "vue": "^3.0.8" |
| 47 | + "vue": "^2.0.0 || >=3.0.0" |
| 48 | + }, |
| 49 | + "peerDependenciesMeta": { |
| 50 | + "@vue/composition-api": { |
| 51 | + "optional": true |
| 52 | + } |
44 | 53 | }, |
45 | 54 | "devDependencies": { |
46 | 55 | "@semantic-release/changelog": "^5.0.1", |
|
50 | 59 | "@types/jest": "^26.0.22", |
51 | 60 | "@typescript-eslint/eslint-plugin": "^4.19.0", |
52 | 61 | "@typescript-eslint/parser": "^4.19.0", |
| 62 | + "@vue/composition-api": "^1.2.4", |
53 | 63 | "@vue/eslint-config-prettier": "^6.0.0", |
54 | 64 | "@vue/eslint-config-typescript": "^7.0.0", |
55 | 65 | "eslint": "^7.23.0", |
|
64 | 74 | "semantic-release": "^17.4.2", |
65 | 75 | "ts-jest": "^26.5.4", |
66 | 76 | "typescript": "^4.2.3", |
67 | | - "vue": "^3.0.8" |
68 | | - }, |
69 | | - "dependencies": {} |
| 77 | + "vue": "^2.6.14", |
| 78 | + "vue3": "npm:vue@^3.2.20" |
| 79 | + } |
70 | 80 | } |
0 commit comments