Skip to content
Open
Changes from 1 commit
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
190 changes: 96 additions & 94 deletions applicationinsights-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,97 +1,99 @@
{
"name": "@microsoft/applicationinsights-react-native",
"version": "4.3.2",
"description": "Microsoft Application Insights React Native Plugin",
"main": "dist-esm/index.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./dist-esm/index.js"
},
"./manual": {
"types": "./types/manualIndex.d.ts",
"import": "./dist-esm/manualIndex.js"
}
"name": "@microsoft/applicationinsights-react-native",
"version": "4.3.2",
"description": "Microsoft Application Insights React Native Plugin",
"main": "dist-esm/index.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./dist-esm/index.js",
"require": "./dist-esm/index.js"
},
"types": "types/index.d.ts",
"sideEffects": false,
"author": "Microsoft Application Insights Team",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/applicationinsights-react-native"
},
"bugs": {
"url": "https://github.com/microsoft/applicationinsights-react-native/issues"
},
"homepage": "https://github.com/microsoft/applicationinsights-react-native#readme",
"keywords": [
"performance monitoring",
"application insights",
"microsoft",
"azure",
"react native"
],
"scripts": {
"build": "npm run build:esm && npm run build:package && npm run dtsgen",
"build:esm": "grunt reactnative",
"build:package": "rollup -c",
"rebuild": "npm run build",
"test": "grunt reactnativetests",
"mintest": "grunt reactnative-mintests",
"testx": "npm run build:test && grunt reactnativetests",
"lint": "tslint -p tsconfig.json",
"dtsgen": "api-extractor run --local && node ../scripts/dtsgen.js \"Microsoft Application Insights react native plugin\"",
"ai-min": "grunt reactnative-min",
"ai-restore": "grunt reactnative-restore"
},
"devDependencies": {
"@microsoft/ai-test-framework": "0.0.1",
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
"@microsoft/api-extractor": "^7.18.1",
"grunt": "^1.5.3",
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"grunt-contrib-uglify": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@nevware21/grunt-eslint-ts": "^0.2.2",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"eslint": "^7.29.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"qunit": "^2.11.2",
"react": "^18.0.0",
"react-native": "^0.69.9",
"globby": "^11.0.0",
"magic-string": "^0.25.7",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup": "^2.77.2",
"typescript": "^4.3.4",
"tslib": "^2.0.0",
"uglify-js": "3.16.0"
},
"dependencies": {
"@microsoft/applicationinsights-common": "^3.3.2",
"@microsoft/applicationinsights-core-js": "^3.3.2",
"@microsoft/applicationinsights-shims": "^3.0.1",
"@microsoft/dynamicproto-js": "^2.0.3",
"@nevware21/ts-utils": ">= 0.11.3 < 2.x"
},
"peerDependencies": {
"tslib": "*",
"react-native": "*",
"react-native-device-info": ">=5.2.1"
},
"peerDependenciesMeta": {
"react-native-device-info": {
"optional": true
}
"./manual": {
Copy link

Copilot AI Jul 11, 2025

Choose a reason for hiding this comment

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

The ./manual export block currently only defines types. You should add a require mapping (e.g., "require": "./dist/manualIndex.js") so Jest can resolve the CommonJS path for the manual entry as well.

Copilot uses AI. Check for mistakes.
"types": "./types/manualIndex.d.ts",
"import": "./dist-esm/manualIndex.js",
"require": "./dist-esm/manualIndex.js"
}
},
"types": "types/index.d.ts",
"sideEffects": false,
"author": "Microsoft Application Insights Team",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/applicationinsights-react-native"
},
"bugs": {
"url": "https://github.com/microsoft/applicationinsights-react-native/issues"
},
"homepage": "https://github.com/microsoft/applicationinsights-react-native#readme",
"keywords": [
"performance monitoring",
"application insights",
"microsoft",
"azure",
"react native"
],
"scripts": {
"build": "npm run build:esm && npm run build:package && npm run dtsgen",
"build:esm": "grunt reactnative",
"build:package": "rollup -c",
"rebuild": "npm run build",
"test": "grunt reactnativetests",
"mintest": "grunt reactnative-mintests",
"testx": "npm run build:test && grunt reactnativetests",
"lint": "tslint -p tsconfig.json",
"dtsgen": "api-extractor run --local && node ../scripts/dtsgen.js \"Microsoft Application Insights react native plugin\"",
"ai-min": "grunt reactnative-min",
"ai-restore": "grunt reactnative-restore"
},
"devDependencies": {
"@microsoft/ai-test-framework": "0.0.1",
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
"@microsoft/api-extractor": "^7.18.1",
"grunt": "^1.5.3",
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"grunt-contrib-uglify": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@nevware21/grunt-eslint-ts": "^0.2.2",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"eslint": "^7.29.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"qunit": "^2.11.2",
"react": "^18.0.0",
"react-native": "^0.69.9",
"globby": "^11.0.0",
"magic-string": "^0.25.7",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup": "^2.77.2",
"typescript": "^4.3.4",
"tslib": "^2.0.0",
"uglify-js": "3.16.0"
},
"dependencies": {
"@microsoft/applicationinsights-common": "^3.3.2",
"@microsoft/applicationinsights-core-js": "^3.3.2",
"@microsoft/applicationinsights-shims": "^3.0.1",
"@microsoft/dynamicproto-js": "^2.0.3",
"@nevware21/ts-utils": ">= 0.11.3 < 2.x"
},
"peerDependencies": {
"tslib": "*",
"react-native": "*",
"react-native-device-info": ">=5.2.1"
},
"peerDependenciesMeta": {
"react-native-device-info": {
"optional": true
}
}
}
}