Skip to content

Commit 5dbd8ff

Browse files
update package.json export
1 parent 522e38e commit 5dbd8ff

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

src/feature-management-applicationinsights-browser/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "2.2.0",
44
"description": "Feature Management Application Insights Plugin for Browser provides a solution for sending feature flag evaluation events produced by the Feature Management library.",
55
"main": "./dist/esm/index.js",
6-
"module": "./dist/esm/index.js",
76
"type": "module",
87
"types": "types/index.d.ts",
98
"files": [

src/feature-management-applicationinsights-node/package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,25 @@
22
"name": "@microsoft/feature-management-applicationinsights-node",
33
"version": "2.2.0",
44
"description": "Feature Management Application Insights Plugin for Node.js provides a solution for sending feature flag evaluation events produced by the Feature Management library.",
5-
"main": "./dist/commonjs/index.js",
6-
"module": "./dist/esm/index.js",
7-
"type": "module",
8-
"types": "types/index.d.ts",
95
"files": [
106
"dist/",
117
"types/",
128
"LICENSE",
139
"README.md"
1410
],
11+
"exports": {
12+
"./package.json": "./package.json",
13+
".": {
14+
"import": {
15+
"types": "./types/index.d.ts",
16+
"default": "./dist/esm/index.js"
17+
},
18+
"require": {
19+
"types": "./types/index.d.ts",
20+
"default": "./dist/commonjs/index.js"
21+
}
22+
}
23+
},
1524
"scripts": {
1625
"build": "npm run link && npm run clean && rollup --config",
1726
"clean": "rimraf dist types",

src/feature-management/package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,25 @@
22
"name": "@microsoft/feature-management",
33
"version": "2.2.0",
44
"description": "Feature Management is a library for enabling/disabling features at runtime. Developers can use feature flags in simple use cases like conditional statement to more advanced scenarios like conditionally adding routes.",
5-
"main": "./dist/commonjs/index.js",
6-
"module": "./dist/esm/index.js",
7-
"type": "module",
8-
"types": "types/index.d.ts",
95
"files": [
106
"dist/",
117
"types/",
128
"LICENSE",
139
"README.md"
1410
],
11+
"exports": {
12+
"./package.json": "./package.json",
13+
".": {
14+
"import": {
15+
"types": "./types/index.d.ts",
16+
"default": "./dist/esm/index.js"
17+
},
18+
"require": {
19+
"types": "./types/index.d.ts",
20+
"default": "./dist/commonjs/index.js"
21+
}
22+
}
23+
},
1524
"scripts": {
1625
"build": "npm run clean && rollup --config && npm run build-test",
1726
"build-test": "npm run build-test-esm && npm run build-test-cjs",

0 commit comments

Comments
 (0)