Skip to content

Commit

Permalink
Fixed typings
Browse files Browse the repository at this point in the history
  • Loading branch information
LoiLock committed Aug 9, 2022
1 parent 21137ca commit eac2a31
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 28 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "vue3-flex",
"version": "0.0.10",
"version": "0.0.13",
"license": "MIT",
"author": "Jochem Hagenaars <jochem@notsosolo.app> (https://notsosolo.app)",
"scripts": {
"dev": "vue-cli-service serve dev/serve.ts",
"build": "vite build && tsc -d --emitDeclarationOnly && vue-typegen gen -s ./src -o ./dist",
"build:old": "vite build && tsc -d --emitDeclarationOnly && vue-typegen gen -s ./src -o ./dist",
"build": "vite build && tsc -d --emitDeclarationOnly && vue-tsc --declaration --emitDeclarationOnly",
"prepublishOnly": "npm run build",
"lint": "eslint \"{packages,playground}/**/*.{ts,tsx,vue,js,jsx,html}\"",
"prettier": "npx prettier --write ."
Expand Down Expand Up @@ -43,7 +44,7 @@
"typescript": "4.7.4",
"vite": "2.9.14",
"vue": "3.2.37",
"vue-tsc": "0.39.5",
"vue-tsc": "^0.39.5",
"vue-typegen": "0.2.0"
},
"bugs": {
Expand Down
25 changes: 1 addition & 24 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1 @@
import { App } from 'vue'
import Flex from './Flex.vue'

export default Flex;

export function install(app: App, options: { name: string }) {
const finalOptions = Object.assign(
{},
{
name: 'Flex',
},
options,
)

app.component(`${finalOptions.name}`, Flex)
}

const plugin = {
// eslint-disable-next-line no-undef
version: VERSION,
install,
}

// export default plugin
export { default as Flex } from './Flex.vue';
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ vite@2.9.14:
optionalDependencies:
fsevents "~2.3.2"

vue-tsc@0.39.5:
vue-tsc@^0.39.5:
version "0.39.5"
resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-0.39.5.tgz#0b75f5c3574b70fb448982702db2aa532a7fad6e"
integrity sha512-jhTsrKhZkafpIeN4Cbhr1K53hNfa/oesSrlh7hUaeHyCk55VhZT6oJkwJbtqN4MYkWZIwPrm3/xTwsELuf2ocg==
Expand Down

0 comments on commit eac2a31

Please sign in to comment.