Skip to content

Commit e13f804

Browse files
Add TypeScript definitions to "package.json" for "react-native-tracker" (#1453)
### Issue: When importing `@snowplow/react-native-tracker`, we got the following error: ``` This result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'. ``` Changing the "moduleResolution" to "node16" fixes this issue, but breaks part of our build pipeline. ### Similar issue: snowplow/snowplow-react-native-tracker#217 --------- Co-authored-by: Naoufal ElYoussoufi <[email protected]>
1 parent b28746c commit e13f804

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@snowplow/react-native-tracker",
5+
"comment": "Add TypeScript definitions to \"package.json\" for \"react-native-tracker\"",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@snowplow/react-native-tracker"
10+
}

trackers/react-native-tracker/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"source": "./src/index.tsx",
2424
"main": "./dist/commonjs/index.js",
2525
"module": "./dist/module/index.js",
26+
"types": "./dist/typescript/module/src/index.d.ts",
2627
"exports": {
2728
".": {
2829
"import": {

0 commit comments

Comments
 (0)