Skip to content

Commit 05a50db

Browse files
committed
docs(intercom): refactored types generation
Have set the default types to the browser types There is currently no way to do isomorphic types See microsoft/TypeScript#29128
1 parent b3a19c2 commit 05a50db

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

packages/analytics-plugin-intercom/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
"release:patch": "npm version patch && npm publish",
2828
"release:minor": "npm version minor && npm publish",
2929
"release:major": "npm version major && npm publish",
30-
"es": "../../node_modules/.bin/babel-node ./testBabel.js"
30+
"es": "../../node_modules/.bin/babel-node ./testBabel.js",
31+
"types": "tsc"
3132
},
3233
"main": "lib/analytics-plugin-intercom.cjs.js",
34+
"types": "dist/browser.d.ts",
3335
"globalName": "analyticsIntercom",
3436
"jsnext:main": "lib/analytics-plugin-intercom.es.js",
3537
"module": "lib/analytics-plugin-intercom.es.js",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "http://json.schemastore.org/tsconfig",
3+
"compilerOptions": {
4+
"emitDeclarationOnly": true,
5+
"declaration": true,
6+
"allowJs": true,
7+
"declarationDir": "types/"
8+
},
9+
"include": [
10+
"src/**/*.js"
11+
]
12+
}

0 commit comments

Comments
 (0)