Skip to content

Commit 43bd6df

Browse files
committed
refactor(types): move types folder to root
1 parent 3093aa8 commit 43bd6df

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

dist/demo.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<meta charset="utf-8">
22
<title>vue-advanced-chat demo</title>
3-
<script src="./vue-advanced-chat.umd.js"></script>
3+
<script src="https://unpkg.com/vue"></script>
4+
<script src="./vue-advanced-chat.js"></script>
45

5-
<link rel="stylesheet" href="./vue-advanced-chat.css">
66

7+
<vue-advanced-chat></vue-advanced-chat>
78

8-
<script>
9-
console.log(vue-advanced-chat)
10-
</script>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"gen:types": "tsc --declaration"
4040
},
4141
"files": [
42-
"dist/*"
42+
"dist/*",
43+
"types/*"
4344
],
4445
"peerDependencies": {
4546
"vue": "^2.6.10"

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
// Change this to match your project
33
"include": [
4-
"dist"
4+
"dist/**/*"
55
],
66

77
"compilerOptions": {
@@ -16,6 +16,6 @@
1616
// Types should go into this directory.
1717
// Removing this would place the .d.ts files
1818
// next to the .js files
19-
"outDir": "dist/types",
19+
"outDir": "types",
2020
},
2121
}
File renamed without changes.

0 commit comments

Comments
 (0)