Skip to content

Commit e571fbd

Browse files
committed
(typescript) do not auto-generate types
1 parent 52c1f97 commit e571fbd

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.DS_Store
22
node_modules
33
package-lock.json
4-
/types
54

65
# local env files
76
.env.local

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@
2929
"main": "./dist/vue-advanced-chat.common.js",
3030
"scripts": {
3131
"serve": "vue-cli-service serve",
32-
"build": "npm run clean:lib && npm run build:lib && npm run build:wc && npm run gen:types",
32+
"build": "npm run clean:lib && npm run build:lib && npm run build:wc",
3333
"clean:lib": "rimraf dist",
3434
"build:lib": "vue-cli-service build --target lib --no-clean --name vue-advanced-chat ./src/ChatWindow/index.js",
3535
"build:wc": "vue-cli-service build --target wc --no-clean --name vue-advanced-chat ./src/ChatWindow/ChatWindow.vue",
3636
"prepublish": "npm run lint && npm run build",
3737
"publish-beta": "npm publish --tag beta",
38-
"lint": "vue-cli-service lint",
39-
"gen:types": "tsc --declaration"
38+
"lint": "vue-cli-service lint"
4039
},
4140
"files": [
4241
"dist/*",
@@ -51,8 +50,8 @@
5150
"@vue/cli-service": "~4.5.0",
5251
"@vue/eslint-config-standard": "^4.0.0",
5352
"babel-eslint": "^10.0.3",
54-
"eslint": "^5.16.0",
55-
"eslint-plugin-vue": "^5.0.0",
53+
"eslint": "^6.7.2",
54+
"eslint-plugin-vue": "^6.2.2",
5655
"node-sass": "^4.13.0",
5756
"rimraf": "^2.7.1",
5857
"sass-loader": "^8.0.2",

types/vue-advanced-chat.common.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export = global;
2+
declare var global: any;

types/vue-advanced-chat.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declare const _exports: any;
2+
export = _exports;

types/vue-advanced-chat.umd.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export = global;
2+
declare var global: any;

0 commit comments

Comments
 (0)