Skip to content

Commit

Permalink
Merge pull request #46 from dammy001/chore/vite-migrate
Browse files Browse the repository at this point in the history
chore(build): migrate to vite for build
  • Loading branch information
dammy001 authored Feb 19, 2022
2 parents ac8262c + 25950b4 commit 34a7d82
Show file tree
Hide file tree
Showing 12 changed files with 3,827 additions and 882 deletions.
5 changes: 2 additions & 3 deletions examples/split-input-example/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "split-input-example",
"version": "1.0.4",
"version": "1.1.0",
"scripts": {
"dev": "vite --host",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.2.25",
"vue-split-input": "^1.0.2"
"vue": "^3.2.25"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.0.0",
Expand Down
12 changes: 0 additions & 12 deletions index.d.ts

This file was deleted.

12 changes: 0 additions & 12 deletions index.ts

This file was deleted.

41 changes: 28 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
{
"name": "vue-split-input",
"version": "1.0.4",
"version": "1.1.0",
"description": "Vue Split input for otp verification etc",
"main": "index.ts",
"module": "index.ts",
"types": "index.d.ts",
"files": [
"index.ts",
"dist",
"components/**/*.vue",
"index.d.ts"
"src/types.ts",
"src/index.d.ts"
],
"main": "./dist/index.es.js",
"module": "./dist/index.es.js",
"types": "./src/index.d.ts",
"exports": {
".": {
"import": "./dist/index.es.js",
"require": "./dist/index.umd.js"
}
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc -b",
"typecheck": "tsc --noEmit",
"dev": "pnpm -r --filter {examples/split-input-example} run dev",
"release": "bumpp package.json examples/*/package.json --commit --push --tag && pnpm -r publish --access public"
"build": "pnpm clean && pnpm typecheck && vite build",
"release": "bumpp package.json examples/*/package.json --commit --push --tag && pnpm -r publish --access public",
"clean": "rm -rf dist",
"prepublishOnly": "pnpm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dammy001/vue-split-input.git"
},
"keywords": [
"vue",
"2",
"vue",
"3",
"vue 2",
"vue 3",
"vuejs",
"component",
"input",
Expand All @@ -42,10 +48,19 @@
"url": "https://github.com/dammy001/vue-split-input/issues"
},
"homepage": "https://github.com/dammy001/vue-split-input#readme",
"dependencies": {
"vue": "3.2.31"
},
"peerDependencies": {
"vue": "^3.2.*"
},
"devDependencies": {
"@damilaredev/tsconfig": "^1.1.0",
"@vitejs/plugin-vue": "^2.2.2",
"@types/node": "16.11.25",
"bumpp": "7.1.1",
"microbundle": "^0.14.2",
"typescript": "4.5.5",
"vue": "3.2.31"
"vite": "^2.8.4"
}
}
Loading

0 comments on commit 34a7d82

Please sign in to comment.