Skip to content

Adding typescript to the project #401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-draggable-resizable",
"version": "3.0.0-beta.2",
"version": "3.0.0",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating current version

"author": "Maurizio Bonani <[email protected]>",
"private": false,
"description": "Vue3 Component for resizable and draggable elements",
Expand All @@ -14,6 +14,7 @@
"browser": {
"./sfc": "src/vue-draggable-resizable.vue"
},
"types": "./dist/main.d.ts",
"exports": {
".": {
"import": "./dist/vue-draggable-resizable.js",
Expand All @@ -26,7 +27,9 @@
},
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "vite build && pnpm run build:types",
"build:types": "vue-tsc --declaration --emitDeclarationOnly",
"lint:ts": "vue-tsc --noEmit",
"test": "vitest run",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
Expand All @@ -40,17 +43,20 @@
"@4tw/cypress-drag-drop": "^2.2.5",
"@babel/core": "^7.18.6",
"@histoire/plugin-vue": "^0.17.6",
"@types/node": "^20.11.10",
"@vitejs/plugin-vue": "^4.3.4",
"@vitest/ui": "^0.15.1",
"@vue/test-utils": "^2.2.7",
"babel-loader": "^8.2.5",
"cypress": "^13.6.2",
"histoire": "^0.17.6",
"jsdom": "^19.0.0",
"typescript": "^5.1.6",
"vite": "^4.4.9",
"vitest": "^0.28.4",
"vue": "^3.2.25",
"vue-loader": "^16.8.3"
"vue-loader": "^16.8.3",
"vue-tsc": "^1.8.8"
},
"peerDependencies": {
"vue": "^3.2.25"
Expand Down
Loading