From f7b7fda844c936e01b480765d3d561a0daf0b662 Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Thu, 7 May 2026 15:16:47 -0700 Subject: [PATCH 1/8] add jest configs and add jestPlatform setting to package.json --- packages/codemods/package.json | 19 +++--- packages/components/Avatar/package.json | 13 ++-- packages/components/Badge/package.json | 3 + packages/components/Button/package.json | 13 ++-- packages/components/Callout/package.json | 13 ++-- packages/components/Checkbox/package.json | 3 + packages/components/Chip/package.json | 9 ++- .../components/ContextualMenu/package.json | 13 ++-- packages/components/Divider/package.json | 13 ++-- .../components/FocusTrapZone/package.json | 13 ++-- packages/components/FocusZone/package.json | 13 ++-- packages/components/Icon/package.json | 13 ++-- packages/components/Input/package.json | 13 ++-- packages/components/Link/package.json | 13 ++-- packages/components/Menu/package.json | 13 ++-- packages/components/MenuButton/package.json | 13 ++-- packages/components/Notification/package.json | 13 ++-- packages/components/RadioGroup/package.json | 13 ++-- packages/components/Separator/package.json | 13 ++-- packages/components/Stack/package.json | 13 ++-- packages/components/Switch/package.json | 13 ++-- packages/components/TabList/package.json | 13 ++-- packages/components/Text/package.json | 13 ++-- .../foundation-settings/package.json | 13 ++-- .../deprecated/foundation-tokens/package.json | 13 ++-- .../deprecated/theme-registry/package.json | 13 ++-- .../deprecated/themed-settings/package.json | 13 ++-- packages/deprecated/theming-ramp/package.json | 13 ++-- packages/experimental/Drawer/package.json | 13 ++-- packages/experimental/MenuButton/package.json | 13 ++-- packages/experimental/Overflow/package.json | 13 ++-- packages/experimental/Shadow/package.json | 13 ++-- packages/experimental/Shimmer/package.json | 13 ++-- packages/experimental/Tooltip/package.json | 13 ++-- packages/framework-base/package.json | 13 ++-- packages/framework/composition/package.json | 13 ++-- packages/framework/framework/package.json | 13 ++-- packages/framework/theme/package.json | 13 ++-- .../framework/themed-stylesheet/package.json | 13 ++-- packages/framework/use-slot/package.json | 13 ++-- packages/framework/use-slots/package.json | 13 ++-- packages/framework/use-styling/package.json | 13 ++-- packages/framework/use-tokens/package.json | 13 ++-- packages/theming/android-theme/package.json | 13 ++-- packages/theming/apple-theme/package.json | 13 ++-- packages/theming/default-theme/package.json | 13 ++-- packages/theming/theming-utils/package.json | 13 ++-- packages/theming/win32-theme/package.json | 13 ++-- packages/utils/interactive-hooks/package.json | 13 ++-- packages/utils/test-tools/package.json | 13 ++-- scripts/configs/jest/babel.config.cjs | 4 ++ scripts/configs/jest/babel.react.config.cjs | 7 ++ scripts/configs/jest/jest.config.cjs | 59 +++++++++++++++++ scripts/configs/jest/jest.react.config.cjs | 65 +++++++++++++++++++ scripts/dynamic.extensions.mjs | 4 +- scripts/package.json | 5 ++ scripts/src/preinstall/tool-versions.js | 15 +++++ scripts/src/tasks/jest.js | 5 +- scripts/src/tasks/lintPackage.ts | 26 ++++++++ scripts/src/utils/projectRoot.ts | 2 + yarn.lock | 4 ++ 61 files changed, 581 insertions(+), 247 deletions(-) create mode 100644 scripts/configs/jest/babel.config.cjs create mode 100644 scripts/configs/jest/babel.react.config.cjs create mode 100644 scripts/configs/jest/jest.config.cjs create mode 100644 scripts/configs/jest/jest.react.config.cjs diff --git a/packages/codemods/package.json b/packages/codemods/package.json index 164a198fb14..38581ed73dd 100644 --- a/packages/codemods/package.json +++ b/packages/codemods/package.json @@ -3,19 +3,13 @@ "version": "0.6.2", "description": "Transform files to make refactoring FURN code easier", "homepage": "https://github.com/microsoft/fluentui-react-native", - "license": "MIT", - "author": "Microsoft ", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/codemods" }, - "bin": { - "transform": "./transform.js" - }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "Microsoft ", "exports": { ".": { "types": "./lib/index.d.ts", @@ -24,6 +18,12 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", + "bin": { + "transform": "./transform.js" + }, "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -57,7 +57,8 @@ "ignorePatterns": [ "src/transforms/__testfixtures__/*" ] - } + }, + "jestPlatform": "react" }, "rnx-kit": { "kitType": "library", diff --git a/packages/components/Avatar/package.json b/packages/components/Avatar/package.json index 0d7196418c2..ceab5dcc4dd 100644 --- a/packages/components/Avatar/package.json +++ b/packages/components/Avatar/package.json @@ -3,16 +3,13 @@ "version": "1.13.3", "description": "A cross-platform Avatar component using the Fluent Design System", "homepage": "https://github.com/microsoft/fluentui-react-native", - "license": "MIT", - "author": "Microsoft ", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Avatar" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "Microsoft ", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -89,6 +89,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Badge/package.json b/packages/components/Badge/package.json index 07a0615c9b2..0680ee3527f 100644 --- a/packages/components/Badge/package.json +++ b/packages/components/Badge/package.json @@ -88,6 +88,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "ios" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Button/package.json b/packages/components/Button/package.json index e4126f627dc..2f78aa2f56e 100644 --- a/packages/components/Button/package.json +++ b/packages/components/Button/package.json @@ -2,17 +2,14 @@ "name": "@fluentui-react-native/button", "version": "0.40.3", "description": "A cross-platform Button component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Button" }, + "license": "MIT", + "author": "", "sideEffects": false, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -98,6 +98,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "ios" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Callout/package.json b/packages/components/Callout/package.json index d0526a6df45..5ef6c777de2 100644 --- a/packages/components/Callout/package.json +++ b/packages/components/Callout/package.json @@ -3,16 +3,13 @@ "version": "0.28.3", "description": "A cross-platform Callout component using the Fluent Design System", "homepage": "https://github.com/microsoft/fluentui-react-native", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Callout" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -87,6 +87,9 @@ "type": "components", "jsSrcsDir": "lib" }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Checkbox/package.json b/packages/components/Checkbox/package.json index 0bca9ba0409..18a3bf2ff91 100644 --- a/packages/components/Checkbox/package.json +++ b/packages/components/Checkbox/package.json @@ -94,6 +94,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Chip/package.json b/packages/components/Chip/package.json index ab64f1750cb..10f55e6d1f7 100644 --- a/packages/components/Chip/package.json +++ b/packages/components/Chip/package.json @@ -5,9 +5,6 @@ "homepage": "https://github.com/microsoft/fluentui-react-native", "license": "MIT", "author": "Microsoft ", - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -16,6 +13,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -84,6 +84,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/ContextualMenu/package.json b/packages/components/ContextualMenu/package.json index b23002973e5..04f72c37f20 100644 --- a/packages/components/ContextualMenu/package.json +++ b/packages/components/ContextualMenu/package.json @@ -3,16 +3,13 @@ "version": "0.25.3", "description": "A cross-platform ContextualMenu component using the Fluent Design System", "homepage": "https://github.com/microsoft/fluentui-react-native", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/ContextualMenu" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -94,6 +94,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Divider/package.json b/packages/components/Divider/package.json index b61201c32cb..4a02db1cdef 100644 --- a/packages/components/Divider/package.json +++ b/packages/components/Divider/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/divider", "version": "0.8.3", "description": "A cross-platform Divider component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Divider" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -85,6 +85,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/FocusTrapZone/package.json b/packages/components/FocusTrapZone/package.json index e447fd30847..8c6fdc47fc0 100644 --- a/packages/components/FocusTrapZone/package.json +++ b/packages/components/FocusTrapZone/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/focus-trap-zone", "version": "0.13.3", "description": "A cross-platform FocusTrapZone component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/FocusTrapZone" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -80,6 +80,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/FocusZone/package.json b/packages/components/FocusZone/package.json index de477adde03..e7bbed24b64 100644 --- a/packages/components/FocusZone/package.json +++ b/packages/components/FocusZone/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/focus-zone", "version": "0.22.3", "description": "A cross-platform FocusZone component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/FocusZone" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -81,6 +81,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Icon/package.json b/packages/components/Icon/package.json index 0aebb4626f0..ba6aa512ec0 100644 --- a/packages/components/Icon/package.json +++ b/packages/components/Icon/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/icon", "version": "0.22.3", "description": "A cross-platform Icon component", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Icon" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -83,6 +83,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Input/package.json b/packages/components/Input/package.json index 9ba52de7372..43a32769d66 100644 --- a/packages/components/Input/package.json +++ b/packages/components/Input/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/input", "version": "0.8.3", "description": "A cross-platform Text input component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Input" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -87,6 +87,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Link/package.json b/packages/components/Link/package.json index dd3ed0062c1..325d0a09902 100644 --- a/packages/components/Link/package.json +++ b/packages/components/Link/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/link", "version": "0.24.3", "description": "A cross-platform Link component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Link" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -86,6 +86,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Menu/package.json b/packages/components/Menu/package.json index e44d673e301..1b62774b2bf 100644 --- a/packages/components/Menu/package.json +++ b/packages/components/Menu/package.json @@ -2,17 +2,14 @@ "name": "@fluentui-react-native/menu", "version": "1.15.3", "description": "A cross-platform Menu component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/menu" }, + "license": "MIT", + "author": "", "sideEffects": false, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -95,6 +95,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/MenuButton/package.json b/packages/components/MenuButton/package.json index cef3c66a6e2..e46c52f53f4 100644 --- a/packages/components/MenuButton/package.json +++ b/packages/components/MenuButton/package.json @@ -3,16 +3,13 @@ "version": "0.14.3", "description": "A cross-platform MenuButton component using the Fluent Design System", "homepage": "https://github.com/microsoft/fluentui-react-native", - "license": "MIT", - "author": "Microsoft ", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/MenuButton" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "Microsoft ", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -87,6 +87,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "ios" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Notification/package.json b/packages/components/Notification/package.json index 54cf37ccfe6..6ab1a72bb16 100644 --- a/packages/components/Notification/package.json +++ b/packages/components/Notification/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/notification", "version": "0.26.3", "description": "add component-description", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Notification" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -93,6 +93,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "ios" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/RadioGroup/package.json b/packages/components/RadioGroup/package.json index ccd72841291..fbf888f662b 100644 --- a/packages/components/RadioGroup/package.json +++ b/packages/components/RadioGroup/package.json @@ -2,17 +2,14 @@ "name": "@fluentui-react-native/radio-group", "version": "0.22.3", "description": "A cross-platform Radio Group component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/RadioGroup" }, + "license": "MIT", + "author": "", "sideEffects": false, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -93,6 +93,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Separator/package.json b/packages/components/Separator/package.json index 33d5256f0f4..ee70cd63daf 100644 --- a/packages/components/Separator/package.json +++ b/packages/components/Separator/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/separator", "version": "0.19.3", "description": "A cross-platform Separator component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Separator" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -80,6 +80,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Stack/package.json b/packages/components/Stack/package.json index 3d0c87b86ed..e7339855fc7 100644 --- a/packages/components/Stack/package.json +++ b/packages/components/Stack/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/stack", "version": "0.11.3", "description": "A cross-platform opinionated Fluent Text component", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Stack" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -84,6 +84,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Switch/package.json b/packages/components/Switch/package.json index 58cc3785e3b..62acf0f4c1e 100644 --- a/packages/components/Switch/package.json +++ b/packages/components/Switch/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/switch", "version": "0.14.3", "description": "A cross-platform Switch component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Switch" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -85,6 +85,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/TabList/package.json b/packages/components/TabList/package.json index 37b381b5a76..8ae32b63888 100644 --- a/packages/components/TabList/package.json +++ b/packages/components/TabList/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/tablist", "version": "0.8.3", "description": "A cross-platform TabList component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/TabList" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -89,6 +89,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "ios" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/components/Text/package.json b/packages/components/Text/package.json index 9f467505d33..3222c567915 100644 --- a/packages/components/Text/package.json +++ b/packages/components/Text/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/text", "version": "0.25.3", "description": "A cross-platform Text component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/text" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -83,6 +83,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/deprecated/foundation-settings/package.json b/packages/deprecated/foundation-settings/package.json index f00873ab43b..348281f87f5 100644 --- a/packages/deprecated/foundation-settings/package.json +++ b/packages/deprecated/foundation-settings/package.json @@ -3,16 +3,13 @@ "version": "0.16.3", "description": "Settings and style definitions and helpers", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/deprecated/foundation-settings" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -57,6 +57,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "react" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/deprecated/foundation-tokens/package.json b/packages/deprecated/foundation-tokens/package.json index 883014bbde1..6f16c477ce8 100644 --- a/packages/deprecated/foundation-tokens/package.json +++ b/packages/deprecated/foundation-tokens/package.json @@ -3,16 +3,13 @@ "version": "0.16.3", "description": "Core tokens package", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/deprecated/foundation-tokens" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -81,6 +81,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "react" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/deprecated/theme-registry/package.json b/packages/deprecated/theme-registry/package.json index a76bd4660b0..b231d57a08f 100644 --- a/packages/deprecated/theme-registry/package.json +++ b/packages/deprecated/theme-registry/package.json @@ -3,16 +3,13 @@ "version": "0.13.3", "description": "Implementation of the theme graph", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/deprecated/theme-registry" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -57,6 +57,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "react" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/deprecated/themed-settings/package.json b/packages/deprecated/themed-settings/package.json index ed632cbf7e0..94e7c21334c 100644 --- a/packages/deprecated/themed-settings/package.json +++ b/packages/deprecated/themed-settings/package.json @@ -3,16 +3,13 @@ "version": "0.13.3", "description": "Package which drives custom cacheable settings for a component", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/deprecated/themed-settings" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -60,6 +60,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "react" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/deprecated/theming-ramp/package.json b/packages/deprecated/theming-ramp/package.json index 70627e4a965..a24cc88905b 100644 --- a/packages/deprecated/theming-ramp/package.json +++ b/packages/deprecated/theming-ramp/package.json @@ -3,16 +3,13 @@ "version": "0.21.3", "description": "Theming Library", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/deprecated/theming-ramp" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -61,6 +61,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "react" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/experimental/Drawer/package.json b/packages/experimental/Drawer/package.json index ea9afcb3e8f..f644cdc9e8f 100644 --- a/packages/experimental/Drawer/package.json +++ b/packages/experimental/Drawer/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/drawer", "version": "0.5.3", "description": "A cross-platform Drawer component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Drawer" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -80,6 +80,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/experimental/MenuButton/package.json b/packages/experimental/MenuButton/package.json index 397f5bb8171..5f2e7db59fe 100644 --- a/packages/experimental/MenuButton/package.json +++ b/packages/experimental/MenuButton/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/experimental-menu-button", "version": "0.11.3", "description": "A cross-platform MenuButton component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/experimental/MenuButton" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -83,6 +83,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/experimental/Overflow/package.json b/packages/experimental/Overflow/package.json index 134c1eb7147..b4ba0326fc9 100644 --- a/packages/experimental/Overflow/package.json +++ b/packages/experimental/Overflow/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/overflow", "version": "0.4.3", "description": "A cross-platform Overflow component for React Native.", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/experimental/Overflow" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -79,6 +79,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/experimental/Shadow/package.json b/packages/experimental/Shadow/package.json index 1295592c425..fc3bc3c5914 100644 --- a/packages/experimental/Shadow/package.json +++ b/packages/experimental/Shadow/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/experimental-shadow", "version": "0.7.3", "description": "A cross-platform Shadow component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/experimental/Shadow" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -80,6 +80,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "ios" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/experimental/Shimmer/package.json b/packages/experimental/Shimmer/package.json index 9570218f506..bc2448d40be 100644 --- a/packages/experimental/Shimmer/package.json +++ b/packages/experimental/Shimmer/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/experimental-shimmer", "version": "0.14.3", "description": "A cross-platform Fluent Shimmer component", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/experimental/Shimmer" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -83,6 +83,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/experimental/Tooltip/package.json b/packages/experimental/Tooltip/package.json index 1d06cefc220..8cc6a586aab 100644 --- a/packages/experimental/Tooltip/package.json +++ b/packages/experimental/Tooltip/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/tooltip", "version": "0.5.3", "description": "A cross-platform Tooltip component for React Native.", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/experimental/Tooltip" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -78,6 +78,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/framework-base/package.json b/packages/framework-base/package.json index f273b6564b0..0c9c1bd4693 100644 --- a/packages/framework-base/package.json +++ b/packages/framework-base/package.json @@ -3,16 +3,13 @@ "version": "0.3.3", "description": "Base types and utilities fluentui-react-native frameworks", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework-base" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -27,6 +24,9 @@ "default": "./src/jsx-runtime.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -61,6 +61,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "react" + }, "rnx-kit": { "extends": "@fluentui-react-native/kit-config", "kitType": "library", diff --git a/packages/framework/composition/package.json b/packages/framework/composition/package.json index 7e1c7d2d1ef..3e5cd5764ce 100644 --- a/packages/framework/composition/package.json +++ b/packages/framework/composition/package.json @@ -3,16 +3,13 @@ "version": "0.12.3", "description": "Composition factories for building HOCs", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/composition" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -62,6 +62,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/framework/framework/package.json b/packages/framework/framework/package.json index ff5340a499e..8cf20c7c415 100644 --- a/packages/framework/framework/package.json +++ b/packages/framework/framework/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/framework", "version": "0.15.3", "description": "Component framework used by fluentui react native controls", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/framework/framework" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -87,6 +87,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/framework/theme/package.json b/packages/framework/theme/package.json index 97cea5b1a98..02ab0ea3e2a 100644 --- a/packages/framework/theme/package.json +++ b/packages/framework/theme/package.json @@ -3,16 +3,13 @@ "version": "0.12.3", "description": "Experimental version of fluentui-react-native theme framework", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/theme" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -65,6 +65,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/framework/themed-stylesheet/package.json b/packages/framework/themed-stylesheet/package.json index 4cfc8a4e76f..75974a0ffc1 100644 --- a/packages/framework/themed-stylesheet/package.json +++ b/packages/framework/themed-stylesheet/package.json @@ -3,16 +3,13 @@ "version": "1.8.3", "description": "Helper for using react-native StyleSheets with themes", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/themed-stylesheet" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -63,6 +63,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/framework/use-slot/package.json b/packages/framework/use-slot/package.json index b438a90bfb7..1f2c00ec55f 100644 --- a/packages/framework/use-slot/package.json +++ b/packages/framework/use-slot/package.json @@ -3,16 +3,13 @@ "version": "0.7.3", "description": "Hook function to use a component as a pluggable slot", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/use-slot" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -65,6 +65,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/framework/use-slots/package.json b/packages/framework/use-slots/package.json index 3b10ca224ca..457de92f44a 100644 --- a/packages/framework/use-slots/package.json +++ b/packages/framework/use-slots/package.json @@ -3,16 +3,13 @@ "version": "0.11.3", "description": "Hook function to return styled slots", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/use-slots" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -65,6 +65,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/framework/use-styling/package.json b/packages/framework/use-styling/package.json index be06a8c7524..e5c77582252 100644 --- a/packages/framework/use-styling/package.json +++ b/packages/framework/use-styling/package.json @@ -3,16 +3,13 @@ "version": "0.14.3", "description": "Opinionated use styling hook implementation", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/use-styling" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -66,6 +66,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/framework/use-tokens/package.json b/packages/framework/use-tokens/package.json index 4e3bb971455..756cda12c1b 100644 --- a/packages/framework/use-tokens/package.json +++ b/packages/framework/use-tokens/package.json @@ -3,16 +3,13 @@ "version": "0.7.3", "description": "Utilities and hook function for getting themed tokens for a component", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/use-tokens" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -65,6 +65,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/theming/android-theme/package.json b/packages/theming/android-theme/package.json index bba068c7a83..76d95819901 100644 --- a/packages/theming/android-theme/package.json +++ b/packages/theming/android-theme/package.json @@ -3,16 +3,13 @@ "version": "0.26.3", "description": "A FluentUI React Native theme that pulls constants from FluentUI Android", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/theming/android-theme" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -81,6 +81,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/theming/apple-theme/package.json b/packages/theming/apple-theme/package.json index e2b3341b3cd..9f087c51fa3 100644 --- a/packages/theming/apple-theme/package.json +++ b/packages/theming/apple-theme/package.json @@ -3,16 +3,13 @@ "version": "0.29.3", "description": "A FluentUI React Native theme that pulls constants from FluentUI Apple", "homepage": "https://github.com/microsoft/fluentui-react-native", - "license": "MIT", - "author": "Microsoft ", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/theming/apple-theme" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "Microsoft ", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -86,6 +86,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "macos" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/theming/default-theme/package.json b/packages/theming/default-theme/package.json index 0bac0ab99af..e3b26a92b68 100644 --- a/packages/theming/default-theme/package.json +++ b/packages/theming/default-theme/package.json @@ -3,16 +3,13 @@ "version": "0.27.3", "description": "Typing only package for fluentui-react-native theme types", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/theming/default-theme" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -83,6 +83,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/theming/theming-utils/package.json b/packages/theming/theming-utils/package.json index 9ad6e505b06..5f3c4873fa1 100644 --- a/packages/theming/theming-utils/package.json +++ b/packages/theming/theming-utils/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/theming-utils", "version": "0.27.3", "description": "Utils for dealing with theming", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/theming/theming-utils" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -77,6 +77,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "windows" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/theming/win32-theme/package.json b/packages/theming/win32-theme/package.json index b1bd3393097..3d6ecb66858 100644 --- a/packages/theming/win32-theme/package.json +++ b/packages/theming/win32-theme/package.json @@ -3,16 +3,13 @@ "version": "0.39.3", "description": "Win32 office theme that works with the theming native module", "keywords": [], - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/theming/win32-theme" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -84,6 +84,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/utils/interactive-hooks/package.json b/packages/utils/interactive-hooks/package.json index 7eb47b62b2b..b0da0b9b70b 100644 --- a/packages/utils/interactive-hooks/package.json +++ b/packages/utils/interactive-hooks/package.json @@ -2,16 +2,13 @@ "name": "@fluentui-react-native/interactive-hooks", "version": "0.28.3", "description": "Hooks for adding focus, hover, and press semantics to view based components", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/utils/interactive-hooks" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -20,6 +17,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -81,6 +81,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "win32" + }, "rnx-kit": { "kitType": "library", "alignDeps": { diff --git a/packages/utils/test-tools/package.json b/packages/utils/test-tools/package.json index a8ebb3ffc78..f7c6282f2fc 100644 --- a/packages/utils/test-tools/package.json +++ b/packages/utils/test-tools/package.json @@ -3,16 +3,13 @@ "version": "0.1.0", "private": true, "description": "Tools and mocks for testing components using jest", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/utils/test-tools" }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "license": "MIT", + "author": "", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -57,6 +57,9 @@ "optional": true } }, + "furn": { + "jestPlatform": "android" + }, "rnx-kit": { "kitType": "library", "extends": "@fluentui-react-native/kit-config", diff --git a/scripts/configs/jest/babel.config.cjs b/scripts/configs/jest/babel.config.cjs new file mode 100644 index 00000000000..9974e8e31d2 --- /dev/null +++ b/scripts/configs/jest/babel.config.cjs @@ -0,0 +1,4 @@ +module.exports = { + // @ts-expect-error - No types, which is fine since this is only used by Metro, which doesn't use types + presets: [[require('@rnx-kit/babel-preset-metro-react-native'), { runtime: 'automatic' }]], +}; diff --git a/scripts/configs/jest/babel.react.config.cjs b/scripts/configs/jest/babel.react.config.cjs new file mode 100644 index 00000000000..059c4135fa9 --- /dev/null +++ b/scripts/configs/jest/babel.react.config.cjs @@ -0,0 +1,7 @@ +module.exports = { + presets: [ + ['@babel/preset-env', { targets: { node: 'current' } }], + ['@babel/preset-react', { runtime: 'automatic' }], + ['@babel/preset-typescript', { allowSyntheticDefaultImports: true }], + ], +}; diff --git a/scripts/configs/jest/jest.config.cjs b/scripts/configs/jest/jest.config.cjs new file mode 100644 index 00000000000..0cc0644743c --- /dev/null +++ b/scripts/configs/jest/jest.config.cjs @@ -0,0 +1,59 @@ +const fs = require('fs'); +const path = require('path'); + +const projectManifestPath = path.resolve(process.cwd(), 'package.json'); +const foundProject = fs.existsSync(projectManifestPath); +const projectManifest = foundProject ? require(projectManifestPath) : null; +const platform = projectManifest?.furn?.jestPlatform ?? 'ios'; + +const rnPlatforms = ['ios', 'android', 'windows', 'macos', 'win32']; + +/** + * @typedef {import('jest').Config} JestConfig + */ + +/** + * @param {string | undefined} value + * @returns {string} + */ +function asPlatformValue(value) { + if (value && rnPlatforms.includes(value)) { + return value; + } + return 'ios'; +} + +/** + * + * @param {string} [platform] + * @returns {Record} + */ +function configureReactNativeJest(platform) { + // @ts-expect-error no types available for jest-preset + const jestPreset = require('@rnx-kit/jest-preset'); + const config = jestPreset(asPlatformValue(platform), { + roots: ['/src'], + verbose: false, + // React 19 requires this global to be set for act() to work properly + globals: { + IS_REACT_ACT_ENVIRONMENT: true, + }, + }); + // In pnpm mode, we need to ensure that the transformIgnorePatterns + // are set correctly to avoid issues with hoisted packages. + config.transformIgnorePatterns = [ + '/node_modules/.store/(?!((jest-)?react-native(-macos)?|@react-native(-community)?|@office-iss-react-native-win32|@?react-native-windows))', + ]; + // Transform configuration using babel-jest, pointing to our babel config + config.transform = { + '^.+\\.(ts|tsx|js|jsx)$': [ + 'babel-jest', + { + configFile: require.resolve('./babel.config.cjs'), + }, + ], + }; + return config; +} + +module.exports = platform === 'react' ? require('./jest.react.config.cjs') : configureReactNativeJest(platform); diff --git a/scripts/configs/jest/jest.react.config.cjs b/scripts/configs/jest/jest.react.config.cjs new file mode 100644 index 00000000000..00628f1421c --- /dev/null +++ b/scripts/configs/jest/jest.react.config.cjs @@ -0,0 +1,65 @@ +module.exports = { + // File patterns + roots: ['/src'], + testMatch: ['**/__tests__/**/*.(ts|tsx|js|jsx)', '**/*.(test|spec).(ts|tsx|js|jsx)'], + + // Module file extensions + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], + + // Module name mapping for non-JS assets + moduleNameMapper: { + // Handle static assets + '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': 'jest-transform-stub', + }, + + // Transform configuration using babel-jest + transform: { + '^.+\\.(ts|tsx|js|jsx)$': [ + 'babel-jest', + { + configFile: require.resolve('./babel.react.config.cjs'), + }, + ], + }, + + // Files to ignore during transformation + // Allow ES modules in node_modules to be transformed + transformIgnorePatterns: ['node_modules/(?!(.*\\.mjs$))'], + + // Setup files (optional - packages can override this) + setupFilesAfterEnv: [], + + // Coverage configuration + collectCoverageFrom: [ + 'src/**/*.{ts,tsx,js,jsx}', + '!src/**/*.d.ts', + '!src/**/*.stories.{ts,tsx,js,jsx}', + '!src/**/index.{ts,tsx,js,jsx}', + '!src/setupTests.{ts,js}', + ], + + // Coverage thresholds (can be overridden) + coverageThreshold: undefined, + + // Output configuration + verbose: false, + silent: false, + + // Clear mocks between tests + clearMocks: true, + + // Restore mocks after each test + restoreMocks: true, + + // Handle ES modules properly with Yarn v4 PnP + extensionsToTreatAsEsm: ['.ts', '.tsx'], + + // Module resolution for Yarn v4 PnP + resolver: undefined, + + // Error handling + errorOnDeprecated: false, + + // Test timeout + testTimeout: 10000, +}; diff --git a/scripts/dynamic.extensions.mjs b/scripts/dynamic.extensions.mjs index 7223e09006b..f1635d5cbaa 100644 --- a/scripts/dynamic.extensions.mjs +++ b/scripts/dynamic.extensions.mjs @@ -2,7 +2,7 @@ import fs from 'node:fs'; import path from 'node:path'; -import { getToolVersion } from './src/preinstall/tool-versions.js'; +import { getToolVersion, hasJestConfig } from './src/preinstall/tool-versions.js'; /** * @typedef {() => boolean} ConditionalCheck @@ -50,7 +50,7 @@ function addOxfmt(manifest) { * @returns {boolean} - True if Jest should be added, false otherwise. */ function addJest(cwd, manifest) { - return Boolean(manifest.scripts?.test && fs.existsSync(path.join(cwd, 'jest.config.js'))); + return Boolean(manifest.scripts?.test && hasJestConfig(cwd)); } /** diff --git a/scripts/package.json b/scripts/package.json index 6c573b8d8ae..957d1b8a08c 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -33,10 +33,15 @@ "lint-package": "node ./src/cli.mjs lint-package" }, "dependencies": { + "@rnx-kit/babel-preset-metro-react-native": "catalog:", + "@rnx-kit/jest-preset": "catalog:", "@rnx-kit/oxlint-config": "^1.0.3", "oxlint": "^1.57.0" }, "devDependencies": { + "@babel/core": "catalog:", + "@babel/runtime": "catalog:", + "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@rnx-kit/align-deps": "catalog:", "@rnx-kit/config": "catalog:", diff --git a/scripts/src/preinstall/tool-versions.js b/scripts/src/preinstall/tool-versions.js index e93017b81bf..98248297ded 100644 --- a/scripts/src/preinstall/tool-versions.js +++ b/scripts/src/preinstall/tool-versions.js @@ -73,3 +73,18 @@ const workspaceToolVersions = { export function getToolVersion(packageName) { return devToolVersions[packageName] ?? workspaceToolVersions[packageName] ?? null; } + +const CONFIG_EXTENSIONS = ['.js', '.cjs', '.mjs', '.ts', '.cts', '.mts']; + +/** + * @param {string} cwd - The current working directory. + * @returns {boolean} - True if a Jest config file exists in the cwd, false otherwise. + */ +export function hasJestConfig(cwd) { + for (const ext of CONFIG_EXTENSIONS) { + if (fs.existsSync(path.join(cwd, `jest.config${ext}`))) { + return true; + } + } + return false; +} diff --git a/scripts/src/tasks/jest.js b/scripts/src/tasks/jest.js index 640d4269349..97c8d33c43c 100644 --- a/scripts/src/tasks/jest.js +++ b/scripts/src/tasks/jest.js @@ -1,8 +1,7 @@ // @ts-check import { Command, Option } from 'clipanion'; import { runScript } from '../utils/runScript.js'; -import fs from 'node:fs'; -import path from 'node:path'; +import { hasJestConfig } from '../preinstall/tool-versions.js'; export class JestCommand extends Command { /** @override */ @@ -18,7 +17,7 @@ export class JestCommand extends Command { args = Option.Proxy(); async execute() { - if (!fs.existsSync(path.join(process.cwd(), './jest.config.js'))) { + if (!hasJestConfig(process.cwd())) { console.warn('No jest configuration found, skipping jest.'); return; } diff --git a/scripts/src/tasks/lintPackage.ts b/scripts/src/tasks/lintPackage.ts index cd377a62f7b..bcb049f8f53 100644 --- a/scripts/src/tasks/lintPackage.ts +++ b/scripts/src/tasks/lintPackage.ts @@ -76,6 +76,7 @@ export class LintPackageCommand extends Command { this.checkPeerDeps(); this.checkRnxKitConfig(); this.checkTsConfig(); + this.checkJestPlatform(); await this.checkCatalogs(); // report the results for the custom linting @@ -93,6 +94,31 @@ export class LintPackageCommand extends Command { return this.result; } + private checkJestPlatform() { + const jestConfigPath = path.join(this.projRoot.root, 'jest.config.js'); + const hasJestConfig = fs.existsSync(jestConfigPath); + if (hasJestConfig && !this.projRoot.manifest.furn?.jestPlatform) { + const configSrc = fs.readFileSync(jestConfigPath, 'utf-8'); + if (configSrc.includes('@fluentui-react-native/react-configs/jest.config.js')) { + this.errorIf(true, 'Missing furn.jestPlatform setting', () => { + this.projRoot.updateRecordEntry('furn' as any, 'jestPlatform', 'react'); + }); + } else { + // with configs of the format: + // const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); + // module.exports = configureReactNativeJest('android'); + // parse out the platform string and set that into furn.jestPlatform + const match = configSrc.match(/configureReactNativeJest\(['"](\w+)['"]\)/); + if (match) { + const platform = match[1]; + this.errorIf(true, `Missing furn.jestPlatform setting: ${platform}`, () => { + this.projRoot.updateRecordEntry('furn' as any, 'jestPlatform', platform); + }); + } + } + } + } + private handleResult(code: number, source: string) { if (code !== 0) { console.error(`lint-package: ${source} failed with code`, code); diff --git a/scripts/src/utils/projectRoot.ts b/scripts/src/utils/projectRoot.ts index 2519a2fbe1e..f94e1c39830 100644 --- a/scripts/src/utils/projectRoot.ts +++ b/scripts/src/utils/projectRoot.ts @@ -16,9 +16,11 @@ export type ExportEntry = string | ExportSet; export type Exports = Record; export type PackageType = 'library' | 'component' | 'app' | 'tooling'; +export type PlatformTarget = 'react' | 'win32' | 'macos' | 'ios' | 'android' | 'windows'; export type ResolvedBuildConfig = { packageType: PackageType; + jestPlatform?: PlatformTarget; typescript: { /** whether to use tsc or tsgo to build this package */ engine: 'tsc' | 'tsgo'; diff --git a/yarn.lock b/yarn.lock index 1f958b3d5c1..0cdeb667313 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4995,8 +4995,12 @@ __metadata: version: 0.0.0-use.local resolution: "@fluentui-react-native/scripts@workspace:scripts" dependencies: + "@babel/core": "catalog:" + "@babel/runtime": "catalog:" + "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@rnx-kit/align-deps": "catalog:" + "@rnx-kit/babel-preset-metro-react-native": "catalog:" "@rnx-kit/config": "catalog:" "@rnx-kit/jest-preset": "catalog:" "@rnx-kit/lint-json": "npm:^0.1.0" From 3e5b5fe60756f9b7bd5013f7b1ddbc5adf53d59f Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Thu, 7 May 2026 16:15:58 -0700 Subject: [PATCH 2/8] update jest configs and remove unnecessary babel configs --- packages/codemods/babel.config.js | 1 - packages/codemods/jest.config.cjs | 1 + packages/codemods/jest.config.js | 1 - packages/components/Avatar/babel.config.js | 1 - packages/components/Avatar/jest.config.cjs | 1 + packages/components/Avatar/jest.config.js | 2 -- packages/components/Badge/babel.config.js | 1 - packages/components/Badge/jest.config.cjs | 1 + packages/components/Badge/jest.config.js | 2 -- packages/components/Badge/package.json | 6 ++--- packages/components/Button/babel.config.js | 1 - packages/components/Button/jest.config.cjs | 1 + packages/components/Button/jest.config.js | 2 -- packages/components/Callout/babel.config.js | 1 - packages/components/Callout/jest.config.cjs | 1 + packages/components/Callout/jest.config.js | 2 -- packages/components/Checkbox/babel.config.js | 1 - packages/components/Checkbox/jest.config.cjs | 1 + packages/components/Checkbox/jest.config.js | 2 -- packages/components/Checkbox/package.json | 10 ++++----- packages/components/Chip/babel.config.js | 1 - packages/components/Chip/jest.config.cjs | 1 + packages/components/Chip/jest.config.js | 2 -- .../components/ContextualMenu/babel.config.js | 1 - .../components/ContextualMenu/jest.config.cjs | 1 + .../components/ContextualMenu/jest.config.js | 2 -- packages/components/Divider/babel.config.js | 1 - packages/components/Divider/jest.config.cjs | 1 + packages/components/Divider/jest.config.js | 2 -- .../components/FocusTrapZone/babel.config.js | 1 - .../components/FocusTrapZone/jest.config.cjs | 1 + .../components/FocusTrapZone/jest.config.js | 2 -- packages/components/FocusZone/babel.config.js | 1 - packages/components/FocusZone/jest.config.cjs | 1 + packages/components/FocusZone/jest.config.js | 2 -- packages/components/Icon/babel.config.js | 1 - packages/components/Icon/jest.config.cjs | 1 + packages/components/Icon/jest.config.js | 2 -- packages/components/Input/babel.config.js | 1 - packages/components/Input/jest.config.cjs | 1 + packages/components/Input/jest.config.js | 2 -- packages/components/Link/babel.config.js | 1 - packages/components/Link/jest.config.cjs | 1 + packages/components/Link/jest.config.js | 2 -- packages/components/Menu/babel.config.js | 1 - packages/components/Menu/jest.config.cjs | 1 + packages/components/Menu/jest.config.js | 2 -- .../components/MenuButton/babel.config.js | 1 - .../components/MenuButton/jest.config.cjs | 1 + packages/components/MenuButton/jest.config.js | 2 -- .../components/Notification/babel.config.js | 1 - .../components/Notification/jest.config.cjs | 1 + .../components/Notification/jest.config.js | 2 -- packages/components/Persona/babel.config.js | 1 - .../components/PersonaCoin/babel.config.js | 1 - packages/components/Pressable/babel.config.js | 1 - .../components/RadioGroup/babel.config.js | 1 - .../components/RadioGroup/jest.config.cjs | 1 + packages/components/RadioGroup/jest.config.js | 2 -- packages/components/Separator/babel.config.js | 1 - packages/components/Separator/jest.config.cjs | 1 + packages/components/Separator/jest.config.js | 2 -- packages/components/Stack/babel.config.js | 1 - packages/components/Stack/jest.config.cjs | 1 + packages/components/Stack/jest.config.js | 2 -- packages/components/Switch/babel.config.js | 1 - packages/components/Switch/jest.config.cjs | 1 + packages/components/Switch/jest.config.js | 2 -- packages/components/TabList/babel.config.js | 1 - packages/components/TabList/jest.config.cjs | 1 + packages/components/TabList/jest.config.js | 2 -- packages/components/Text/babel.config.js | 1 - packages/components/Text/jest.config.cjs | 1 + packages/components/Text/jest.config.js | 2 -- packages/configs/babel-config/babel.config.js | 22 ------------------- .../foundation-settings/babel.config.js | 1 - .../foundation-settings/jest.config.cjs | 1 + .../foundation-settings/jest.config.js | 1 - .../foundation-tokens/babel.config.js | 1 - .../foundation-tokens/jest.config.cjs | 1 + .../foundation-tokens/jest.config.js | 1 - .../deprecated/theme-registry/babel.config.js | 1 - .../deprecated/theme-registry/jest.config.cjs | 1 + .../deprecated/theme-registry/jest.config.js | 1 - .../themed-settings/babel.config.js | 1 - .../themed-settings/jest.config.cjs | 1 + .../deprecated/themed-settings/jest.config.js | 1 - .../deprecated/theming-ramp/babel.config.js | 1 - .../deprecated/theming-ramp/jest.config.cjs | 1 + .../deprecated/theming-ramp/jest.config.js | 1 - .../AppearanceAdditions/babel.config.js | 1 - packages/experimental/Avatar/babel.config.js | 1 - .../experimental/Checkbox/babel.config.js | 1 - packages/experimental/Drawer/babel.config.js | 1 - packages/experimental/Drawer/jest.config.cjs | 1 + packages/experimental/Drawer/jest.config.js | 2 -- .../experimental/Dropdown/babel.config.js | 1 - .../experimental/Expander/babel.config.js | 1 - .../experimental/MenuButton/babel.config.js | 1 - .../experimental/MenuButton/jest.config.cjs | 1 + .../experimental/MenuButton/jest.config.js | 2 -- .../NativeDatePicker/babel.config.js | 1 - .../NativeFontMetrics/babel.config.js | 1 - .../experimental/Overflow/babel.config.js | 1 - .../experimental/Overflow/jest.config.cjs | 1 + packages/experimental/Overflow/jest.config.js | 2 -- packages/experimental/Popover/babel.config.js | 1 - packages/experimental/Shadow/babel.config.js | 1 - packages/experimental/Shadow/jest.config.cjs | 1 + packages/experimental/Shadow/jest.config.js | 2 -- packages/experimental/Shimmer/babel.config.js | 1 - packages/experimental/Shimmer/jest.config.cjs | 1 + packages/experimental/Shimmer/jest.config.js | 2 -- packages/experimental/Spinner/babel.config.js | 1 - packages/experimental/Tooltip/babel.config.js | 1 - packages/experimental/Tooltip/jest.config.cjs | 1 + packages/experimental/Tooltip/jest.config.js | 2 -- .../experimental/VibrancyView/babel.config.js | 1 - packages/framework-base/babel.config.js | 1 - packages/framework-base/jest.config.cjs | 1 + packages/framework-base/jest.config.js | 1 - .../framework/composition/babel.config.js | 1 - .../framework/composition/jest.config.cjs | 1 + packages/framework/composition/jest.config.js | 2 -- packages/framework/framework/babel.config.js | 4 ---- packages/framework/framework/jest.config.cjs | 1 + packages/framework/framework/jest.config.js | 2 -- packages/framework/theme/babel.config.js | 1 - packages/framework/theme/jest.config.cjs | 1 + packages/framework/theme/jest.config.js | 2 -- .../themed-stylesheet/babel.config.js | 1 - .../themed-stylesheet/jest.config.cjs | 1 + .../themed-stylesheet/jest.config.js | 2 -- packages/framework/use-slot/babel.config.js | 1 - packages/framework/use-slot/jest.config.cjs | 1 + packages/framework/use-slot/jest.config.js | 2 -- packages/framework/use-slots/babel.config.js | 1 - packages/framework/use-slots/jest.config.cjs | 1 + packages/framework/use-slots/jest.config.js | 2 -- .../framework/use-styling/babel.config.js | 1 - .../framework/use-styling/jest.config.cjs | 1 + packages/framework/use-styling/jest.config.js | 2 -- packages/framework/use-tokens/babel.config.js | 1 - packages/framework/use-tokens/jest.config.cjs | 1 + packages/framework/use-tokens/jest.config.js | 2 -- packages/libraries/core/babel.config.js | 4 ---- .../theming/android-theme/babel.config.js | 1 - .../theming/android-theme/jest.config.cjs | 1 + packages/theming/android-theme/jest.config.js | 2 -- packages/theming/apple-theme/babel.config.js | 1 - packages/theming/apple-theme/jest.config.cjs | 1 + packages/theming/apple-theme/jest.config.js | 2 -- .../theming/default-theme/babel.config.js | 1 - .../theming/default-theme/jest.config.cjs | 1 + packages/theming/default-theme/jest.config.js | 2 -- packages/theming/theme-tokens/babel.config.js | 1 - packages/theming/theme-types/babel.config.js | 1 - .../theming/theming-utils/babel.config.js | 1 - .../theming/theming-utils/jest.config.cjs | 1 + packages/theming/theming-utils/jest.config.js | 2 -- packages/theming/win32-theme/babel.config.js | 1 - packages/theming/win32-theme/jest.config.cjs | 1 + packages/theming/win32-theme/jest.config.js | 2 -- packages/utils/adapters/babel.config.js | 1 - .../utils/interactive-hooks/babel.config.js | 1 - .../utils/interactive-hooks/jest.config.cjs | 1 + .../utils/interactive-hooks/jest.config.js | 2 -- packages/utils/styling/babel.config.js | 1 - packages/utils/test-tools/babel.config.js | 1 - packages/utils/test-tools/jest.config.cjs | 1 + packages/utils/test-tools/jest.config.js | 2 -- packages/utils/tokens/babel.config.js | 1 - scripts/package.json | 20 ++++++++++++++++- scripts/src/tasks/lintPackage.ts | 11 ++++++++++ scripts/templates/jest.config.cjs | 1 + yarn.lock | 14 ++++++++++-- 176 files changed, 101 insertions(+), 201 deletions(-) delete mode 100644 packages/codemods/babel.config.js create mode 100644 packages/codemods/jest.config.cjs delete mode 100644 packages/codemods/jest.config.js delete mode 100644 packages/components/Avatar/babel.config.js create mode 100644 packages/components/Avatar/jest.config.cjs delete mode 100644 packages/components/Avatar/jest.config.js delete mode 100644 packages/components/Badge/babel.config.js create mode 100644 packages/components/Badge/jest.config.cjs delete mode 100644 packages/components/Badge/jest.config.js delete mode 100644 packages/components/Button/babel.config.js create mode 100644 packages/components/Button/jest.config.cjs delete mode 100644 packages/components/Button/jest.config.js delete mode 100644 packages/components/Callout/babel.config.js create mode 100644 packages/components/Callout/jest.config.cjs delete mode 100644 packages/components/Callout/jest.config.js delete mode 100644 packages/components/Checkbox/babel.config.js create mode 100644 packages/components/Checkbox/jest.config.cjs delete mode 100644 packages/components/Checkbox/jest.config.js delete mode 100644 packages/components/Chip/babel.config.js create mode 100644 packages/components/Chip/jest.config.cjs delete mode 100644 packages/components/Chip/jest.config.js delete mode 100644 packages/components/ContextualMenu/babel.config.js create mode 100644 packages/components/ContextualMenu/jest.config.cjs delete mode 100644 packages/components/ContextualMenu/jest.config.js delete mode 100644 packages/components/Divider/babel.config.js create mode 100644 packages/components/Divider/jest.config.cjs delete mode 100644 packages/components/Divider/jest.config.js delete mode 100644 packages/components/FocusTrapZone/babel.config.js create mode 100644 packages/components/FocusTrapZone/jest.config.cjs delete mode 100644 packages/components/FocusTrapZone/jest.config.js delete mode 100644 packages/components/FocusZone/babel.config.js create mode 100644 packages/components/FocusZone/jest.config.cjs delete mode 100644 packages/components/FocusZone/jest.config.js delete mode 100644 packages/components/Icon/babel.config.js create mode 100644 packages/components/Icon/jest.config.cjs delete mode 100644 packages/components/Icon/jest.config.js delete mode 100644 packages/components/Input/babel.config.js create mode 100644 packages/components/Input/jest.config.cjs delete mode 100644 packages/components/Input/jest.config.js delete mode 100644 packages/components/Link/babel.config.js create mode 100644 packages/components/Link/jest.config.cjs delete mode 100644 packages/components/Link/jest.config.js delete mode 100644 packages/components/Menu/babel.config.js create mode 100644 packages/components/Menu/jest.config.cjs delete mode 100644 packages/components/Menu/jest.config.js delete mode 100644 packages/components/MenuButton/babel.config.js create mode 100644 packages/components/MenuButton/jest.config.cjs delete mode 100644 packages/components/MenuButton/jest.config.js delete mode 100644 packages/components/Notification/babel.config.js create mode 100644 packages/components/Notification/jest.config.cjs delete mode 100644 packages/components/Notification/jest.config.js delete mode 100644 packages/components/Persona/babel.config.js delete mode 100644 packages/components/PersonaCoin/babel.config.js delete mode 100644 packages/components/Pressable/babel.config.js delete mode 100644 packages/components/RadioGroup/babel.config.js create mode 100644 packages/components/RadioGroup/jest.config.cjs delete mode 100644 packages/components/RadioGroup/jest.config.js delete mode 100644 packages/components/Separator/babel.config.js create mode 100644 packages/components/Separator/jest.config.cjs delete mode 100644 packages/components/Separator/jest.config.js delete mode 100644 packages/components/Stack/babel.config.js create mode 100644 packages/components/Stack/jest.config.cjs delete mode 100644 packages/components/Stack/jest.config.js delete mode 100644 packages/components/Switch/babel.config.js create mode 100644 packages/components/Switch/jest.config.cjs delete mode 100644 packages/components/Switch/jest.config.js delete mode 100644 packages/components/TabList/babel.config.js create mode 100644 packages/components/TabList/jest.config.cjs delete mode 100644 packages/components/TabList/jest.config.js delete mode 100644 packages/components/Text/babel.config.js create mode 100644 packages/components/Text/jest.config.cjs delete mode 100644 packages/components/Text/jest.config.js delete mode 100644 packages/configs/babel-config/babel.config.js delete mode 100644 packages/deprecated/foundation-settings/babel.config.js create mode 100644 packages/deprecated/foundation-settings/jest.config.cjs delete mode 100644 packages/deprecated/foundation-settings/jest.config.js delete mode 100644 packages/deprecated/foundation-tokens/babel.config.js create mode 100644 packages/deprecated/foundation-tokens/jest.config.cjs delete mode 100644 packages/deprecated/foundation-tokens/jest.config.js delete mode 100644 packages/deprecated/theme-registry/babel.config.js create mode 100644 packages/deprecated/theme-registry/jest.config.cjs delete mode 100644 packages/deprecated/theme-registry/jest.config.js delete mode 100644 packages/deprecated/themed-settings/babel.config.js create mode 100644 packages/deprecated/themed-settings/jest.config.cjs delete mode 100644 packages/deprecated/themed-settings/jest.config.js delete mode 100644 packages/deprecated/theming-ramp/babel.config.js create mode 100644 packages/deprecated/theming-ramp/jest.config.cjs delete mode 100644 packages/deprecated/theming-ramp/jest.config.js delete mode 100644 packages/experimental/AppearanceAdditions/babel.config.js delete mode 100644 packages/experimental/Avatar/babel.config.js delete mode 100644 packages/experimental/Checkbox/babel.config.js delete mode 100644 packages/experimental/Drawer/babel.config.js create mode 100644 packages/experimental/Drawer/jest.config.cjs delete mode 100644 packages/experimental/Drawer/jest.config.js delete mode 100644 packages/experimental/Dropdown/babel.config.js delete mode 100644 packages/experimental/Expander/babel.config.js delete mode 100644 packages/experimental/MenuButton/babel.config.js create mode 100644 packages/experimental/MenuButton/jest.config.cjs delete mode 100644 packages/experimental/MenuButton/jest.config.js delete mode 100644 packages/experimental/NativeDatePicker/babel.config.js delete mode 100644 packages/experimental/NativeFontMetrics/babel.config.js delete mode 100644 packages/experimental/Overflow/babel.config.js create mode 100644 packages/experimental/Overflow/jest.config.cjs delete mode 100644 packages/experimental/Overflow/jest.config.js delete mode 100644 packages/experimental/Popover/babel.config.js delete mode 100644 packages/experimental/Shadow/babel.config.js create mode 100644 packages/experimental/Shadow/jest.config.cjs delete mode 100644 packages/experimental/Shadow/jest.config.js delete mode 100644 packages/experimental/Shimmer/babel.config.js create mode 100644 packages/experimental/Shimmer/jest.config.cjs delete mode 100644 packages/experimental/Shimmer/jest.config.js delete mode 100644 packages/experimental/Spinner/babel.config.js delete mode 100644 packages/experimental/Tooltip/babel.config.js create mode 100644 packages/experimental/Tooltip/jest.config.cjs delete mode 100644 packages/experimental/Tooltip/jest.config.js delete mode 100644 packages/experimental/VibrancyView/babel.config.js delete mode 100644 packages/framework-base/babel.config.js create mode 100644 packages/framework-base/jest.config.cjs delete mode 100644 packages/framework-base/jest.config.js delete mode 100644 packages/framework/composition/babel.config.js create mode 100644 packages/framework/composition/jest.config.cjs delete mode 100644 packages/framework/composition/jest.config.js delete mode 100644 packages/framework/framework/babel.config.js create mode 100644 packages/framework/framework/jest.config.cjs delete mode 100644 packages/framework/framework/jest.config.js delete mode 100644 packages/framework/theme/babel.config.js create mode 100644 packages/framework/theme/jest.config.cjs delete mode 100644 packages/framework/theme/jest.config.js delete mode 100644 packages/framework/themed-stylesheet/babel.config.js create mode 100644 packages/framework/themed-stylesheet/jest.config.cjs delete mode 100644 packages/framework/themed-stylesheet/jest.config.js delete mode 100644 packages/framework/use-slot/babel.config.js create mode 100644 packages/framework/use-slot/jest.config.cjs delete mode 100644 packages/framework/use-slot/jest.config.js delete mode 100644 packages/framework/use-slots/babel.config.js create mode 100644 packages/framework/use-slots/jest.config.cjs delete mode 100644 packages/framework/use-slots/jest.config.js delete mode 100644 packages/framework/use-styling/babel.config.js create mode 100644 packages/framework/use-styling/jest.config.cjs delete mode 100644 packages/framework/use-styling/jest.config.js delete mode 100644 packages/framework/use-tokens/babel.config.js create mode 100644 packages/framework/use-tokens/jest.config.cjs delete mode 100644 packages/framework/use-tokens/jest.config.js delete mode 100644 packages/libraries/core/babel.config.js delete mode 100644 packages/theming/android-theme/babel.config.js create mode 100644 packages/theming/android-theme/jest.config.cjs delete mode 100644 packages/theming/android-theme/jest.config.js delete mode 100644 packages/theming/apple-theme/babel.config.js create mode 100644 packages/theming/apple-theme/jest.config.cjs delete mode 100644 packages/theming/apple-theme/jest.config.js delete mode 100644 packages/theming/default-theme/babel.config.js create mode 100644 packages/theming/default-theme/jest.config.cjs delete mode 100644 packages/theming/default-theme/jest.config.js delete mode 100644 packages/theming/theme-tokens/babel.config.js delete mode 100644 packages/theming/theme-types/babel.config.js delete mode 100644 packages/theming/theming-utils/babel.config.js create mode 100644 packages/theming/theming-utils/jest.config.cjs delete mode 100644 packages/theming/theming-utils/jest.config.js delete mode 100644 packages/theming/win32-theme/babel.config.js create mode 100644 packages/theming/win32-theme/jest.config.cjs delete mode 100644 packages/theming/win32-theme/jest.config.js delete mode 100644 packages/utils/adapters/babel.config.js delete mode 100644 packages/utils/interactive-hooks/babel.config.js create mode 100644 packages/utils/interactive-hooks/jest.config.cjs delete mode 100644 packages/utils/interactive-hooks/jest.config.js delete mode 100644 packages/utils/styling/babel.config.js delete mode 100644 packages/utils/test-tools/babel.config.js create mode 100644 packages/utils/test-tools/jest.config.cjs delete mode 100644 packages/utils/test-tools/jest.config.js delete mode 100644 packages/utils/tokens/babel.config.js create mode 100644 scripts/templates/jest.config.cjs diff --git a/packages/codemods/babel.config.js b/packages/codemods/babel.config.js deleted file mode 100644 index 20d94cf2545..00000000000 --- a/packages/codemods/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/babel.react.config.js'); diff --git a/packages/codemods/jest.config.cjs b/packages/codemods/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/codemods/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/codemods/jest.config.js b/packages/codemods/jest.config.js deleted file mode 100644 index 2029e9d4b29..00000000000 --- a/packages/codemods/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/jest.config.js'); diff --git a/packages/components/Avatar/babel.config.js b/packages/components/Avatar/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Avatar/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Avatar/jest.config.cjs b/packages/components/Avatar/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Avatar/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Avatar/jest.config.js b/packages/components/Avatar/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/components/Avatar/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/components/Badge/babel.config.js b/packages/components/Badge/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Badge/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Badge/jest.config.cjs b/packages/components/Badge/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Badge/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Badge/jest.config.js b/packages/components/Badge/jest.config.js deleted file mode 100644 index 012dd1d9c5b..00000000000 --- a/packages/components/Badge/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('ios'); diff --git a/packages/components/Badge/package.json b/packages/components/Badge/package.json index 0680ee3527f..592b8dad88c 100644 --- a/packages/components/Badge/package.json +++ b/packages/components/Badge/package.json @@ -6,9 +6,6 @@ "license": "MIT", "author": "Microsoft ", "sideEffects": false, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,6 +14,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", diff --git a/packages/components/Button/babel.config.js b/packages/components/Button/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Button/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Button/jest.config.cjs b/packages/components/Button/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Button/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Button/jest.config.js b/packages/components/Button/jest.config.js deleted file mode 100644 index 012dd1d9c5b..00000000000 --- a/packages/components/Button/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('ios'); diff --git a/packages/components/Callout/babel.config.js b/packages/components/Callout/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Callout/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Callout/jest.config.cjs b/packages/components/Callout/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Callout/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Callout/jest.config.js b/packages/components/Callout/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/components/Callout/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/components/Checkbox/babel.config.js b/packages/components/Checkbox/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Checkbox/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Checkbox/jest.config.cjs b/packages/components/Checkbox/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Checkbox/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Checkbox/jest.config.js b/packages/components/Checkbox/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/components/Checkbox/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/components/Checkbox/package.json b/packages/components/Checkbox/package.json index 18a3bf2ff91..41a2d50570d 100644 --- a/packages/components/Checkbox/package.json +++ b/packages/components/Checkbox/package.json @@ -2,17 +2,14 @@ "name": "@fluentui-react-native/checkbox", "version": "0.24.3", "description": "A cross-platform Checkbox component using the Fluent Design System", - "license": "MIT", - "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Checkbox" }, + "license": "MIT", + "author": "", "sideEffects": false, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -21,6 +18,9 @@ "default": "./src/index.ts" } }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", diff --git a/packages/components/Chip/babel.config.js b/packages/components/Chip/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Chip/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Chip/jest.config.cjs b/packages/components/Chip/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Chip/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Chip/jest.config.js b/packages/components/Chip/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/components/Chip/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/components/ContextualMenu/babel.config.js b/packages/components/ContextualMenu/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/ContextualMenu/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/ContextualMenu/jest.config.cjs b/packages/components/ContextualMenu/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/ContextualMenu/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/ContextualMenu/jest.config.js b/packages/components/ContextualMenu/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/components/ContextualMenu/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/components/Divider/babel.config.js b/packages/components/Divider/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Divider/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Divider/jest.config.cjs b/packages/components/Divider/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Divider/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Divider/jest.config.js b/packages/components/Divider/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/components/Divider/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/components/FocusTrapZone/babel.config.js b/packages/components/FocusTrapZone/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/FocusTrapZone/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/FocusTrapZone/jest.config.cjs b/packages/components/FocusTrapZone/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/FocusTrapZone/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/FocusTrapZone/jest.config.js b/packages/components/FocusTrapZone/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/components/FocusTrapZone/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/components/FocusZone/babel.config.js b/packages/components/FocusZone/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/FocusZone/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/FocusZone/jest.config.cjs b/packages/components/FocusZone/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/FocusZone/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/FocusZone/jest.config.js b/packages/components/FocusZone/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/components/FocusZone/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/components/Icon/babel.config.js b/packages/components/Icon/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Icon/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Icon/jest.config.cjs b/packages/components/Icon/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Icon/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Icon/jest.config.js b/packages/components/Icon/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/components/Icon/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/components/Input/babel.config.js b/packages/components/Input/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Input/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Input/jest.config.cjs b/packages/components/Input/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Input/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Input/jest.config.js b/packages/components/Input/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/components/Input/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/components/Link/babel.config.js b/packages/components/Link/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Link/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Link/jest.config.cjs b/packages/components/Link/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Link/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Link/jest.config.js b/packages/components/Link/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/components/Link/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/components/Menu/babel.config.js b/packages/components/Menu/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Menu/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Menu/jest.config.cjs b/packages/components/Menu/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Menu/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Menu/jest.config.js b/packages/components/Menu/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/components/Menu/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/components/MenuButton/babel.config.js b/packages/components/MenuButton/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/MenuButton/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/MenuButton/jest.config.cjs b/packages/components/MenuButton/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/MenuButton/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/MenuButton/jest.config.js b/packages/components/MenuButton/jest.config.js deleted file mode 100644 index 012dd1d9c5b..00000000000 --- a/packages/components/MenuButton/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('ios'); diff --git a/packages/components/Notification/babel.config.js b/packages/components/Notification/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Notification/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Notification/jest.config.cjs b/packages/components/Notification/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Notification/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Notification/jest.config.js b/packages/components/Notification/jest.config.js deleted file mode 100644 index 012dd1d9c5b..00000000000 --- a/packages/components/Notification/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('ios'); diff --git a/packages/components/Persona/babel.config.js b/packages/components/Persona/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Persona/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/PersonaCoin/babel.config.js b/packages/components/PersonaCoin/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/PersonaCoin/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Pressable/babel.config.js b/packages/components/Pressable/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Pressable/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/RadioGroup/babel.config.js b/packages/components/RadioGroup/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/RadioGroup/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/RadioGroup/jest.config.cjs b/packages/components/RadioGroup/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/RadioGroup/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/RadioGroup/jest.config.js b/packages/components/RadioGroup/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/components/RadioGroup/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/components/Separator/babel.config.js b/packages/components/Separator/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Separator/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Separator/jest.config.cjs b/packages/components/Separator/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Separator/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Separator/jest.config.js b/packages/components/Separator/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/components/Separator/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/components/Stack/babel.config.js b/packages/components/Stack/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Stack/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Stack/jest.config.cjs b/packages/components/Stack/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Stack/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Stack/jest.config.js b/packages/components/Stack/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/components/Stack/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/components/Switch/babel.config.js b/packages/components/Switch/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Switch/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Switch/jest.config.cjs b/packages/components/Switch/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Switch/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Switch/jest.config.js b/packages/components/Switch/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/components/Switch/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/components/TabList/babel.config.js b/packages/components/TabList/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/TabList/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/TabList/jest.config.cjs b/packages/components/TabList/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/TabList/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/TabList/jest.config.js b/packages/components/TabList/jest.config.js deleted file mode 100644 index 012dd1d9c5b..00000000000 --- a/packages/components/TabList/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('ios'); diff --git a/packages/components/Text/babel.config.js b/packages/components/Text/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/components/Text/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/components/Text/jest.config.cjs b/packages/components/Text/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/components/Text/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/components/Text/jest.config.js b/packages/components/Text/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/components/Text/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/configs/babel-config/babel.config.js b/packages/configs/babel-config/babel.config.js deleted file mode 100644 index 6f267f69e0d..00000000000 --- a/packages/configs/babel-config/babel.config.js +++ /dev/null @@ -1,22 +0,0 @@ -module.exports = { - presets: [ - [ - '@babel/preset-env', - { - modules: 'auto', - targets: { node: 'current' }, - }, - ], - ['@babel/preset-react', { runtime: 'automatic' }], - ['@babel/preset-typescript', { allowSyntheticDefaultImports: true }], - ['module:@react-native/babel-preset', { runtime: 'automatic' }], - ], - overrides: [ - { - plugins: [ - [require('@babel/plugin-transform-react-jsx'), { runtime: 'automatic' }], - [require('@babel/plugin-transform-react-jsx-source')], - ], - }, - ], -}; diff --git a/packages/deprecated/foundation-settings/babel.config.js b/packages/deprecated/foundation-settings/babel.config.js deleted file mode 100644 index 20d94cf2545..00000000000 --- a/packages/deprecated/foundation-settings/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/babel.react.config.js'); diff --git a/packages/deprecated/foundation-settings/jest.config.cjs b/packages/deprecated/foundation-settings/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/deprecated/foundation-settings/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/deprecated/foundation-settings/jest.config.js b/packages/deprecated/foundation-settings/jest.config.js deleted file mode 100644 index 2029e9d4b29..00000000000 --- a/packages/deprecated/foundation-settings/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/jest.config.js'); diff --git a/packages/deprecated/foundation-tokens/babel.config.js b/packages/deprecated/foundation-tokens/babel.config.js deleted file mode 100644 index 20d94cf2545..00000000000 --- a/packages/deprecated/foundation-tokens/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/babel.react.config.js'); diff --git a/packages/deprecated/foundation-tokens/jest.config.cjs b/packages/deprecated/foundation-tokens/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/deprecated/foundation-tokens/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/deprecated/foundation-tokens/jest.config.js b/packages/deprecated/foundation-tokens/jest.config.js deleted file mode 100644 index 2029e9d4b29..00000000000 --- a/packages/deprecated/foundation-tokens/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/jest.config.js'); diff --git a/packages/deprecated/theme-registry/babel.config.js b/packages/deprecated/theme-registry/babel.config.js deleted file mode 100644 index 20d94cf2545..00000000000 --- a/packages/deprecated/theme-registry/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/babel.react.config.js'); diff --git a/packages/deprecated/theme-registry/jest.config.cjs b/packages/deprecated/theme-registry/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/deprecated/theme-registry/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/deprecated/theme-registry/jest.config.js b/packages/deprecated/theme-registry/jest.config.js deleted file mode 100644 index 2029e9d4b29..00000000000 --- a/packages/deprecated/theme-registry/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/jest.config.js'); diff --git a/packages/deprecated/themed-settings/babel.config.js b/packages/deprecated/themed-settings/babel.config.js deleted file mode 100644 index 20d94cf2545..00000000000 --- a/packages/deprecated/themed-settings/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/babel.react.config.js'); diff --git a/packages/deprecated/themed-settings/jest.config.cjs b/packages/deprecated/themed-settings/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/deprecated/themed-settings/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/deprecated/themed-settings/jest.config.js b/packages/deprecated/themed-settings/jest.config.js deleted file mode 100644 index 2029e9d4b29..00000000000 --- a/packages/deprecated/themed-settings/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/jest.config.js'); diff --git a/packages/deprecated/theming-ramp/babel.config.js b/packages/deprecated/theming-ramp/babel.config.js deleted file mode 100644 index 20d94cf2545..00000000000 --- a/packages/deprecated/theming-ramp/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/babel.react.config.js'); diff --git a/packages/deprecated/theming-ramp/jest.config.cjs b/packages/deprecated/theming-ramp/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/deprecated/theming-ramp/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/deprecated/theming-ramp/jest.config.js b/packages/deprecated/theming-ramp/jest.config.js deleted file mode 100644 index 2029e9d4b29..00000000000 --- a/packages/deprecated/theming-ramp/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/jest.config.js'); diff --git a/packages/experimental/AppearanceAdditions/babel.config.js b/packages/experimental/AppearanceAdditions/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/AppearanceAdditions/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Avatar/babel.config.js b/packages/experimental/Avatar/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/Avatar/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Checkbox/babel.config.js b/packages/experimental/Checkbox/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/Checkbox/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Drawer/babel.config.js b/packages/experimental/Drawer/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/Drawer/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Drawer/jest.config.cjs b/packages/experimental/Drawer/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/experimental/Drawer/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/experimental/Drawer/jest.config.js b/packages/experimental/Drawer/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/experimental/Drawer/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/experimental/Dropdown/babel.config.js b/packages/experimental/Dropdown/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/Dropdown/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Expander/babel.config.js b/packages/experimental/Expander/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/Expander/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/MenuButton/babel.config.js b/packages/experimental/MenuButton/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/MenuButton/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/MenuButton/jest.config.cjs b/packages/experimental/MenuButton/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/experimental/MenuButton/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/experimental/MenuButton/jest.config.js b/packages/experimental/MenuButton/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/experimental/MenuButton/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/experimental/NativeDatePicker/babel.config.js b/packages/experimental/NativeDatePicker/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/NativeDatePicker/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/NativeFontMetrics/babel.config.js b/packages/experimental/NativeFontMetrics/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/NativeFontMetrics/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Overflow/babel.config.js b/packages/experimental/Overflow/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/Overflow/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Overflow/jest.config.cjs b/packages/experimental/Overflow/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/experimental/Overflow/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/experimental/Overflow/jest.config.js b/packages/experimental/Overflow/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/experimental/Overflow/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/experimental/Popover/babel.config.js b/packages/experimental/Popover/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/Popover/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Shadow/babel.config.js b/packages/experimental/Shadow/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/Shadow/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Shadow/jest.config.cjs b/packages/experimental/Shadow/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/experimental/Shadow/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/experimental/Shadow/jest.config.js b/packages/experimental/Shadow/jest.config.js deleted file mode 100644 index 012dd1d9c5b..00000000000 --- a/packages/experimental/Shadow/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('ios'); diff --git a/packages/experimental/Shimmer/babel.config.js b/packages/experimental/Shimmer/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/Shimmer/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Shimmer/jest.config.cjs b/packages/experimental/Shimmer/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/experimental/Shimmer/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/experimental/Shimmer/jest.config.js b/packages/experimental/Shimmer/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/experimental/Shimmer/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/experimental/Spinner/babel.config.js b/packages/experimental/Spinner/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/Spinner/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Tooltip/babel.config.js b/packages/experimental/Tooltip/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/Tooltip/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/experimental/Tooltip/jest.config.cjs b/packages/experimental/Tooltip/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/experimental/Tooltip/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/experimental/Tooltip/jest.config.js b/packages/experimental/Tooltip/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/experimental/Tooltip/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/experimental/VibrancyView/babel.config.js b/packages/experimental/VibrancyView/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/experimental/VibrancyView/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/framework-base/babel.config.js b/packages/framework-base/babel.config.js deleted file mode 100644 index 20d94cf2545..00000000000 --- a/packages/framework-base/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/babel.react.config.js'); diff --git a/packages/framework-base/jest.config.cjs b/packages/framework-base/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/framework-base/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/framework-base/jest.config.js b/packages/framework-base/jest.config.js deleted file mode 100644 index 2029e9d4b29..00000000000 --- a/packages/framework-base/jest.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/jest.config.js'); diff --git a/packages/framework/composition/babel.config.js b/packages/framework/composition/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/framework/composition/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/framework/composition/jest.config.cjs b/packages/framework/composition/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/framework/composition/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/framework/composition/jest.config.js b/packages/framework/composition/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/framework/composition/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/framework/framework/babel.config.js b/packages/framework/framework/babel.config.js deleted file mode 100644 index 4f4b7171c4a..00000000000 --- a/packages/framework/framework/babel.config.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - presets: [['module:@react-native/babel-preset', { runtime: 'automatic' }]], - babelrcRoots: ['experiments/*'], -}; diff --git a/packages/framework/framework/jest.config.cjs b/packages/framework/framework/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/framework/framework/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/framework/framework/jest.config.js b/packages/framework/framework/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/framework/framework/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/framework/theme/babel.config.js b/packages/framework/theme/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/framework/theme/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/framework/theme/jest.config.cjs b/packages/framework/theme/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/framework/theme/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/framework/theme/jest.config.js b/packages/framework/theme/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/framework/theme/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/framework/themed-stylesheet/babel.config.js b/packages/framework/themed-stylesheet/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/framework/themed-stylesheet/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/framework/themed-stylesheet/jest.config.cjs b/packages/framework/themed-stylesheet/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/framework/themed-stylesheet/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/framework/themed-stylesheet/jest.config.js b/packages/framework/themed-stylesheet/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/framework/themed-stylesheet/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/framework/use-slot/babel.config.js b/packages/framework/use-slot/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/framework/use-slot/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/framework/use-slot/jest.config.cjs b/packages/framework/use-slot/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/framework/use-slot/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/framework/use-slot/jest.config.js b/packages/framework/use-slot/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/framework/use-slot/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/framework/use-slots/babel.config.js b/packages/framework/use-slots/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/framework/use-slots/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/framework/use-slots/jest.config.cjs b/packages/framework/use-slots/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/framework/use-slots/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/framework/use-slots/jest.config.js b/packages/framework/use-slots/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/framework/use-slots/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/framework/use-styling/babel.config.js b/packages/framework/use-styling/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/framework/use-styling/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/framework/use-styling/jest.config.cjs b/packages/framework/use-styling/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/framework/use-styling/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/framework/use-styling/jest.config.js b/packages/framework/use-styling/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/framework/use-styling/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/framework/use-tokens/babel.config.js b/packages/framework/use-tokens/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/framework/use-tokens/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/framework/use-tokens/jest.config.cjs b/packages/framework/use-tokens/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/framework/use-tokens/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/framework/use-tokens/jest.config.js b/packages/framework/use-tokens/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/framework/use-tokens/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/libraries/core/babel.config.js b/packages/libraries/core/babel.config.js deleted file mode 100644 index 4f4b7171c4a..00000000000 --- a/packages/libraries/core/babel.config.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - presets: [['module:@react-native/babel-preset', { runtime: 'automatic' }]], - babelrcRoots: ['experiments/*'], -}; diff --git a/packages/theming/android-theme/babel.config.js b/packages/theming/android-theme/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/theming/android-theme/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/theming/android-theme/jest.config.cjs b/packages/theming/android-theme/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/theming/android-theme/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/theming/android-theme/jest.config.js b/packages/theming/android-theme/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/theming/android-theme/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/theming/apple-theme/babel.config.js b/packages/theming/apple-theme/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/theming/apple-theme/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/theming/apple-theme/jest.config.cjs b/packages/theming/apple-theme/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/theming/apple-theme/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/theming/apple-theme/jest.config.js b/packages/theming/apple-theme/jest.config.js deleted file mode 100644 index e8751194f7d..00000000000 --- a/packages/theming/apple-theme/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('macos'); diff --git a/packages/theming/default-theme/babel.config.js b/packages/theming/default-theme/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/theming/default-theme/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/theming/default-theme/jest.config.cjs b/packages/theming/default-theme/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/theming/default-theme/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/theming/default-theme/jest.config.js b/packages/theming/default-theme/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/theming/default-theme/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/theming/theme-tokens/babel.config.js b/packages/theming/theme-tokens/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/theming/theme-tokens/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/theming/theme-types/babel.config.js b/packages/theming/theme-types/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/theming/theme-types/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/theming/theming-utils/babel.config.js b/packages/theming/theming-utils/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/theming/theming-utils/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/theming/theming-utils/jest.config.cjs b/packages/theming/theming-utils/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/theming/theming-utils/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/theming/theming-utils/jest.config.js b/packages/theming/theming-utils/jest.config.js deleted file mode 100644 index ae7531f1cb7..00000000000 --- a/packages/theming/theming-utils/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('windows'); diff --git a/packages/theming/win32-theme/babel.config.js b/packages/theming/win32-theme/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/theming/win32-theme/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/theming/win32-theme/jest.config.cjs b/packages/theming/win32-theme/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/theming/win32-theme/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/theming/win32-theme/jest.config.js b/packages/theming/win32-theme/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/theming/win32-theme/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/utils/adapters/babel.config.js b/packages/utils/adapters/babel.config.js deleted file mode 100644 index 20d94cf2545..00000000000 --- a/packages/utils/adapters/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/react-configs/babel.react.config.js'); diff --git a/packages/utils/interactive-hooks/babel.config.js b/packages/utils/interactive-hooks/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/utils/interactive-hooks/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/utils/interactive-hooks/jest.config.cjs b/packages/utils/interactive-hooks/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/utils/interactive-hooks/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/utils/interactive-hooks/jest.config.js b/packages/utils/interactive-hooks/jest.config.js deleted file mode 100644 index e35d4a0faae..00000000000 --- a/packages/utils/interactive-hooks/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('win32'); diff --git a/packages/utils/styling/babel.config.js b/packages/utils/styling/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/utils/styling/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/utils/test-tools/babel.config.js b/packages/utils/test-tools/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/utils/test-tools/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/packages/utils/test-tools/jest.config.cjs b/packages/utils/test-tools/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/packages/utils/test-tools/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/packages/utils/test-tools/jest.config.js b/packages/utils/test-tools/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/packages/utils/test-tools/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/packages/utils/tokens/babel.config.js b/packages/utils/tokens/babel.config.js deleted file mode 100644 index aa7d482ebf2..00000000000 --- a/packages/utils/tokens/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/babel-config'); diff --git a/scripts/package.json b/scripts/package.json index 957d1b8a08c..cfcdac62c3d 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -18,6 +18,7 @@ "require": "./src/index.js", "default": "./src/index.js" }, + "./jest-config": "./configs/jest/jest.config.cjs", "./lint-config": "./configs/oxlint/oxlint.config.ts", "./package.json": "./package.json", "./tsconfig": "./configs/tsconfig/tsconfig.json", @@ -33,17 +34,33 @@ "lint-package": "node ./src/cli.mjs lint-package" }, "dependencies": { + "@babel/core": "catalog:", + "@babel/plugin-transform-react-jsx": "catalog:", + "@babel/plugin-transform-react-jsx-source": "catalog:", + "@babel/plugin-transform-typescript": "catalog:", + "@babel/preset-env": "catalog:", + "@babel/preset-react": "catalog:", + "@babel/preset-typescript": "catalog:", + "@babel/runtime": "catalog:", + "@microsoft/eslint-plugin-sdl": "^1.1.0", + "@rnx-kit/align-deps": "catalog:", "@rnx-kit/babel-preset-metro-react-native": "catalog:", + "@rnx-kit/config": "catalog:", + "@rnx-kit/eslint-plugin": "catalog:", "@rnx-kit/jest-preset": "catalog:", "@rnx-kit/oxlint-config": "^1.0.3", + "@rnx-kit/tsconfig": "catalog:", + "@rnx-kit/types-kit-config": "catalog:", + "babel-jest": "^29.0.0", "oxlint": "^1.57.0" }, "devDependencies": { "@babel/core": "catalog:", "@babel/runtime": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", + "@fluentui-react-native/scripts": "workspace:*", "@rnx-kit/align-deps": "catalog:", + "@rnx-kit/babel-preset-metro-react-native": "catalog:", "@rnx-kit/config": "catalog:", "@rnx-kit/jest-preset": "catalog:", "@rnx-kit/lint-json": "^0.1.0", @@ -61,6 +78,7 @@ "depcheck": "^1.0.0", "find-up": "^5.0.0", "jest": "^29.2.1", + "jest-transform-stub": "^2.0.0", "knip": "catalog:", "lage": "catalog:", "micromatch": "^4.0.8", diff --git a/scripts/src/tasks/lintPackage.ts b/scripts/src/tasks/lintPackage.ts index bcb049f8f53..0abdb48dd96 100644 --- a/scripts/src/tasks/lintPackage.ts +++ b/scripts/src/tasks/lintPackage.ts @@ -9,6 +9,9 @@ import { getCatalog } from '../utils/getCatalog.ts'; import { createJSONValidator } from '@rnx-kit/lint-json'; import fs from 'node:fs'; import path from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const __dirname = fileURLToPath(new URL('.', import.meta.url)); export class LintPackageCommand extends Command { static override paths = [['lint-package']]; @@ -117,6 +120,14 @@ export class LintPackageCommand extends Command { } } } + if (hasJestConfig) { + this.errorIf(true, 'should have jest.config.cjs instead of jest.config.js', () => { + // delete jest.config.js and copy ../../templates/jest.config.cjs to jest.config.cjs + const newConfigPath = path.join(this.projRoot.root, 'jest.config.cjs'); + fs.copyFileSync(path.join(__dirname, '../../templates/jest.config.cjs'), newConfigPath); + fs.unlinkSync(jestConfigPath); + }); + } } private handleResult(code: number, source: string) { diff --git a/scripts/templates/jest.config.cjs b/scripts/templates/jest.config.cjs new file mode 100644 index 00000000000..b391f5b6623 --- /dev/null +++ b/scripts/templates/jest.config.cjs @@ -0,0 +1 @@ +module.exports = require('@fluentui-react-native/scripts/jest-config'); diff --git a/yarn.lock b/yarn.lock index 0cdeb667313..8c035223a63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4996,12 +4996,20 @@ __metadata: resolution: "@fluentui-react-native/scripts@workspace:scripts" dependencies: "@babel/core": "catalog:" + "@babel/plugin-transform-react-jsx": "catalog:" + "@babel/plugin-transform-react-jsx-source": "catalog:" + "@babel/plugin-transform-typescript": "catalog:" + "@babel/preset-env": "catalog:" + "@babel/preset-react": "catalog:" + "@babel/preset-typescript": "catalog:" "@babel/runtime": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" + "@fluentui-react-native/scripts": "workspace:*" + "@microsoft/eslint-plugin-sdl": "npm:^1.1.0" "@rnx-kit/align-deps": "catalog:" "@rnx-kit/babel-preset-metro-react-native": "catalog:" "@rnx-kit/config": "catalog:" + "@rnx-kit/eslint-plugin": "catalog:" "@rnx-kit/jest-preset": "catalog:" "@rnx-kit/lint-json": "npm:^0.1.0" "@rnx-kit/oxlint-config": "npm:^1.0.3" @@ -5013,11 +5021,13 @@ __metadata: "@types/micromatch": "npm:^4.0.9" "@types/node": "catalog:" "@typescript/native-preview": "npm:7.0.0-dev.20260113.1" + babel-jest: "npm:^29.0.0" chalk: "npm:^4.0.0" clipanion: "npm:^4.0.0-rc.4" depcheck: "npm:^1.0.0" find-up: "npm:^5.0.0" jest: "npm:^29.2.1" + jest-transform-stub: "npm:^2.0.0" knip: "catalog:" lage: "catalog:" micromatch: "npm:^4.0.8" @@ -7233,7 +7243,7 @@ __metadata: languageName: node linkType: hard -"@microsoft/eslint-plugin-sdl@npm:^1.0.0": +"@microsoft/eslint-plugin-sdl@npm:^1.0.0, @microsoft/eslint-plugin-sdl@npm:^1.1.0": version: 1.1.0 resolution: "@microsoft/eslint-plugin-sdl@npm:1.1.0" dependencies: From d1fde09c4ca17a872d5e74689056e91caf94aef8 Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Thu, 7 May 2026 16:26:33 -0700 Subject: [PATCH 3/8] more babel and package linting cleanup --- .../ComponentTemplate/babel.config.js | 2 +- apps/fluent-tester/babel.config.js | 2 +- apps/tester-core/babel.config.js | 2 +- apps/win32-81/babel.config.js | 2 +- apps/win32/babel.config.js | 2 +- packages/configs/kit-config/furn-preset.ts | 42 +----------- packages/framework-base/package.json | 15 ++--- scripts/package.json | 16 ++++- scripts/src/preinstall/tool-versions.js | 2 - scripts/src/tasks/lintPackage.ts | 65 ++----------------- 10 files changed, 33 insertions(+), 117 deletions(-) diff --git a/apps/component-generator/component-templates/ComponentTemplate/babel.config.js b/apps/component-generator/component-templates/ComponentTemplate/babel.config.js index aa7d482ebf2..c330013387f 100644 --- a/apps/component-generator/component-templates/ComponentTemplate/babel.config.js +++ b/apps/component-generator/component-templates/ComponentTemplate/babel.config.js @@ -1 +1 @@ -module.exports = require('@fluentui-react-native/babel-config'); +module.exports = require('@fluentui-react-native/scripts/babel-config'); diff --git a/apps/fluent-tester/babel.config.js b/apps/fluent-tester/babel.config.js index aa7d482ebf2..c330013387f 100644 --- a/apps/fluent-tester/babel.config.js +++ b/apps/fluent-tester/babel.config.js @@ -1 +1 @@ -module.exports = require('@fluentui-react-native/babel-config'); +module.exports = require('@fluentui-react-native/scripts/babel-config'); diff --git a/apps/tester-core/babel.config.js b/apps/tester-core/babel.config.js index aa7d482ebf2..c330013387f 100644 --- a/apps/tester-core/babel.config.js +++ b/apps/tester-core/babel.config.js @@ -1 +1 @@ -module.exports = require('@fluentui-react-native/babel-config'); +module.exports = require('@fluentui-react-native/scripts/babel-config'); diff --git a/apps/win32-81/babel.config.js b/apps/win32-81/babel.config.js index aa7d482ebf2..c330013387f 100644 --- a/apps/win32-81/babel.config.js +++ b/apps/win32-81/babel.config.js @@ -1 +1 @@ -module.exports = require('@fluentui-react-native/babel-config'); +module.exports = require('@fluentui-react-native/scripts/babel-config'); diff --git a/apps/win32/babel.config.js b/apps/win32/babel.config.js index aa7d482ebf2..c330013387f 100644 --- a/apps/win32/babel.config.js +++ b/apps/win32/babel.config.js @@ -1 +1 @@ -module.exports = require('@fluentui-react-native/babel-config'); +module.exports = require('@fluentui-react-native/scripts/babel-config'); diff --git a/packages/configs/kit-config/furn-preset.ts b/packages/configs/kit-config/furn-preset.ts index 7a2dc7eb73f..4a252f32648 100644 --- a/packages/configs/kit-config/furn-preset.ts +++ b/packages/configs/kit-config/furn-preset.ts @@ -20,13 +20,7 @@ type Capability = | 'core-macos-dev-only' | 'react-types' | 'react-test-renderer-types' - | 'babel-preset-react-native' - | 'babel-core' - | 'tools-babel' - | 'tools-jest' - | 'tools-jest-react' - | 'tools-core' - | 'tools-react-configs'; + | 'babel-preset-react-native'; /** Remove the hard Capability type from Package as we are adding custom capabilities */ type Package = Omit & { @@ -106,40 +100,6 @@ function formFurnPreset(rnPreset: VersionPreset, _version: number): VersionPrese version: presetWindows.version, capabilities: ['core'], }, - 'tools-babel': { - name: '@fluentui-react-native/babel-config', - version: `workspace:*`, - devOnly: true, - capabilities: ['babel-preset-react-native', 'babel-core'], - }, - 'tools-react-configs': { - name: '@fluentui-react-native/react-configs', - version: `workspace:*`, - devOnly: true, - capabilities: ['babel-core'], - }, - 'tools-core': { - name: '@fluentui-react-native/scripts', - version: 'workspace:*', - devOnly: true, - }, - 'tools-jest': { - name: '@fluentui-react-native/jest-config', - version: 'workspace:*', - devOnly: true, - capabilities: ['tools-core', 'tools-babel'], - }, - 'tools-jest-react': { - name: '@fluentui-react-native/react-configs', - version: 'workspace:*', - devOnly: true, - capabilities: ['tools-core', 'babel-core'], - }, - 'babel-core': { - name: '@babel/core', - version: 'catalog:', - devOnly: true, - }, }; // now add the dev capabilities and link to catalogs diff --git a/packages/framework-base/package.json b/packages/framework-base/package.json index 0c9c1bd4693..0238c4934a6 100644 --- a/packages/framework-base/package.json +++ b/packages/framework-base/package.json @@ -3,13 +3,16 @@ "version": "0.3.3", "description": "Base types and utilities fluentui-react-native frameworks", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework-base" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -24,9 +27,6 @@ "default": "./src/jsx-runtime.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -44,7 +44,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@types/jest": "^29.0.0", "@types/node": "catalog:", @@ -70,9 +69,7 @@ "alignDeps": { "capabilities": [ "core-dev-only", - "react", - "tools-core", - "tools-jest-react" + "react" ] } } diff --git a/scripts/package.json b/scripts/package.json index cfcdac62c3d..5f939174fce 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -18,6 +18,7 @@ "require": "./src/index.js", "default": "./src/index.js" }, + "./babel-config": "./configs/jest/babel.config.cjs", "./jest-config": "./configs/jest/jest.config.cjs", "./lint-config": "./configs/oxlint/oxlint.config.ts", "./package.json": "./package.json", @@ -97,6 +98,19 @@ } ], "furn": { - "packageType": "tooling" + "packageType": "tooling", + "depcheck": { + "ignoreMatches": [ + "@babel/plugin-transform-react-jsx", + "@babel/plugin-transform-react-jsx-source", + "@babel/preset-env", + "@babel/preset-react", + "@babel/preset-typescript", + "@microsoft/eslint-plugin-sdl", + "@rnx-kit/align-deps", + "@rnx-kit/config", + "@rnx-kit/eslint-plugin" + ] + } } } diff --git a/scripts/src/preinstall/tool-versions.js b/scripts/src/preinstall/tool-versions.js index 98248297ded..f3cdedec8d3 100644 --- a/scripts/src/preinstall/tool-versions.js +++ b/scripts/src/preinstall/tool-versions.js @@ -60,8 +60,6 @@ const devToolVersions = { /** @type {Record} */ const workspaceToolVersions = { - '@fluentui-react-native/babel-config': 'workspace:*', - '@fluentui-react-native/jest-config': 'workspace:*', '@fluentui-react-native/scripts': 'workspace:*', }; diff --git a/scripts/src/tasks/lintPackage.ts b/scripts/src/tasks/lintPackage.ts index 0abdb48dd96..414b2c39320 100644 --- a/scripts/src/tasks/lintPackage.ts +++ b/scripts/src/tasks/lintPackage.ts @@ -9,9 +9,6 @@ import { getCatalog } from '../utils/getCatalog.ts'; import { createJSONValidator } from '@rnx-kit/lint-json'; import fs from 'node:fs'; import path from 'node:path'; -import { fileURLToPath } from 'node:url'; - -const __dirname = fileURLToPath(new URL('.', import.meta.url)); export class LintPackageCommand extends Command { static override paths = [['lint-package']]; @@ -37,10 +34,14 @@ export class LintPackageCommand extends Command { private isLibrary = false; private projRoot: ProjectRoot = getProjectRoot(process.cwd()); private result = 0; - private removedDevDeps: string[] = []; + private removedDevDeps: string[] = [ + '@fluentui-react-native/babel-config', + '@fluentui-react-native/jest-config', + '@fluentui-react-native/react-configs', + ]; private addedDevDeps: Record = {}; private ensuredCapabilities: string[] = []; - private removedCapabilities: string[] = []; + private removedCapabilities: string[] = ['tools-core', 'tools-jest', 'tools-jest-react', 'tools-babel', 'tools-react-configs']; private getCatalog = getCatalog(); async execute() { @@ -70,7 +71,6 @@ export class LintPackageCommand extends Command { this.checkPrivateVersion(); this.checkManifest(); - this.checkUsage(); this.checkScripts(); this.checkEntryPoints(buildConfig); this.checkBuildConfig(buildConfig); @@ -79,7 +79,6 @@ export class LintPackageCommand extends Command { this.checkPeerDeps(); this.checkRnxKitConfig(); this.checkTsConfig(); - this.checkJestPlatform(); await this.checkCatalogs(); // report the results for the custom linting @@ -97,39 +96,6 @@ export class LintPackageCommand extends Command { return this.result; } - private checkJestPlatform() { - const jestConfigPath = path.join(this.projRoot.root, 'jest.config.js'); - const hasJestConfig = fs.existsSync(jestConfigPath); - if (hasJestConfig && !this.projRoot.manifest.furn?.jestPlatform) { - const configSrc = fs.readFileSync(jestConfigPath, 'utf-8'); - if (configSrc.includes('@fluentui-react-native/react-configs/jest.config.js')) { - this.errorIf(true, 'Missing furn.jestPlatform setting', () => { - this.projRoot.updateRecordEntry('furn' as any, 'jestPlatform', 'react'); - }); - } else { - // with configs of the format: - // const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); - // module.exports = configureReactNativeJest('android'); - // parse out the platform string and set that into furn.jestPlatform - const match = configSrc.match(/configureReactNativeJest\(['"](\w+)['"]\)/); - if (match) { - const platform = match[1]; - this.errorIf(true, `Missing furn.jestPlatform setting: ${platform}`, () => { - this.projRoot.updateRecordEntry('furn' as any, 'jestPlatform', platform); - }); - } - } - } - if (hasJestConfig) { - this.errorIf(true, 'should have jest.config.cjs instead of jest.config.js', () => { - // delete jest.config.js and copy ../../templates/jest.config.cjs to jest.config.cjs - const newConfigPath = path.join(this.projRoot.root, 'jest.config.cjs'); - fs.copyFileSync(path.join(__dirname, '../../templates/jest.config.cjs'), newConfigPath); - fs.unlinkSync(jestConfigPath); - }); - } - } - private handleResult(code: number, source: string) { if (code !== 0) { console.error(`lint-package: ${source} failed with code`, code); @@ -181,25 +147,6 @@ export class LintPackageCommand extends Command { }); } - private checkUsage() { - const rootDir = this.projRoot.root; - if (this.isLibrary) { - this.ensuredCapabilities.push('tools-core'); - const hasJestConfig = fs.existsSync(path.join(rootDir, 'jest.config.js')) || fs.existsSync(path.join(rootDir, 'jest.config.ts')); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const hasReactJest = this.projRoot.manifest['rnx-kit']?.alignDeps?.capabilities?.includes('tools-jest-react' as any); - if (!hasReactJest) { - if (hasJestConfig) { - this.ensuredCapabilities.push('tools-jest'); - this.addedDevDeps['@fluentui-react-native/jest-config'] = 'workspace:*'; - } else { - this.removedCapabilities.push('tools-jest', 'babel-preset-react-native', 'tools-babel'); - this.removedDevDeps.push('@fluentui-react-native/jest-config', '@types/jest', 'jest', 'ts-jest'); - } - } - } - } - private checkDependencies() { const manifest = this.projRoot.manifest; if (manifest['rnx-kit']?.kitType === 'app') { From 3d406173513af75cecbe3b2bb00763641bdc26c9 Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Thu, 7 May 2026 16:31:38 -0700 Subject: [PATCH 4/8] remove old package and capability references --- apps/E2E/package.json | 3 +-- apps/fluent-tester/package.json | 4 +--- apps/tester-core/package.json | 4 +--- apps/win32-81/package.json | 4 +--- apps/win32/package.json | 4 +--- packages/codemods/package.json | 22 ++++++++----------- packages/components/Avatar/package.json | 16 +++++--------- packages/components/Badge/package.json | 12 ++++------ packages/components/Button/package.json | 16 +++++--------- packages/components/Callout/package.json | 16 +++++--------- packages/components/Checkbox/package.json | 16 +++++--------- packages/components/Chip/package.json | 12 ++++------ .../components/ContextualMenu/package.json | 16 +++++--------- packages/components/Divider/package.json | 16 +++++--------- .../components/FocusTrapZone/package.json | 16 +++++--------- packages/components/FocusZone/package.json | 16 +++++--------- packages/components/Icon/package.json | 16 +++++--------- packages/components/Input/package.json | 16 +++++--------- packages/components/Link/package.json | 16 +++++--------- packages/components/Menu/package.json | 16 +++++--------- packages/components/MenuButton/package.json | 16 +++++--------- packages/components/Notification/package.json | 16 +++++--------- packages/components/Persona/package.json | 4 +--- packages/components/PersonaCoin/package.json | 4 +--- packages/components/Pressable/package.json | 4 +--- packages/components/RadioGroup/package.json | 16 +++++--------- packages/components/Separator/package.json | 16 +++++--------- packages/components/Stack/package.json | 16 +++++--------- packages/components/Switch/package.json | 16 +++++--------- packages/components/TabList/package.json | 16 +++++--------- packages/components/Text/package.json | 16 +++++--------- packages/configs/jest-config/package.json | 1 - .../foundation-composable/package.json | 3 +-- .../foundation-compose/package.json | 3 +-- .../foundation-settings/package.json | 15 +++++-------- .../deprecated/foundation-tokens/package.json | 15 +++++-------- .../deprecated/theme-registry/package.json | 15 +++++-------- .../deprecated/themed-settings/package.json | 15 +++++-------- packages/deprecated/theming-ramp/package.json | 15 +++++-------- .../theming-react-native/package.json | 4 +--- .../ActivityIndicator/package.json | 3 +-- .../AppearanceAdditions/package.json | 4 +--- packages/experimental/Avatar/package.json | 4 +--- packages/experimental/Checkbox/package.json | 4 +--- packages/experimental/Drawer/package.json | 16 +++++--------- packages/experimental/Dropdown/package.json | 4 +--- packages/experimental/Expander/package.json | 4 +--- packages/experimental/MenuButton/package.json | 16 +++++--------- .../NativeDatePicker/package.json | 4 +--- .../NativeFontMetrics/package.json | 4 +--- packages/experimental/Overflow/package.json | 16 +++++--------- packages/experimental/Popover/package.json | 4 +--- packages/experimental/Shadow/package.json | 16 +++++--------- packages/experimental/Shimmer/package.json | 16 +++++--------- packages/experimental/Spinner/package.json | 4 +--- packages/experimental/Tooltip/package.json | 16 +++++--------- .../experimental/VibrancyView/package.json | 4 +--- packages/framework/composition/package.json | 16 +++++--------- packages/framework/framework/package.json | 16 +++++--------- packages/framework/theme/package.json | 16 +++++--------- .../framework/themed-stylesheet/package.json | 16 +++++--------- packages/framework/use-slot/package.json | 16 +++++--------- packages/framework/use-slots/package.json | 16 +++++--------- packages/framework/use-styling/package.json | 16 +++++--------- packages/framework/use-tokens/package.json | 16 +++++--------- packages/libraries/core/package.json | 4 +--- packages/theming/android-theme/package.json | 16 +++++--------- packages/theming/apple-theme/package.json | 16 +++++--------- packages/theming/default-theme/package.json | 16 +++++--------- packages/theming/theme-tokens/package.json | 4 +--- packages/theming/theme-types/package.json | 4 +--- packages/theming/theming-utils/package.json | 16 +++++--------- packages/theming/win32-theme/package.json | 16 +++++--------- packages/utils/adapters/package.json | 4 +--- packages/utils/interactive-hooks/package.json | 16 +++++--------- packages/utils/styling/package.json | 4 +--- packages/utils/test-tools/package.json | 16 +++++--------- packages/utils/tokens/package.json | 4 +--- scripts/src/tasks/lintPackage.ts | 10 ++------- 79 files changed, 323 insertions(+), 573 deletions(-) diff --git a/apps/E2E/package.json b/apps/E2E/package.json index f174bc53d69..8879204d999 100644 --- a/apps/E2E/package.json +++ b/apps/E2E/package.json @@ -115,8 +115,7 @@ "core-win32", "core-windows", "metro-react-native-babel-transformer", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/apps/fluent-tester/package.json b/apps/fluent-tester/package.json index 9e3edccaf03..9ddbf203bcb 100644 --- a/apps/fluent-tester/package.json +++ b/apps/fluent-tester/package.json @@ -53,7 +53,6 @@ "devDependencies": { "@babel/core": "catalog:", "@babel/runtime": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/callout": "workspace:*", "@fluentui-react-native/experimental-appearance-additions": "workspace:*", "@fluentui-react-native/experimental-avatar": "workspace:*", @@ -176,8 +175,7 @@ "react", "react-test-renderer", "svg", - "test-app", - "tools-core" + "test-app" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/apps/tester-core/package.json b/apps/tester-core/package.json index 6225c9c4347..84c72d2404d 100644 --- a/apps/tester-core/package.json +++ b/apps/tester-core/package.json @@ -94,7 +94,6 @@ "devDependencies": { "@babel/core": "catalog:", "@babel/runtime": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.81.0", @@ -223,8 +222,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/apps/win32-81/package.json b/apps/win32-81/package.json index 8e5fb3ff81b..46c2ec34ced 100644 --- a/apps/win32-81/package.json +++ b/apps/win32-81/package.json @@ -44,7 +44,6 @@ "devDependencies": { "@babel/core": "catalog:", "@babel/runtime": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/rex-win32": "0.81.0-preview.0", @@ -130,8 +129,7 @@ "react", "react-test-renderer", "svg", - "test-app", - "tools-core" + "test-app" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/apps/win32/package.json b/apps/win32/package.json index c2c2e541387..21dc4f3d4cd 100644 --- a/apps/win32/package.json +++ b/apps/win32/package.json @@ -44,7 +44,6 @@ "devDependencies": { "@babel/core": "catalog:", "@babel/runtime": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/rex-win32": "0.73.11-devmain.16.0.17615.15030", @@ -122,8 +121,7 @@ "react", "react-test-renderer", "svg", - "test-app", - "tools-core" + "test-app" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/codemods/package.json b/packages/codemods/package.json index 38581ed73dd..a903c5f347e 100644 --- a/packages/codemods/package.json +++ b/packages/codemods/package.json @@ -3,13 +3,19 @@ "version": "0.6.2", "description": "Transform files to make refactoring FURN code easier", "homepage": "https://github.com/microsoft/fluentui-react-native", + "license": "MIT", + "author": "Microsoft ", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/codemods" }, - "license": "MIT", - "author": "Microsoft ", + "bin": { + "transform": "./transform.js" + }, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,12 +24,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", - "bin": { - "transform": "./transform.js" - }, "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -43,7 +43,6 @@ "@babel/core": "catalog:", "@babel/preset-env": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@types/jscodeshift": "^0.11.11", @@ -64,10 +63,7 @@ "kitType": "library", "extends": "@fluentui-react-native/kit-config", "alignDeps": { - "capabilities": [ - "tools-core", - "tools-jest-react" - ] + "capabilities": [] } } } diff --git a/packages/components/Avatar/package.json b/packages/components/Avatar/package.json index ceab5dcc4dd..a18a28d689a 100644 --- a/packages/components/Avatar/package.json +++ b/packages/components/Avatar/package.json @@ -3,13 +3,16 @@ "version": "1.13.3", "description": "A cross-platform Avatar component using the Fluent Design System", "homepage": "https://github.com/microsoft/fluentui-react-native", + "license": "MIT", + "author": "Microsoft ", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Avatar" }, - "license": "MIT", - "author": "Microsoft ", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -46,9 +46,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", @@ -104,9 +102,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Badge/package.json b/packages/components/Badge/package.json index 592b8dad88c..03e80a6f584 100644 --- a/packages/components/Badge/package.json +++ b/packages/components/Badge/package.json @@ -6,6 +6,9 @@ "license": "MIT", "author": "Microsoft ", "sideEffects": false, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -14,9 +17,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -44,9 +44,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -103,9 +101,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Button/package.json b/packages/components/Button/package.json index 2f78aa2f56e..26c8ce7d1a6 100644 --- a/packages/components/Button/package.json +++ b/packages/components/Button/package.json @@ -2,14 +2,17 @@ "name": "@fluentui-react-native/button", "version": "0.40.3", "description": "A cross-platform Button component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Button" }, - "license": "MIT", - "author": "", "sideEffects": false, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -54,9 +54,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -113,9 +111,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Callout/package.json b/packages/components/Callout/package.json index 5ef6c777de2..25566050db4 100644 --- a/packages/components/Callout/package.json +++ b/packages/components/Callout/package.json @@ -3,13 +3,16 @@ "version": "0.28.3", "description": "A cross-platform Callout component using the Fluent Design System", "homepage": "https://github.com/microsoft/fluentui-react-native", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Callout" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -42,8 +42,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", @@ -101,9 +99,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Checkbox/package.json b/packages/components/Checkbox/package.json index 41a2d50570d..4d5d3eac737 100644 --- a/packages/components/Checkbox/package.json +++ b/packages/components/Checkbox/package.json @@ -2,14 +2,17 @@ "name": "@fluentui-react-native/checkbox", "version": "0.24.3", "description": "A cross-platform Checkbox component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Checkbox" }, - "license": "MIT", - "author": "", "sideEffects": false, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -50,9 +50,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -109,9 +107,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Chip/package.json b/packages/components/Chip/package.json index 10f55e6d1f7..d6e2405ef3e 100644 --- a/packages/components/Chip/package.json +++ b/packages/components/Chip/package.json @@ -5,6 +5,9 @@ "homepage": "https://github.com/microsoft/fluentui-react-native", "license": "MIT", "author": "Microsoft ", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -13,9 +16,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -40,9 +40,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -99,9 +97,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/ContextualMenu/package.json b/packages/components/ContextualMenu/package.json index 04f72c37f20..c9761268caa 100644 --- a/packages/components/ContextualMenu/package.json +++ b/packages/components/ContextualMenu/package.json @@ -3,13 +3,16 @@ "version": "0.25.3", "description": "A cross-platform ContextualMenu component using the Fluent Design System", "homepage": "https://github.com/microsoft/fluentui-react-native", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/ContextualMenu" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -47,9 +47,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/pressable": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -110,9 +108,7 @@ "core/metro-config", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Divider/package.json b/packages/components/Divider/package.json index 4a02db1cdef..86091cdce46 100644 --- a/packages/components/Divider/package.json +++ b/packages/components/Divider/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/divider", "version": "0.8.3", "description": "A cross-platform Divider component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Divider" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -41,9 +41,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -100,9 +98,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/FocusTrapZone/package.json b/packages/components/FocusTrapZone/package.json index 8c6fdc47fc0..473dc79c0b5 100644 --- a/packages/components/FocusTrapZone/package.json +++ b/packages/components/FocusTrapZone/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/focus-trap-zone", "version": "0.13.3", "description": "A cross-platform FocusTrapZone component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/FocusTrapZone" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -40,8 +40,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", @@ -94,9 +92,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/FocusZone/package.json b/packages/components/FocusZone/package.json index e7bbed24b64..4c0a4a2c377 100644 --- a/packages/components/FocusZone/package.json +++ b/packages/components/FocusZone/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/focus-zone", "version": "0.22.3", "description": "A cross-platform FocusZone component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/FocusZone" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -40,8 +40,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", @@ -96,9 +94,7 @@ "core-windows", "metro-react-native-babel-transformer", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Icon/package.json b/packages/components/Icon/package.json index ba6aa512ec0..8637b9dd16a 100644 --- a/packages/components/Icon/package.json +++ b/packages/components/Icon/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/icon", "version": "0.22.3", "description": "A cross-platform Icon component", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Icon" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -40,8 +40,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -98,9 +96,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Input/package.json b/packages/components/Input/package.json index 43a32769d66..8553f186cd4 100644 --- a/packages/components/Input/package.json +++ b/packages/components/Input/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/input", "version": "0.8.3", "description": "A cross-platform Text input component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Input" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -44,9 +44,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -102,9 +100,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Link/package.json b/packages/components/Link/package.json index 325d0a09902..4916a8accf3 100644 --- a/packages/components/Link/package.json +++ b/packages/components/Link/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/link", "version": "0.24.3", "description": "A cross-platform Link component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Link" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -45,9 +45,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -100,9 +98,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Menu/package.json b/packages/components/Menu/package.json index 1b62774b2bf..e78a9955f39 100644 --- a/packages/components/Menu/package.json +++ b/packages/components/Menu/package.json @@ -2,14 +2,17 @@ "name": "@fluentui-react-native/menu", "version": "1.15.3", "description": "A cross-platform Menu component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/menu" }, - "license": "MIT", - "author": "", "sideEffects": false, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -49,10 +49,8 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/button": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -110,9 +108,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/MenuButton/package.json b/packages/components/MenuButton/package.json index e46c52f53f4..6522dc6a21d 100644 --- a/packages/components/MenuButton/package.json +++ b/packages/components/MenuButton/package.json @@ -3,13 +3,16 @@ "version": "0.14.3", "description": "A cross-platform MenuButton component using the Fluent Design System", "homepage": "https://github.com/microsoft/fluentui-react-native", + "license": "MIT", + "author": "Microsoft ", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/MenuButton" }, - "license": "MIT", - "author": "Microsoft ", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -44,9 +44,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", @@ -102,9 +100,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Notification/package.json b/packages/components/Notification/package.json index 6ab1a72bb16..85abc260089 100644 --- a/packages/components/Notification/package.json +++ b/packages/components/Notification/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/notification", "version": "0.26.3", "description": "add component-description", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Notification" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -49,9 +49,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -108,9 +106,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Persona/package.json b/packages/components/Persona/package.json index c5d4e34dc41..411f2aa220f 100644 --- a/packages/components/Persona/package.json +++ b/packages/components/Persona/package.json @@ -44,7 +44,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -89,8 +88,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/PersonaCoin/package.json b/packages/components/PersonaCoin/package.json index b481b415265..bf65d94e135 100644 --- a/packages/components/PersonaCoin/package.json +++ b/packages/components/PersonaCoin/package.json @@ -44,7 +44,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -90,8 +89,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Pressable/package.json b/packages/components/Pressable/package.json index 95a6147ab83..736c61b8a38 100644 --- a/packages/components/Pressable/package.json +++ b/packages/components/Pressable/package.json @@ -40,7 +40,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -84,8 +83,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/RadioGroup/package.json b/packages/components/RadioGroup/package.json index fbf888f662b..26a153b1e56 100644 --- a/packages/components/RadioGroup/package.json +++ b/packages/components/RadioGroup/package.json @@ -2,14 +2,17 @@ "name": "@fluentui-react-native/radio-group", "version": "0.22.3", "description": "A cross-platform Radio Group component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/RadioGroup" }, - "license": "MIT", - "author": "", "sideEffects": false, + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -49,9 +49,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -108,9 +106,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Separator/package.json b/packages/components/Separator/package.json index ee70cd63daf..55671c93ef6 100644 --- a/packages/components/Separator/package.json +++ b/packages/components/Separator/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/separator", "version": "0.19.3", "description": "A cross-platform Separator component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Separator" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -39,9 +39,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", @@ -94,9 +92,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Stack/package.json b/packages/components/Stack/package.json index e7339855fc7..b53e15ad162 100644 --- a/packages/components/Stack/package.json +++ b/packages/components/Stack/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/stack", "version": "0.11.3", "description": "A cross-platform opinionated Fluent Text component", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Stack" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -43,9 +43,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/text": "workspace:*", @@ -98,9 +96,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Switch/package.json b/packages/components/Switch/package.json index 62acf0f4c1e..3b02531b8ca 100644 --- a/packages/components/Switch/package.json +++ b/packages/components/Switch/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/switch", "version": "0.14.3", "description": "A cross-platform Switch component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Switch" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -43,9 +43,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -99,9 +97,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/TabList/package.json b/packages/components/TabList/package.json index 8ae32b63888..9ed277d1622 100644 --- a/packages/components/TabList/package.json +++ b/packages/components/TabList/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/tablist", "version": "0.8.3", "description": "A cross-platform TabList component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/TabList" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -45,9 +45,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -104,9 +102,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/components/Text/package.json b/packages/components/Text/package.json index 3222c567915..c42adcc39d6 100644 --- a/packages/components/Text/package.json +++ b/packages/components/Text/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/text", "version": "0.25.3", "description": "A cross-platform Text component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/text" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -42,9 +42,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -97,9 +95,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/configs/jest-config/package.json b/packages/configs/jest-config/package.json index 26def381c63..f8260e0a66d 100644 --- a/packages/configs/jest-config/package.json +++ b/packages/configs/jest-config/package.json @@ -32,7 +32,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native/babel-preset": "^0.81.0", diff --git a/packages/deprecated/foundation-composable/package.json b/packages/deprecated/foundation-composable/package.json index 82481cf1b69..3a5e7aa04d3 100644 --- a/packages/deprecated/foundation-composable/package.json +++ b/packages/deprecated/foundation-composable/package.json @@ -60,8 +60,7 @@ "kitType": "library", "alignDeps": { "capabilities": [ - "core", - "tools-core" + "core" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/deprecated/foundation-compose/package.json b/packages/deprecated/foundation-compose/package.json index 1aba956ce38..92f8f145677 100644 --- a/packages/deprecated/foundation-compose/package.json +++ b/packages/deprecated/foundation-compose/package.json @@ -93,8 +93,7 @@ "core", "core-macos", "core-win32", - "core-windows", - "tools-core" + "core-windows" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/deprecated/foundation-settings/package.json b/packages/deprecated/foundation-settings/package.json index 348281f87f5..ea88539dfb8 100644 --- a/packages/deprecated/foundation-settings/package.json +++ b/packages/deprecated/foundation-settings/package.json @@ -3,13 +3,16 @@ "version": "0.16.3", "description": "Settings and style definitions and helpers", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/deprecated/foundation-settings" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -41,7 +41,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@types/jest": "^29.0.0", "@types/react": "~19.1.4", @@ -64,9 +63,7 @@ "kitType": "library", "alignDeps": { "capabilities": [ - "core-dev-only", - "tools-core", - "tools-jest-react" + "core-dev-only" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/deprecated/foundation-tokens/package.json b/packages/deprecated/foundation-tokens/package.json index 6f16c477ce8..271b9fb25bd 100644 --- a/packages/deprecated/foundation-tokens/package.json +++ b/packages/deprecated/foundation-tokens/package.json @@ -3,13 +3,16 @@ "version": "0.16.3", "description": "Core tokens package", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/deprecated/foundation-tokens" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -44,7 +44,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.81.0", "@react-native-community/cli": "^20.0.0", @@ -94,9 +93,7 @@ "core-ios", "core-macos", "core-win32", - "core-windows", - "tools-core", - "tools-jest-react" + "core-windows" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/deprecated/theme-registry/package.json b/packages/deprecated/theme-registry/package.json index b231d57a08f..ab08230915d 100644 --- a/packages/deprecated/theme-registry/package.json +++ b/packages/deprecated/theme-registry/package.json @@ -3,13 +3,16 @@ "version": "0.13.3", "description": "Implementation of the theme graph", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/deprecated/theme-registry" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -39,7 +39,6 @@ "@babel/core": "catalog:", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native/babel-preset": "^0.74.0", "@react-native/metro-config": "^0.74.0", @@ -64,9 +63,7 @@ "kitType": "library", "alignDeps": { "capabilities": [ - "core-dev-only", - "tools-core", - "tools-jest-react" + "core-dev-only" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/deprecated/themed-settings/package.json b/packages/deprecated/themed-settings/package.json index 94e7c21334c..9d5b2e95fd6 100644 --- a/packages/deprecated/themed-settings/package.json +++ b/packages/deprecated/themed-settings/package.json @@ -3,13 +3,16 @@ "version": "0.13.3", "description": "Package which drives custom cacheable settings for a component", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/deprecated/themed-settings" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -42,7 +42,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native/babel-preset": "^0.81.0", "@types/jest": "^29.0.0", @@ -68,9 +67,7 @@ "alignDeps": { "capabilities": [ "babel-preset-react-native", - "core-dev-only", - "tools-core", - "tools-jest-react" + "core-dev-only" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/deprecated/theming-ramp/package.json b/packages/deprecated/theming-ramp/package.json index a24cc88905b..c786a26aff0 100644 --- a/packages/deprecated/theming-ramp/package.json +++ b/packages/deprecated/theming-ramp/package.json @@ -3,13 +3,16 @@ "version": "0.21.3", "description": "Theming Library", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/deprecated/theming-ramp" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -43,7 +43,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "@types/jest": "^29.0.0", @@ -68,9 +67,7 @@ "kitType": "library", "alignDeps": { "capabilities": [ - "core-dev-only", - "tools-core", - "tools-jest-react" + "core-dev-only" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/deprecated/theming-react-native/package.json b/packages/deprecated/theming-react-native/package.json index 23943a0a164..f744a3ad5c4 100644 --- a/packages/deprecated/theming-react-native/package.json +++ b/packages/deprecated/theming-react-native/package.json @@ -43,7 +43,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -88,8 +87,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/ActivityIndicator/package.json b/packages/experimental/ActivityIndicator/package.json index 621f33567e4..7ace347a439 100644 --- a/packages/experimental/ActivityIndicator/package.json +++ b/packages/experimental/ActivityIndicator/package.json @@ -86,8 +86,7 @@ "core-macos", "core-windows", "react", - "svg", - "tools-core" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/AppearanceAdditions/package.json b/packages/experimental/AppearanceAdditions/package.json index b8ffa4debb1..110abc2a509 100644 --- a/packages/experimental/AppearanceAdditions/package.json +++ b/packages/experimental/AppearanceAdditions/package.json @@ -39,7 +39,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -84,8 +83,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/Avatar/package.json b/packages/experimental/Avatar/package.json index 280bd3e5c0a..391ff6697da 100644 --- a/packages/experimental/Avatar/package.json +++ b/packages/experimental/Avatar/package.json @@ -38,7 +38,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -86,8 +85,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/Checkbox/package.json b/packages/experimental/Checkbox/package.json index 24f7903e881..33c5ea7eb50 100644 --- a/packages/experimental/Checkbox/package.json +++ b/packages/experimental/Checkbox/package.json @@ -38,7 +38,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -88,8 +87,7 @@ "core-macos", "core-windows", "react", - "svg", - "tools-core" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/Drawer/package.json b/packages/experimental/Drawer/package.json index f644cdc9e8f..3a40c7539ec 100644 --- a/packages/experimental/Drawer/package.json +++ b/packages/experimental/Drawer/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/drawer", "version": "0.5.3", "description": "A cross-platform Drawer component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/components/Drawer" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -40,9 +40,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -94,9 +92,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/Dropdown/package.json b/packages/experimental/Dropdown/package.json index 08f04b64ca0..7d6f046501f 100644 --- a/packages/experimental/Dropdown/package.json +++ b/packages/experimental/Dropdown/package.json @@ -43,7 +43,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -93,8 +92,7 @@ "core-macos", "core-windows", "react", - "svg", - "tools-core" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/Expander/package.json b/packages/experimental/Expander/package.json index bb2b2024114..fb9b2524a92 100644 --- a/packages/experimental/Expander/package.json +++ b/packages/experimental/Expander/package.json @@ -40,7 +40,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -85,8 +84,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/MenuButton/package.json b/packages/experimental/MenuButton/package.json index 5f2e7db59fe..d3b34817fa6 100644 --- a/packages/experimental/MenuButton/package.json +++ b/packages/experimental/MenuButton/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/experimental-menu-button", "version": "0.11.3", "description": "A cross-platform MenuButton component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/experimental/MenuButton" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -40,9 +40,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", @@ -98,9 +96,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/NativeDatePicker/package.json b/packages/experimental/NativeDatePicker/package.json index 982d899899b..e85ee2124cf 100644 --- a/packages/experimental/NativeDatePicker/package.json +++ b/packages/experimental/NativeDatePicker/package.json @@ -35,7 +35,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -63,8 +62,7 @@ "core", "core-android", "core-ios", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/NativeFontMetrics/package.json b/packages/experimental/NativeFontMetrics/package.json index d2403a103f3..44f827826c4 100644 --- a/packages/experimental/NativeFontMetrics/package.json +++ b/packages/experimental/NativeFontMetrics/package.json @@ -38,7 +38,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -66,8 +65,7 @@ "capabilities": [ "core", "core-ios", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/Overflow/package.json b/packages/experimental/Overflow/package.json index b4ba0326fc9..90050b94429 100644 --- a/packages/experimental/Overflow/package.json +++ b/packages/experimental/Overflow/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/overflow", "version": "0.4.3", "description": "A cross-platform Overflow component for React Native.", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/experimental/Overflow" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -38,9 +38,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/button": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/menu": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -92,9 +90,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/Popover/package.json b/packages/experimental/Popover/package.json index a0418370cd7..a6acb269a1c 100644 --- a/packages/experimental/Popover/package.json +++ b/packages/experimental/Popover/package.json @@ -38,7 +38,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -83,8 +82,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/Shadow/package.json b/packages/experimental/Shadow/package.json index fc3bc3c5914..41f264c2dfd 100644 --- a/packages/experimental/Shadow/package.json +++ b/packages/experimental/Shadow/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/experimental-shadow", "version": "0.7.3", "description": "A cross-platform Shadow component using the Fluent Design System", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/experimental/Shadow" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -40,8 +40,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -94,9 +92,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/Shimmer/package.json b/packages/experimental/Shimmer/package.json index bc2448d40be..087d8ab6c00 100644 --- a/packages/experimental/Shimmer/package.json +++ b/packages/experimental/Shimmer/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/experimental-shimmer", "version": "0.14.3", "description": "A cross-platform Fluent Shimmer component", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/experimental/Shimmer" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -41,9 +41,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -97,9 +95,7 @@ "core-macos", "core-windows", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/Spinner/package.json b/packages/experimental/Spinner/package.json index 6620bd90d7e..f519d2f1aea 100644 --- a/packages/experimental/Spinner/package.json +++ b/packages/experimental/Spinner/package.json @@ -40,7 +40,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/framework-base": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", @@ -89,8 +88,7 @@ "core-macos", "core-windows", "react", - "svg", - "tools-core" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/Tooltip/package.json b/packages/experimental/Tooltip/package.json index 8cc6a586aab..716923f1ac2 100644 --- a/packages/experimental/Tooltip/package.json +++ b/packages/experimental/Tooltip/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/tooltip", "version": "0.5.3", "description": "A cross-platform Tooltip component for React Native.", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/experimental/Tooltip" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -38,9 +38,7 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/button": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -91,9 +89,7 @@ "core-windows", "react", "react-test-renderer", - "svg", - "tools-core", - "tools-jest" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/experimental/VibrancyView/package.json b/packages/experimental/VibrancyView/package.json index bd1db7fd4a1..017ac37d30b 100644 --- a/packages/experimental/VibrancyView/package.json +++ b/packages/experimental/VibrancyView/package.json @@ -38,7 +38,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.81.0", @@ -84,8 +83,7 @@ "core-macos", "core-win32", "core-windows", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/framework/composition/package.json b/packages/framework/composition/package.json index 3e5cd5764ce..1b29956bc61 100644 --- a/packages/framework/composition/package.json +++ b/packages/framework/composition/package.json @@ -3,13 +3,16 @@ "version": "0.12.3", "description": "Composition factories for building HOCs", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/composition" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -42,8 +42,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native/babel-preset": "^0.81.0", @@ -70,9 +68,7 @@ "alignDeps": { "capabilities": [ "core-dev-only", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/framework/framework/package.json b/packages/framework/framework/package.json index 8cf20c7c415..30ca2406267 100644 --- a/packages/framework/framework/package.json +++ b/packages/framework/framework/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/framework", "version": "0.15.3", "description": "Component framework used by fluentui react native controls", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/framework/framework" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -47,8 +47,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -101,9 +99,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/framework/theme/package.json b/packages/framework/theme/package.json index 02ab0ea3e2a..fa5636d1993 100644 --- a/packages/framework/theme/package.json +++ b/packages/framework/theme/package.json @@ -3,13 +3,16 @@ "version": "0.12.3", "description": "Experimental version of fluentui-react-native theme framework", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/theme" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -41,8 +41,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -76,9 +74,7 @@ "core", "core-android", "core-ios", - "react", - "tools-core", - "tools-jest" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/framework/themed-stylesheet/package.json b/packages/framework/themed-stylesheet/package.json index 75974a0ffc1..f32eaff1ca3 100644 --- a/packages/framework/themed-stylesheet/package.json +++ b/packages/framework/themed-stylesheet/package.json @@ -3,13 +3,16 @@ "version": "1.8.3", "description": "Helper for using react-native StyleSheets with themes", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/themed-stylesheet" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -40,8 +40,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -73,9 +71,7 @@ "babel-preset-react-native", "core", "core-android", - "core-ios", - "tools-core", - "tools-jest" + "core-ios" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/framework/use-slot/package.json b/packages/framework/use-slot/package.json index 1f2c00ec55f..93e006c222a 100644 --- a/packages/framework/use-slot/package.json +++ b/packages/framework/use-slot/package.json @@ -3,13 +3,16 @@ "version": "0.7.3", "description": "Hook function to use a component as a pluggable slot", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/use-slot" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -40,8 +40,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -76,9 +74,7 @@ "core-dev-only", "core-ios-dev-only", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/framework/use-slots/package.json b/packages/framework/use-slots/package.json index 457de92f44a..cfb21f95a9b 100644 --- a/packages/framework/use-slots/package.json +++ b/packages/framework/use-slots/package.json @@ -3,13 +3,16 @@ "version": "0.11.3", "description": "Hook function to return styled slots", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/use-slots" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -41,8 +41,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -76,9 +74,7 @@ "core-dev-only", "core-ios-dev-only", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/framework/use-styling/package.json b/packages/framework/use-styling/package.json index e5c77582252..3d36e25adf1 100644 --- a/packages/framework/use-styling/package.json +++ b/packages/framework/use-styling/package.json @@ -3,13 +3,16 @@ "version": "0.14.3", "description": "Opinionated use styling hook implementation", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/use-styling" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -41,8 +41,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -77,9 +75,7 @@ "core-dev-only", "core-ios-dev-only", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/framework/use-tokens/package.json b/packages/framework/use-tokens/package.json index 756cda12c1b..99dd6d73312 100644 --- a/packages/framework/use-tokens/package.json +++ b/packages/framework/use-tokens/package.json @@ -3,13 +3,16 @@ "version": "0.7.3", "description": "Utilities and hook function for getting themed tokens for a component", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native", "directory": "packages/framework/use-tokens" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -40,8 +40,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -76,9 +74,7 @@ "core-dev-only", "core-ios-dev-only", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/libraries/core/package.json b/packages/libraries/core/package.json index 8d8d3829966..f635bc52025 100644 --- a/packages/libraries/core/package.json +++ b/packages/libraries/core/package.json @@ -54,7 +54,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -103,8 +102,7 @@ "core-macos", "core-windows", "react", - "svg", - "tools-core" + "svg" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/theming/android-theme/package.json b/packages/theming/android-theme/package.json index 76d95819901..02fb06b737d 100644 --- a/packages/theming/android-theme/package.json +++ b/packages/theming/android-theme/package.json @@ -3,13 +3,16 @@ "version": "0.26.3", "description": "A FluentUI React Native theme that pulls constants from FluentUI Android", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/theming/android-theme" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -44,8 +44,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -94,9 +92,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core", - "tools-jest" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/theming/apple-theme/package.json b/packages/theming/apple-theme/package.json index 9f087c51fa3..21621c4b8b4 100644 --- a/packages/theming/apple-theme/package.json +++ b/packages/theming/apple-theme/package.json @@ -3,13 +3,16 @@ "version": "0.29.3", "description": "A FluentUI React Native theme that pulls constants from FluentUI Apple", "homepage": "https://github.com/microsoft/fluentui-react-native", + "license": "MIT", + "author": "Microsoft ", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/theming/apple-theme" }, - "license": "MIT", - "author": "Microsoft ", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -49,8 +49,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -99,9 +97,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core", - "tools-jest" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/theming/default-theme/package.json b/packages/theming/default-theme/package.json index e3b26a92b68..546384694b9 100644 --- a/packages/theming/default-theme/package.json +++ b/packages/theming/default-theme/package.json @@ -3,13 +3,16 @@ "version": "0.27.3", "description": "Typing only package for fluentui-react-native theme types", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/theming/default-theme" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -45,8 +45,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", @@ -96,9 +94,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core", - "tools-jest" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/theming/theme-tokens/package.json b/packages/theming/theme-tokens/package.json index 63518c48464..ddb8b40e287 100644 --- a/packages/theming/theme-tokens/package.json +++ b/packages/theming/theme-tokens/package.json @@ -45,7 +45,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -73,8 +72,7 @@ "core", "core-android", "core-ios", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/theming/theme-types/package.json b/packages/theming/theme-types/package.json index d0402c09019..bb51b79183a 100644 --- a/packages/theming/theme-types/package.json +++ b/packages/theming/theme-types/package.json @@ -37,7 +37,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -65,8 +64,7 @@ "core", "core-android", "core-ios", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/theming/theming-utils/package.json b/packages/theming/theming-utils/package.json index 5f3c4873fa1..9528a518324 100644 --- a/packages/theming/theming-utils/package.json +++ b/packages/theming/theming-utils/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/theming-utils", "version": "0.27.3", "description": "Utils for dealing with theming", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/theming/theming-utils" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -38,10 +38,8 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/design-tokens-win32": "^0.53.0", "@fluentui-react-native/design-tokens-windows": "^0.53.0", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -90,9 +88,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core", - "tools-jest" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/theming/win32-theme/package.json b/packages/theming/win32-theme/package.json index 3d6ecb66858..6eaa7046544 100644 --- a/packages/theming/win32-theme/package.json +++ b/packages/theming/win32-theme/package.json @@ -3,13 +3,16 @@ "version": "0.39.3", "description": "Win32 office theme that works with the theming native module", "keywords": [], + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/theming/win32-theme" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -46,8 +46,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.74.0", @@ -97,9 +95,7 @@ "core-ios", "core-macos", "core-windows", - "react", - "tools-core", - "tools-jest" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/utils/adapters/package.json b/packages/utils/adapters/package.json index 1b14115c7b2..a4f17096082 100644 --- a/packages/utils/adapters/package.json +++ b/packages/utils/adapters/package.json @@ -35,7 +35,6 @@ "devDependencies": { "@babel/core": "catalog:", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/react-configs": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@office-iss/react-native-win32": "^0.81.0", "@react-native-community/cli": "^20.0.0", @@ -79,8 +78,7 @@ "core-ios", "core-macos", "core-win32", - "core-windows", - "tools-core" + "core-windows" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/utils/interactive-hooks/package.json b/packages/utils/interactive-hooks/package.json index b0da0b9b70b..6a8faa320e7 100644 --- a/packages/utils/interactive-hooks/package.json +++ b/packages/utils/interactive-hooks/package.json @@ -2,13 +2,16 @@ "name": "@fluentui-react-native/interactive-hooks", "version": "0.28.3", "description": "Hooks for adding focus, hover, and press semantics to view based components", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/utils/interactive-hooks" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -17,9 +20,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -38,8 +38,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", @@ -95,9 +93,7 @@ "core-macos", "core-windows", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/utils/styling/package.json b/packages/utils/styling/package.json index 4ade2710ff5..afb9a07ab8f 100644 --- a/packages/utils/styling/package.json +++ b/packages/utils/styling/package.json @@ -34,7 +34,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -62,8 +61,7 @@ "core", "core-android", "core-ios", - "react", - "tools-core" + "react" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/packages/utils/test-tools/package.json b/packages/utils/test-tools/package.json index f7c6282f2fc..40a75e1c07b 100644 --- a/packages/utils/test-tools/package.json +++ b/packages/utils/test-tools/package.json @@ -3,13 +3,16 @@ "version": "0.1.0", "private": true, "description": "Tools and mocks for testing components using jest", + "license": "MIT", + "author": "", "repository": { "type": "git", "url": "https://github.com/microsoft/fluentui-react-native.git", "directory": "packages/utils/test-tools" }, - "license": "MIT", - "author": "", + "main": "lib-commonjs/index.js", + "module": "lib/index.js", + "types": "lib/index.d.ts", "exports": { ".": { "types": "./lib/index.d.ts", @@ -18,9 +21,6 @@ "default": "./src/index.ts" } }, - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", "scripts": { "build": "fluentui-scripts build", "build-cjs": "tsgo --outDir lib-commonjs", @@ -34,8 +34,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/theme-types": "workspace:*", @@ -67,9 +65,7 @@ "capabilities": [ "core", "react", - "react-test-renderer", - "tools-core", - "tools-jest" + "react-test-renderer" ] } } diff --git a/packages/utils/tokens/package.json b/packages/utils/tokens/package.json index ffff37b8204..fad2c59d90a 100644 --- a/packages/utils/tokens/package.json +++ b/packages/utils/tokens/package.json @@ -38,7 +38,6 @@ }, "devDependencies": { "@babel/core": "catalog:", - "@fluentui-react-native/babel-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@react-native-community/cli": "^20.0.0", @@ -81,8 +80,7 @@ "core-android", "core-ios", "core-macos", - "core-windows", - "tools-core" + "core-windows" ] }, "extends": "@fluentui-react-native/kit-config" diff --git a/scripts/src/tasks/lintPackage.ts b/scripts/src/tasks/lintPackage.ts index 414b2c39320..36880e06c07 100644 --- a/scripts/src/tasks/lintPackage.ts +++ b/scripts/src/tasks/lintPackage.ts @@ -31,24 +31,18 @@ export class LintPackageCommand extends Command { private changed = false; private issues = 0; private isScripts = false; - private isLibrary = false; private projRoot: ProjectRoot = getProjectRoot(process.cwd()); private result = 0; - private removedDevDeps: string[] = [ - '@fluentui-react-native/babel-config', - '@fluentui-react-native/jest-config', - '@fluentui-react-native/react-configs', - ]; + private removedDevDeps: string[] = []; private addedDevDeps: Record = {}; private ensuredCapabilities: string[] = []; - private removedCapabilities: string[] = ['tools-core', 'tools-jest', 'tools-jest-react', 'tools-babel', 'tools-react-configs']; + private removedCapabilities: string[] = []; private getCatalog = getCatalog(); async execute() { this.fix = isFixMode(this.fix); const manifest = this.projRoot.manifest; this.isScripts = manifest.name === '@fluentui-react-native/scripts'; - this.isLibrary = !(manifest['rnx-kit']?.kitType === 'app') && manifest.furn?.packageType !== 'tooling'; const runningOps: Promise[] = []; From 6b405443888338189c51d2f57655c8af17d1013c Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Thu, 7 May 2026 16:33:07 -0700 Subject: [PATCH 5/8] remove old config packages --- packages/configs/babel-config/README.md | 3 - packages/configs/babel-config/package.json | 39 ---- packages/configs/jest-config/README.md | 3 - packages/configs/jest-config/package.json | 57 ------ .../configs/jest-config/src/configureJest.js | 92 --------- .../src/configureReactNativeJest.js | 36 ---- packages/configs/jest-config/src/index.js | 5 - packages/configs/jest-config/src/jest-mock.js | 101 ---------- packages/configs/jest-config/src/platforms.js | 59 ------ packages/configs/jest-config/tsconfig.json | 7 - packages/configs/react-configs/README.md | 5 - .../react-configs/babel.react.config.js | 21 --- packages/configs/react-configs/jest.config.js | 65 ------- packages/configs/react-configs/package.json | 38 ---- yarn.lock | 174 ------------------ 15 files changed, 705 deletions(-) delete mode 100644 packages/configs/babel-config/README.md delete mode 100644 packages/configs/babel-config/package.json delete mode 100644 packages/configs/jest-config/README.md delete mode 100644 packages/configs/jest-config/package.json delete mode 100644 packages/configs/jest-config/src/configureJest.js delete mode 100644 packages/configs/jest-config/src/configureReactNativeJest.js delete mode 100644 packages/configs/jest-config/src/index.js delete mode 100644 packages/configs/jest-config/src/jest-mock.js delete mode 100644 packages/configs/jest-config/src/platforms.js delete mode 100644 packages/configs/jest-config/tsconfig.json delete mode 100644 packages/configs/react-configs/README.md delete mode 100644 packages/configs/react-configs/babel.react.config.js delete mode 100644 packages/configs/react-configs/jest.config.js delete mode 100644 packages/configs/react-configs/package.json diff --git a/packages/configs/babel-config/README.md b/packages/configs/babel-config/README.md deleted file mode 100644 index 58af27fc715..00000000000 --- a/packages/configs/babel-config/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@fluentui-react-native/babel-config` - -Common babel configuration for the fluentui-react-native repository. diff --git a/packages/configs/babel-config/package.json b/packages/configs/babel-config/package.json deleted file mode 100644 index 0942d809e38..00000000000 --- a/packages/configs/babel-config/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@fluentui-react-native/babel-config", - "version": "0.1.1", - "private": true, - "description": "Babel configuration for Fluent UI React Native packages built for React Native 0.74", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/microsoft/fluentui-react-native", - "directory": "packages/configs/babel-config" - }, - "main": "./babel.config.js", - "exports": { - ".": "./babel.config.js", - "./babel.config.js": "./babel.config.js" - }, - "dependencies": { - "@babel/plugin-transform-react-jsx": "catalog:", - "@babel/plugin-transform-react-jsx-source": "catalog:", - "@babel/plugin-transform-typescript": "catalog:", - "@babel/preset-env": "catalog:", - "@babel/preset-react": "catalog:", - "@babel/preset-typescript": "catalog:" - }, - "devDependencies": { - "@babel/core": "catalog:", - "@babel/runtime": "catalog:", - "@react-native/babel-preset": "catalog:0.81", - "@rnx-kit/babel-preset-metro-react-native": "catalog:" - }, - "peerDependencies": { - "@babel/core": "*", - "@react-native/babel-preset": "*", - "@rnx-kit/babel-preset-metro-react-native": "*" - }, - "furn": { - "packageType": "tooling" - } -} diff --git a/packages/configs/jest-config/README.md b/packages/configs/jest-config/README.md deleted file mode 100644 index 58af27fc715..00000000000 --- a/packages/configs/jest-config/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# `@fluentui-react-native/babel-config` - -Common babel configuration for the fluentui-react-native repository. diff --git a/packages/configs/jest-config/package.json b/packages/configs/jest-config/package.json deleted file mode 100644 index f8260e0a66d..00000000000 --- a/packages/configs/jest-config/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "@fluentui-react-native/jest-config", - "version": "0.1.0", - "private": true, - "description": "Jest configuration for UI Fabric React Native", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/microsoft/fluentui-react-native", - "directory": "packages/framework/jest-config" - }, - "type": "module", - "main": "./src/index.js", - "module": "./src/index.js", - "exports": { - ".": { - "import": "./src/index.js", - "require": "./src/index.js", - "default": "./src/index.js" - }, - "./package.json": "./package.json" - }, - "scripts": { - "build": "tsgo", - "build-core": "tsgo", - "depcheck": "fluentui-scripts depcheck", - "lint": "fluentui-scripts lint", - "lint-package": "fluentui-scripts lint-package" - }, - "dependencies": { - "@rnx-kit/jest-preset": "catalog:" - }, - "devDependencies": { - "@babel/core": "catalog:", - "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/scripts": "workspace:*", - "@react-native/babel-preset": "^0.81.0", - "@types/node": "catalog:", - "babel-jest": "^29.0.0", - "jest": "^29.2.1", - "jest-transform-stub": "^2.0.0", - "typescript": "^5.8.0" - }, - "furn": { - "packageType": "tooling" - }, - "rnx-kit": { - "extends": "@fluentui-react-native/kit-config", - "kitType": "library", - "alignDeps": { - "capabilities": [ - "tools-babel", - "tools-core" - ] - } - } -} diff --git a/packages/configs/jest-config/src/configureJest.js b/packages/configs/jest-config/src/configureJest.js deleted file mode 100644 index 2c3a7bd9973..00000000000 --- a/packages/configs/jest-config/src/configureJest.js +++ /dev/null @@ -1,92 +0,0 @@ -// @ts-check - -/** - * @typedef {import('jest').Config} JestConfig - */ - -/** - * Jest configuration for pure React packages (non-React Native). - * Uses babel-jest for TypeScript transpilation with the babel configuration - * from @fluentui-react-native/babel-config/babel.react.config.js - * - * @param {JestConfig} [customConfig] - Optional custom configuration to merge - * @returns {JestConfig} - The Jest configuration object - */ -export function configureJest(customConfig) { - /** @type {JestConfig} */ - const baseConfig = { - // File patterns - roots: ['/src'], - testMatch: ['**/__tests__/**/*.(ts|tsx|js|jsx)', '**/*.(test|spec).(ts|tsx|js|jsx)'], - - // Module file extensions - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], - - // Module name mapping for non-JS assets - moduleNameMapper: { - // Handle static assets - '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': 'jest-transform-stub', - }, - - // Transform configuration using babel-jest - transform: { - '^.+\\.(ts|tsx|js|jsx)$': [ - 'babel-jest', - { - configFile: '@fluentui-react-native/babel-config/babel.react.config.js', - }, - ], - }, - - // Files to ignore during transformation - // Allow ES modules in node_modules to be transformed - transformIgnorePatterns: ['node_modules/(?!(.*\\.mjs$))'], - - // Setup files (optional - packages can override this) - setupFilesAfterEnv: [], - - // Coverage configuration - collectCoverageFrom: [ - 'src/**/*.{ts,tsx,js,jsx}', - '!src/**/*.d.ts', - '!src/**/*.stories.{ts,tsx,js,jsx}', - '!src/**/index.{ts,tsx,js,jsx}', - '!src/setupTests.{ts,js}', - ], - - // Coverage thresholds (can be overridden) - coverageThreshold: undefined, - - // Output configuration - verbose: false, - silent: false, - - // Clear mocks between tests - clearMocks: true, - - // Restore mocks after each test - restoreMocks: true, - - // Handle ES modules properly with Yarn v4 PnP - extensionsToTreatAsEsm: ['.ts', '.tsx'], - - // Module resolution for Yarn v4 PnP - resolver: undefined, - - // Error handling - errorOnDeprecated: false, - - // Test timeout - testTimeout: 10000, - }; - - return { - ...baseConfig, - ...customConfig, - }; -} - -/** - * Default export for convenience - */ -export default configureJest; diff --git a/packages/configs/jest-config/src/configureReactNativeJest.js b/packages/configs/jest-config/src/configureReactNativeJest.js deleted file mode 100644 index 0e6102c7673..00000000000 --- a/packages/configs/jest-config/src/configureReactNativeJest.js +++ /dev/null @@ -1,36 +0,0 @@ -// @ts-check - -// @ts-expect-error no types available for jest-preset -import jestPreset from '@rnx-kit/jest-preset'; -import { ensurePlatform } from './platforms.js'; -import { isPnpmMode } from '@fluentui-react-native/scripts'; - -/** - * @typedef {import('jest').Config} JestConfig - */ - -/** - * - * @param {import('./platforms.js').PlatformValue} [platform] - * @param {JestConfig} [customConfig] - * @returns {JestConfig} - */ -export function configureReactNativeJest(platform, customConfig) { - const config = jestPreset(ensurePlatform(platform, 'ios'), { - roots: ['/src'], - verbose: false, - // React 19 requires this global to be set for act() to work properly - globals: { - IS_REACT_ACT_ENVIRONMENT: true, - }, - ...customConfig, - }); - if (isPnpmMode()) { - // In pnpm mode, we need to ensure that the transformIgnorePatterns - // are set correctly to avoid issues with hoisted packages. - config.transformIgnorePatterns = [ - '/node_modules/.store/(?!((jest-)?react-native(-macos)?|@react-native(-community)?|@office-iss-react-native-win32|@?react-native-windows))', - ]; - } - return config; -} diff --git a/packages/configs/jest-config/src/index.js b/packages/configs/jest-config/src/index.js deleted file mode 100644 index 379012529d2..00000000000 --- a/packages/configs/jest-config/src/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// Export React Native Jest configurations -export { configureReactNativeJest } from './configureReactNativeJest.js'; - -// Export pure React Jest configuration -export { configureJest } from './configureJest.js'; diff --git a/packages/configs/jest-config/src/jest-mock.js b/packages/configs/jest-config/src/jest-mock.js deleted file mode 100644 index 26741d20f73..00000000000 --- a/packages/configs/jest-config/src/jest-mock.js +++ /dev/null @@ -1,101 +0,0 @@ -export const KeyCodes = { - backspace: 8, - tab: 9, - enter: 13, - shift: 16, - ctrl: 17, - alt: 18, - pauseBreak: 19, - capslock: 20, - escape: 27, - space: 32, - pageUp: 33, - pageDown: 34, - end: 35, - home: 36, - left: 37, - up: 38, - right: 39, - down: 40, - insert: 45, - del: 46, - zero: 48, - one: 49, - two: 50, - three: 51, - four: 52, - five: 53, - six: 54, - seven: 55, - eight: 56, - nine: 57, - a: 65, - b: 66, - c: 67, - d: 68, - e: 69, - f: 70, - g: 71, - h: 72, - i: 73, - j: 74, - k: 75, - l: 76, - m: 77, - n: 78, - o: 79, - p: 80, - q: 81, - r: 82, - s: 83, - t: 84, - u: 85, - v: 86, - w: 87, - x: 88, - y: 89, - z: 90, - leftWindow: 91, - rightWindow: 92, - select: 93, - zero_numpad: 96, - one_numpad: 97, - two_numpad: 98, - three_numpad: 99, - four_numpad: 100, - five_numpad: 101, - six_numpad: 102, - seven_numpad: 103, - eight_numpad: 104, - nine_numpad: 105, - multiply: 106, - add: 107, - subtract: 109, - decimalPoint: 110, - divide: 111, - f1: 112, - f2: 113, - f3: 114, - f4: 115, - f5: 116, - f6: 117, - f7: 118, - f8: 119, - f9: 120, - f10: 121, - f11: 122, - f12: 123, - numlock: 144, - scrollLock: 145, - semicolon: 186, - equalSign: 187, - comma: 188, - dash: 189, - period: 190, - forwardSlash: 191, - graveAccent: 192, - openBracket: 219, - backSlash: 220, - closeBracket: 221, - singleQuote: 222, -}; diff --git a/packages/configs/jest-config/src/platforms.js b/packages/configs/jest-config/src/platforms.js deleted file mode 100644 index dd8f33856d1..00000000000 --- a/packages/configs/jest-config/src/platforms.js +++ /dev/null @@ -1,59 +0,0 @@ -// @ts-check - -/** - * @typedef {'win32' | 'ios' | 'android' | 'windows' | 'macos' } AllPlatforms - * @typedef {'default' | AllPlatforms} PlatformValue - * @typedef {Record} RnVersions - */ - -const _defaultPlatform = 'default'; -const _defaultVersion = 'react-native'; - -/** @type {Record} */ -const _rnVersions = { - default: _defaultVersion, - android: _defaultVersion, - ios: _defaultVersion, - macos: 'react-native-macos', - win32: '@office-iss/react-native-win32', - windows: 'react-native-windows', -}; - -/** - * Find the platform from the command line arguments. - * @param {PlatformValue} [toSet] - Optional platform value to override the args. - * @returns {PlatformValue | undefined} - The found platform or undefined. - */ -export function findPlatformFromArgv(toSet) { - const platformValueIndex = process.argv.indexOf('--platform') + 1; - if (platformValueIndex > 0 && platformValueIndex < process.argv.length) { - if (toSet) { - process.argv[platformValueIndex] = toSet; - } - const platformArg = process.argv[platformValueIndex]; - if (platformArg && Object.prototype.hasOwnProperty.call(_rnVersions, platformArg)) { - const typedValue = /** @type {PlatformValue} */ (platformArg); - return typedValue; - } - } - return undefined; -} - -export function findPlatform() { - return findPlatformFromArgv() || _defaultPlatform; -} - -/** - * Ensure the platform is set from the command line arguments or defaults. - * @param {PlatformValue} [platform] - * @param {PlatformValue} [defaultOverride] - * @returns {PlatformValue} - */ -export function ensurePlatform(platform, defaultOverride) { - const found = findPlatformFromArgv(platform); - platform = found || platform; - if (platform && !found) { - process.argv.push('--platform', platform); - } - return platform || defaultOverride || _defaultPlatform; -} diff --git a/packages/configs/jest-config/tsconfig.json b/packages/configs/jest-config/tsconfig.json deleted file mode 100644 index eae9bb1e073..00000000000 --- a/packages/configs/jest-config/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@fluentui-react-native/scripts/tsconfig-strict", - "compilerOptions": { - "noEmit": true - }, - "include": ["src"] -} diff --git a/packages/configs/react-configs/README.md b/packages/configs/react-configs/README.md deleted file mode 100644 index 9e9676685e0..00000000000 --- a/packages/configs/react-configs/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# `@fluentui-react-native/react-configs` - -Common babel and jest configuration for pure react package in the fluentui-react-native repository. - -This is a separate package to avoid the peer requirements from the react-native versions. diff --git a/packages/configs/react-configs/babel.react.config.js b/packages/configs/react-configs/babel.react.config.js deleted file mode 100644 index 6dcf6634a9a..00000000000 --- a/packages/configs/react-configs/babel.react.config.js +++ /dev/null @@ -1,21 +0,0 @@ -module.exports = { - presets: [ - [ - '@babel/preset-env', - { - modules: 'auto', - targets: { node: 'current' }, - }, - ], - ['@babel/preset-react', { runtime: 'automatic' }], - ['@babel/preset-typescript', { allowSyntheticDefaultImports: true }], - ], - overrides: [ - { - plugins: [ - [require('@babel/plugin-transform-react-jsx'), { runtime: 'automatic' }], - [require('@babel/plugin-transform-react-jsx-source')], - ], - }, - ], -}; diff --git a/packages/configs/react-configs/jest.config.js b/packages/configs/react-configs/jest.config.js deleted file mode 100644 index 6d72ea279bc..00000000000 --- a/packages/configs/react-configs/jest.config.js +++ /dev/null @@ -1,65 +0,0 @@ -module.exports = { - // File patterns - roots: ['/src'], - testMatch: ['**/__tests__/**/*.(ts|tsx|js|jsx)', '**/*.(test|spec).(ts|tsx|js|jsx)'], - - // Module file extensions - moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], - - // Module name mapping for non-JS assets - moduleNameMapper: { - // Handle static assets - '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': 'jest-transform-stub', - }, - - // Transform configuration using babel-jest - transform: { - '^.+\\.(ts|tsx|js|jsx)$': [ - 'babel-jest', - { - configFile: '@fluentui-react-native/react-configs/babel.react.config.js', - }, - ], - }, - - // Files to ignore during transformation - // Allow ES modules in node_modules to be transformed - transformIgnorePatterns: ['node_modules/(?!(.*\\.mjs$))'], - - // Setup files (optional - packages can override this) - setupFilesAfterEnv: [], - - // Coverage configuration - collectCoverageFrom: [ - 'src/**/*.{ts,tsx,js,jsx}', - '!src/**/*.d.ts', - '!src/**/*.stories.{ts,tsx,js,jsx}', - '!src/**/index.{ts,tsx,js,jsx}', - '!src/setupTests.{ts,js}', - ], - - // Coverage thresholds (can be overridden) - coverageThreshold: undefined, - - // Output configuration - verbose: false, - silent: false, - - // Clear mocks between tests - clearMocks: true, - - // Restore mocks after each test - restoreMocks: true, - - // Handle ES modules properly with Yarn v4 PnP - extensionsToTreatAsEsm: ['.ts', '.tsx'], - - // Module resolution for Yarn v4 PnP - resolver: undefined, - - // Error handling - errorOnDeprecated: false, - - // Test timeout - testTimeout: 10000, -}; diff --git a/packages/configs/react-configs/package.json b/packages/configs/react-configs/package.json deleted file mode 100644 index f448f332329..00000000000 --- a/packages/configs/react-configs/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@fluentui-react-native/react-configs", - "version": "0.1.1", - "private": true, - "description": "Babel and Jest configurations for pure React testing", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/microsoft/fluentui-react-native", - "directory": "packages/configs/react-configs" - }, - "main": "./babel.react.config.js", - "exports": { - ".": "./babel.react.config.js", - "./babel.react.config.js": "./babel.react.config.js", - "./jest.config.js": "./jest.config.js" - }, - "dependencies": { - "@babel/core": "catalog:", - "@babel/plugin-transform-react-jsx": "catalog:", - "@babel/plugin-transform-react-jsx-source": "catalog:", - "@babel/plugin-transform-typescript": "catalog:", - "@babel/preset-env": "catalog:", - "@babel/preset-react": "catalog:", - "@babel/preset-typescript": "catalog:", - "@babel/runtime": "catalog:", - "babel-jest": "^29.0.0" - }, - "devDependencies": { - "@babel/core": "catalog:" - }, - "peerDependencies": { - "@babel/core": "*" - }, - "furn": { - "packageType": "tooling" - } -} diff --git a/yarn.lock b/yarn.lock index 8c035223a63..920ddbbbaf5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2640,7 +2640,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@office-iss/react-native-win32": "npm:^0.81.0" "@react-native-community/cli": "npm:^20.0.0" @@ -2676,9 +2675,7 @@ __metadata: resolution: "@fluentui-react-native/android-theme@workspace:packages/theming/android-theme" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme": "workspace:*" @@ -2719,13 +2716,11 @@ __metadata: resolution: "@fluentui-react-native/apple-theme@workspace:packages/theming/apple-theme" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/default-theme": "workspace:*" "@fluentui-react-native/design-tokens-ios": "npm:^0.53.0" "@fluentui-react-native/design-tokens-macos": "npm:^0.53.0" "@fluentui-react-native/experimental-appearance-additions": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme": "workspace:*" @@ -2768,12 +2763,10 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/badge": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/icon": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" @@ -2815,39 +2808,16 @@ __metadata: languageName: unknown linkType: soft -"@fluentui-react-native/babel-config@workspace:*, @fluentui-react-native/babel-config@workspace:packages/configs/babel-config": - version: 0.0.0-use.local - resolution: "@fluentui-react-native/babel-config@workspace:packages/configs/babel-config" - dependencies: - "@babel/core": "catalog:" - "@babel/plugin-transform-react-jsx": "catalog:" - "@babel/plugin-transform-react-jsx-source": "catalog:" - "@babel/plugin-transform-typescript": "catalog:" - "@babel/preset-env": "catalog:" - "@babel/preset-react": "catalog:" - "@babel/preset-typescript": "catalog:" - "@babel/runtime": "catalog:" - "@react-native/babel-preset": "catalog:0.81" - "@rnx-kit/babel-preset-metro-react-native": "catalog:" - peerDependencies: - "@babel/core": "*" - "@react-native/babel-preset": "*" - "@rnx-kit/babel-preset-metro-react-native": "*" - languageName: unknown - linkType: soft - "@fluentui-react-native/badge@workspace:*, @fluentui-react-native/badge@workspace:packages/components/Badge": version: 0.0.0-use.local resolution: "@fluentui-react-native/badge@workspace:packages/components/Badge" dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/experimental-shadow": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/icon": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -2897,14 +2867,12 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/experimental-activity-indicator": "workspace:*" "@fluentui-react-native/experimental-shadow": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/icon": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" @@ -2959,8 +2927,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" @@ -3005,11 +2971,9 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" @@ -3063,12 +3027,10 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/icon": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -3117,7 +3079,6 @@ __metadata: "@babel/core": "catalog:" "@babel/preset-env": "catalog:" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@types/jscodeshift": "npm:^0.11.11" @@ -3134,9 +3095,7 @@ __metadata: resolution: "@fluentui-react-native/composition@workspace:packages/framework/composition" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/use-slots": "workspace:*" @@ -3162,13 +3121,11 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/callout": "workspace:*" "@fluentui-react-native/focus-zone": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/icon": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" @@ -3219,9 +3176,7 @@ __metadata: resolution: "@fluentui-react-native/default-theme@workspace:packages/theming/default-theme" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme": "workspace:*" @@ -3529,11 +3484,9 @@ __metadata: resolution: "@fluentui-react-native/divider@workspace:packages/components/Divider" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/icon": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -3579,11 +3532,9 @@ __metadata: resolution: "@fluentui-react-native/drawer@workspace:packages/experimental/Drawer" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" @@ -3625,7 +3576,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/button": "workspace:*" "@fluentui-react-native/callout": "workspace:*" "@fluentui-react-native/framework": "workspace:*" @@ -3772,7 +3722,6 @@ __metadata: resolution: "@fluentui-react-native/experimental-appearance-additions@workspace:packages/experimental/AppearanceAdditions" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" @@ -3811,7 +3760,6 @@ __metadata: resolution: "@fluentui-react-native/experimental-avatar@workspace:packages/experimental/Avatar" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" @@ -3851,7 +3799,6 @@ __metadata: resolution: "@fluentui-react-native/experimental-checkbox@workspace:packages/experimental/Checkbox" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/checkbox": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" @@ -3894,7 +3841,6 @@ __metadata: resolution: "@fluentui-react-native/experimental-expander@workspace:packages/experimental/Expander" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" @@ -3932,12 +3878,10 @@ __metadata: resolution: "@fluentui-react-native/experimental-menu-button@workspace:packages/experimental/MenuButton" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/button": "workspace:*" "@fluentui-react-native/contextual-menu": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" @@ -3980,7 +3924,6 @@ __metadata: resolution: "@fluentui-react-native/experimental-native-date-picker@workspace:packages/experimental/NativeDatePicker" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" @@ -4005,7 +3948,6 @@ __metadata: resolution: "@fluentui-react-native/experimental-native-font-metrics@workspace:packages/experimental/NativeFontMetrics" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" @@ -4032,10 +3974,8 @@ __metadata: resolution: "@fluentui-react-native/experimental-shadow@workspace:packages/experimental/Shadow" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" @@ -4077,10 +4017,8 @@ __metadata: resolution: "@fluentui-react-native/experimental-shimmer@workspace:packages/experimental/Shimmer" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theming-utils": "workspace:*" @@ -4126,9 +4064,7 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@office-iss/react-native-win32": "npm:^0.74.0" @@ -4171,9 +4107,7 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@office-iss/react-native-win32": "npm:^0.74.0" @@ -4217,7 +4151,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@types/jest": "npm:^29.0.0" "@types/node": "catalog:" @@ -4238,11 +4171,9 @@ __metadata: resolution: "@fluentui-react-native/framework@workspace:packages/framework/framework" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/composition": "workspace:*" "@fluentui-react-native/default-theme": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" @@ -4289,10 +4220,8 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -4336,12 +4265,10 @@ __metadata: resolution: "@fluentui-react-native/input@workspace:packages/components/Input" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/icon": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/styling-utils": "workspace:*" @@ -4389,9 +4316,7 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -4429,24 +4354,6 @@ __metadata: languageName: unknown linkType: soft -"@fluentui-react-native/jest-config@workspace:*, @fluentui-react-native/jest-config@workspace:packages/configs/jest-config": - version: 0.0.0-use.local - resolution: "@fluentui-react-native/jest-config@workspace:packages/configs/jest-config" - dependencies: - "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" - "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/scripts": "workspace:*" - "@react-native/babel-preset": "npm:^0.81.0" - "@rnx-kit/jest-preset": "catalog:" - "@types/node": "catalog:" - babel-jest: "npm:^29.0.0" - jest: "npm:^29.2.1" - jest-transform-stub: "npm:^2.0.0" - typescript: "npm:^5.8.0" - languageName: unknown - linkType: soft - "@fluentui-react-native/kit-config@workspace:*, @fluentui-react-native/kit-config@workspace:packages/configs/kit-config": version: 0.0.0-use.local resolution: "@fluentui-react-native/kit-config@workspace:packages/configs/kit-config" @@ -4464,11 +4371,9 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -4514,12 +4419,10 @@ __metadata: resolution: "@fluentui-react-native/menu-button@workspace:packages/components/MenuButton" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/button": "workspace:*" "@fluentui-react-native/contextual-menu": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/icon": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" @@ -4566,7 +4469,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/button": "workspace:*" "@fluentui-react-native/callout": "workspace:*" "@fluentui-react-native/focus-zone": "workspace:*" @@ -4574,7 +4476,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/icon": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -4624,7 +4525,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/button": "workspace:*" "@fluentui-react-native/experimental-appearance-additions": "workspace:*" "@fluentui-react-native/experimental-shadow": "workspace:*" @@ -4632,7 +4532,6 @@ __metadata: "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/icon": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" @@ -4681,11 +4580,9 @@ __metadata: resolution: "@fluentui-react-native/overflow@workspace:packages/experimental/Overflow" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/button": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/menu": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" @@ -4726,7 +4623,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" @@ -4772,7 +4668,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" @@ -4817,7 +4712,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" @@ -4856,7 +4750,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" @@ -4896,12 +4789,10 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/focus-zone": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/pressable": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" @@ -4947,24 +4838,6 @@ __metadata: languageName: unknown linkType: soft -"@fluentui-react-native/react-configs@workspace:*, @fluentui-react-native/react-configs@workspace:packages/configs/react-configs": - version: 0.0.0-use.local - resolution: "@fluentui-react-native/react-configs@workspace:packages/configs/react-configs" - dependencies: - "@babel/core": "catalog:" - "@babel/plugin-transform-react-jsx": "catalog:" - "@babel/plugin-transform-react-jsx-source": "catalog:" - "@babel/plugin-transform-typescript": "catalog:" - "@babel/preset-env": "catalog:" - "@babel/preset-react": "catalog:" - "@babel/preset-typescript": "catalog:" - "@babel/runtime": "catalog:" - babel-jest: "npm:^29.0.0" - peerDependencies: - "@babel/core": "*" - languageName: unknown - linkType: soft - "@fluentui-react-native/root@workspace:.": version: 0.0.0-use.local resolution: "@fluentui-react-native/root@workspace:." @@ -5048,10 +4921,8 @@ __metadata: resolution: "@fluentui-react-native/separator@workspace:packages/components/Separator" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-tokens": "workspace:*" @@ -5093,7 +4964,6 @@ __metadata: resolution: "@fluentui-react-native/spinner@workspace:packages/experimental/Spinner" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" @@ -5138,10 +5008,8 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/text": "workspace:*" @@ -5186,7 +5054,6 @@ __metadata: resolution: "@fluentui-react-native/styling-utils@workspace:packages/utils/styling" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" @@ -5211,11 +5078,9 @@ __metadata: resolution: "@fluentui-react-native/switch@workspace:packages/components/Switch" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -5261,13 +5126,11 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/focus-zone": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/icon": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -5314,8 +5177,6 @@ __metadata: resolution: "@fluentui-react-native/test-tools@workspace:packages/utils/test-tools" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" @@ -5346,7 +5207,6 @@ __metadata: "@fluentui-react-native/android-theme": "workspace:*" "@fluentui-react-native/apple-theme": "workspace:*" "@fluentui-react-native/avatar": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/badge": "workspace:*" "@fluentui-react-native/button": "workspace:*" "@fluentui-react-native/callout": "workspace:*" @@ -5497,7 +5357,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@babel/runtime": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tester-core": "workspace:*" @@ -5539,7 +5398,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@babel/runtime": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tester-core": "workspace:*" @@ -5576,7 +5434,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@babel/runtime": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/callout": "workspace:*" "@fluentui-react-native/experimental-appearance-additions": "workspace:*" "@fluentui-react-native/experimental-avatar": "workspace:*" @@ -5638,11 +5495,9 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/interactive-hooks": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -5685,7 +5540,6 @@ __metadata: resolution: "@fluentui-react-native/theme-tokens@workspace:packages/theming/theme-tokens" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/design-tokens-android": "npm:^0.53.0" "@fluentui-react-native/design-tokens-ios": "npm:^0.53.0" "@fluentui-react-native/design-tokens-win32": "npm:^0.53.0" @@ -5716,7 +5570,6 @@ __metadata: resolution: "@fluentui-react-native/theme-types@workspace:packages/theming/theme-types" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" @@ -5741,9 +5594,7 @@ __metadata: resolution: "@fluentui-react-native/theme@workspace:packages/framework/theme" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -5771,9 +5622,7 @@ __metadata: resolution: "@fluentui-react-native/themed-stylesheet@workspace:packages/framework/themed-stylesheet" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" @@ -5799,10 +5648,8 @@ __metadata: resolution: "@fluentui-react-native/theming-utils@workspace:packages/theming/theming-utils" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/design-tokens-win32": "npm:^0.53.0" "@fluentui-react-native/design-tokens-windows": "npm:^0.53.0" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" @@ -5842,7 +5689,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" @@ -5879,11 +5725,9 @@ __metadata: resolution: "@fluentui-react-native/tooltip@workspace:packages/experimental/Tooltip" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/button": "workspace:*" "@fluentui-react-native/callout": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" @@ -5922,9 +5766,7 @@ __metadata: resolution: "@fluentui-react-native/use-slot@workspace:packages/framework/use-slot" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" @@ -5952,9 +5794,7 @@ __metadata: resolution: "@fluentui-react-native/use-slots@workspace:packages/framework/use-slots" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/use-slot": "workspace:*" @@ -5982,9 +5822,7 @@ __metadata: resolution: "@fluentui-react-native/use-styling@workspace:packages/framework/use-styling" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/use-tokens": "workspace:*" @@ -6013,9 +5851,7 @@ __metadata: resolution: "@fluentui-react-native/use-tokens@workspace:packages/framework/use-tokens" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native-community/cli": "npm:^20.0.0" @@ -6044,7 +5880,6 @@ __metadata: dependencies: "@babel/core": "catalog:" "@fluentui-react-native/adapters": "workspace:*" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@office-iss/react-native-win32": "npm:^0.81.0" @@ -6081,11 +5916,9 @@ __metadata: resolution: "@fluentui-react-native/win32-theme@workspace:packages/theming/win32-theme" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/default-theme": "workspace:*" "@fluentui-react-native/design-tokens-win32": "npm:^0.53.0" "@fluentui-react-native/framework-base": "workspace:*" - "@fluentui-react-native/jest-config": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/theme": "workspace:*" @@ -6140,7 +5973,6 @@ __metadata: resolution: "@fluentui/react-native@workspace:packages/libraries/core" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/button": "workspace:*" "@fluentui-react-native/callout": "workspace:*" "@fluentui-react-native/checkbox": "workspace:*" @@ -10928,7 +10760,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@types/jest": "npm:^29.0.0" "@types/react": "npm:~19.1.4" @@ -10950,7 +10781,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/tokens": "workspace:*" "@office-iss/react-native-win32": "npm:^0.81.0" @@ -10993,7 +10823,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native/babel-preset": "npm:^0.74.0" "@react-native/metro-config": "npm:^0.74.0" @@ -11017,7 +10846,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@react-native/babel-preset": "npm:^0.81.0" "@types/jest": "npm:^29.0.0" @@ -11042,7 +10870,6 @@ __metadata: "@babel/core": "catalog:" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" - "@fluentui-react-native/react-configs": "workspace:*" "@fluentui-react-native/scripts": "workspace:*" "@fluentui-react-native/test-tools": "workspace:*" "@fluentui-react-native/theme-types": "workspace:*" @@ -11066,7 +10893,6 @@ __metadata: resolution: "@uifabricshared/theming-react-native@workspace:packages/deprecated/theming-react-native" dependencies: "@babel/core": "catalog:" - "@fluentui-react-native/babel-config": "workspace:*" "@fluentui-react-native/default-theme": "workspace:*" "@fluentui-react-native/framework-base": "workspace:*" "@fluentui-react-native/kit-config": "workspace:*" From 117a7c110db3712925effdc53238d5afd3bdcc71 Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Thu, 7 May 2026 16:36:52 -0700 Subject: [PATCH 6/8] add changeset --- .changeset/lovely-beans-warn.md | 77 +++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 .changeset/lovely-beans-warn.md diff --git a/.changeset/lovely-beans-warn.md b/.changeset/lovely-beans-warn.md new file mode 100644 index 00000000000..f17fa4421c3 --- /dev/null +++ b/.changeset/lovely-beans-warn.md @@ -0,0 +1,77 @@ +--- +"@uifabricshared/foundation-composable": patch +"@fluentui-react-native/experimental-appearance-additions": patch +"@uifabricshared/theming-react-native": patch +"@uifabricshared/foundation-settings": patch +"@fluentui-react-native/experimental-activity-indicator": patch +"@fluentui-react-native/experimental-native-font-metrics": patch +"@uifabricshared/foundation-compose": patch +"@fluentui-react-native/experimental-native-date-picker": patch +"@uifabricshared/foundation-tokens": patch +"@fluentui-react-native/themed-stylesheet": patch +"@uifabricshared/themed-settings": patch +"@fluentui-react-native/contextual-menu": patch +"@uifabricshared/theme-registry": patch +"@fluentui-react-native/vibrancy-view": patch +"@fluentui-react-native/focus-trap-zone": patch +"@fluentui-react-native/notification": patch +"@uifabricshared/theming-ramp": patch +"@fluentui-react-native/experimental-menu-button": patch +"@fluentui-react-native/interactive-hooks": patch +"@fluentui-react-native/persona-coin": patch +"@fluentui-react-native/menu-button": patch +"@fluentui-react-native/radio-group": patch +"@fluentui-react-native/experimental-checkbox": patch +"@fluentui-react-native/dropdown": patch +"@fluentui-react-native/experimental-expander": patch +"@fluentui-react-native/overflow": patch +"@fluentui-react-native/composition": patch +"@fluentui-react-native/use-styling": patch +"@fluentui-react-native/android-theme": patch +"@fluentui-react-native/default-theme": patch +"@fluentui-react-native/theming-utils": patch +"@fluentui-react-native/focus-zone": patch +"@fluentui-react-native/pressable": patch +"@fluentui-react-native/separator": patch +"@fluentui-react-native/popover": patch +"@fluentui-react-native/experimental-shimmer": patch +"@fluentui-react-native/spinner": patch +"@fluentui-react-native/tooltip": patch +"@fluentui-react-native/use-tokens": patch +"@fluentui-react-native/theme-tokens": patch +"@fluentui-react-native/checkbox": patch +"@fluentui-react-native/experimental-avatar": patch +"@fluentui-react-native/drawer": patch +"@fluentui-react-native/experimental-shadow": patch +"@fluentui-react-native/framework": patch +"@fluentui-react-native/use-slots": patch +"@fluentui-react-native/apple-theme": patch +"@fluentui-react-native/theme-types": patch +"@fluentui-react-native/win32-theme": patch +"@fluentui-react-native/callout": patch +"@fluentui-react-native/divider": patch +"@fluentui-react-native/persona": patch +"@fluentui-react-native/tablist": patch +"@fluentui-react-native/use-slot": patch +"@fluentui-react-native/avatar": patch +"@fluentui-react-native/button": patch +"@fluentui-react-native/switch": patch +"@fluentui-react-native/badge": patch +"@fluentui-react-native/input": patch +"@fluentui-react-native/stack": patch +"@fluentui-react-native/chip": patch +"@fluentui-react-native/icon": patch +"@fluentui-react-native/link": patch +"@fluentui-react-native/menu": patch +"@fluentui-react-native/text": patch +"@fluentui-react-native/theme": patch +"@fluentui-react-native/framework-base": patch +"@fluentui/react-native": patch +"@fluentui-react-native/adapters": patch +"@fluentui-react-native/styling-utils": patch +"@fluentui-react-native/tokens": patch +"@fluentui-react-native/tester": patch +"@fluentui-react-native/codemods": patch +--- + +Configuration and dependency changes From a29613c8120140a76f47cb6a303e2c3bf1120bd0 Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Thu, 7 May 2026 16:37:07 -0700 Subject: [PATCH 7/8] dependency dedupe --- yarn.lock | 307 ++---------------------------------------------------- 1 file changed, 8 insertions(+), 299 deletions(-) diff --git a/yarn.lock b/yarn.lock index 920ddbbbaf5..d58e8f824e7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -316,20 +316,7 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.20.0, @babel/generator@npm:^7.25.0, @babel/generator@npm:^7.28.6, @babel/generator@npm:^7.7.2": - version: 7.28.6 - resolution: "@babel/generator@npm:7.28.6" - dependencies: - "@babel/parser": "npm:^7.28.6" - "@babel/types": "npm:^7.28.6" - "@jridgewell/gen-mapping": "npm:^0.3.12" - "@jridgewell/trace-mapping": "npm:^0.3.28" - jsesc: "npm:^3.0.2" - checksum: 10c0/162fa358484a9a18e8da1235d998f10ea77c63bab408c8d3e327d5833f120631a77ff022c5ed1d838ee00523f8bb75df1f08196d3657d0bca9f2cfeb8503cc12 - languageName: node - linkType: hard - -"@babel/generator@npm:^7.29.0, @babel/generator@npm:^7.29.1": +"@babel/generator@npm:^7.20.0, @babel/generator@npm:^7.25.0, @babel/generator@npm:^7.28.6, @babel/generator@npm:^7.29.0, @babel/generator@npm:^7.29.1, @babel/generator@npm:^7.7.2": version: 7.29.1 resolution: "@babel/generator@npm:7.29.1" dependencies: @@ -552,18 +539,7 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.13.16, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.20.0, @babel/parser@npm:^7.20.15, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.21.3, @babel/parser@npm:^7.23.0, @babel/parser@npm:^7.23.9, @babel/parser@npm:^7.24.7, @babel/parser@npm:^7.25.3, @babel/parser@npm:^7.28.6": - version: 7.28.6 - resolution: "@babel/parser@npm:7.28.6" - dependencies: - "@babel/types": "npm:^7.28.6" - bin: - parser: ./bin/babel-parser.js - checksum: 10c0/d6bfe8aa8e067ef58909e9905496157312372ca65d8d2a4f2b40afbea48d59250163755bba8ae626a615da53d192b084bcfc8c9dad8b01e315b96967600de581 - languageName: node - linkType: hard - -"@babel/parser@npm:^7.29.0": +"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.13.16, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.20.0, @babel/parser@npm:^7.20.15, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.21.3, @babel/parser@npm:^7.23.0, @babel/parser@npm:^7.23.9, @babel/parser@npm:^7.24.7, @babel/parser@npm:^7.25.3, @babel/parser@npm:^7.28.6, @babel/parser@npm:^7.29.0": version: 7.29.2 resolution: "@babel/parser@npm:7.29.2" dependencies: @@ -1886,7 +1862,7 @@ __metadata: languageName: node linkType: hard -"@babel/traverse--for-generate-function-map@npm:@babel/traverse@^7.25.3, @babel/traverse@npm:^7.16.0, @babel/traverse@npm:^7.20.0, @babel/traverse@npm:^7.23.2, @babel/traverse@npm:^7.25.3, @babel/traverse@npm:^7.27.1, @babel/traverse@npm:^7.28.5, @babel/traverse@npm:^7.28.6": +"@babel/traverse--for-generate-function-map@npm:@babel/traverse@^7.25.3": version: 7.28.6 resolution: "@babel/traverse@npm:7.28.6" dependencies: @@ -1901,7 +1877,7 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.29.0": +"@babel/traverse@npm:^7.16.0, @babel/traverse@npm:^7.20.0, @babel/traverse@npm:^7.23.2, @babel/traverse@npm:^7.25.3, @babel/traverse@npm:^7.27.1, @babel/traverse@npm:^7.28.5, @babel/traverse@npm:^7.28.6, @babel/traverse@npm:^7.29.0": version: 7.29.0 resolution: "@babel/traverse@npm:7.29.0" dependencies: @@ -1916,17 +1892,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.24.7, @babel/types@npm:^7.25.2, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.5, @babel/types@npm:^7.28.6, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4": - version: 7.28.6 - resolution: "@babel/types@npm:7.28.6" - dependencies: - "@babel/helper-string-parser": "npm:^7.27.1" - "@babel/helper-validator-identifier": "npm:^7.28.5" - checksum: 10c0/54a6a9813e48ef6f35aa73c03b3c1572cad7fa32b61b35dd07e4230bc77b559194519c8a4d8106a041a27cc7a94052579e238a30a32d5509aa4da4d6fd83d990 - languageName: node - linkType: hard - -"@babel/types@npm:^7.29.0": +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.24.7, @babel/types@npm:^7.25.2, @babel/types@npm:^7.27.1, @babel/types@npm:^7.27.3, @babel/types@npm:^7.28.5, @babel/types@npm:^7.28.6, @babel/types@npm:^7.29.0, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4": version: 7.29.0 resolution: "@babel/types@npm:7.29.0" dependencies: @@ -16206,13 +16172,6 @@ __metadata: languageName: node linkType: hard -"hermes-estree@npm:0.32.0": - version: 0.32.0 - resolution: "hermes-estree@npm:0.32.0" - checksum: 10c0/3b67d1fe44336240ef7f9c40ecbf363279ba263d51efe120570c3862cc109e652fc09aebddfe6b73d0f0246610bee130e4064c359f1f4cbf002bdb1d99717ef2 - languageName: node - linkType: hard - "hermes-estree@npm:0.35.0": version: 0.35.0 resolution: "hermes-estree@npm:0.35.0" @@ -16256,15 +16215,6 @@ __metadata: languageName: node linkType: hard -"hermes-parser@npm:0.32.0": - version: 0.32.0 - resolution: "hermes-parser@npm:0.32.0" - dependencies: - hermes-estree: "npm:0.32.0" - checksum: 10c0/5902d2c5d347c0629fba07a47eaad5569590ac69bc8bfb2e454e08d2dfbe1ebd989d88518dca2cba64061689b5eac5960ae6bd15a4a66600bbf377498a3234b7 - languageName: node - linkType: hard - "hermes-parser@npm:0.35.0": version: 0.35.0 resolution: "hermes-parser@npm:0.35.0" @@ -18815,18 +18765,6 @@ __metadata: languageName: node linkType: hard -"metro-babel-transformer@npm:0.83.3": - version: 0.83.3 - resolution: "metro-babel-transformer@npm:0.83.3" - dependencies: - "@babel/core": "npm:^7.25.2" - flow-enums-runtime: "npm:^0.0.6" - hermes-parser: "npm:0.32.0" - nullthrows: "npm:^1.1.1" - checksum: 10c0/b0107f86cdc9ef9419d669b5b3dac22e35b02c67c480563a63d98f5fb50953587938769efc854bfc09c225557790cd6488dbe3fed6f05c2b3f322cfb2e5ff577 - languageName: node - linkType: hard - "metro-babel-transformer@npm:0.83.7": version: 0.83.7 resolution: "metro-babel-transformer@npm:0.83.7" @@ -18858,15 +18796,6 @@ __metadata: languageName: node linkType: hard -"metro-cache-key@npm:0.83.3": - version: 0.83.3 - resolution: "metro-cache-key@npm:0.83.3" - dependencies: - flow-enums-runtime: "npm:^0.0.6" - checksum: 10c0/403a2ca5b5bbb31a979effaa31fba0c47e2eb3830428c39c99db58aa0739a6fcc386f5a56c91495c53a4569065f0bda29e3038e9c41ca17af443971395f257dc - languageName: node - linkType: hard - "metro-cache-key@npm:0.83.7": version: 0.83.7 resolution: "metro-cache-key@npm:0.83.7" @@ -18899,18 +18828,6 @@ __metadata: languageName: node linkType: hard -"metro-cache@npm:0.83.3": - version: 0.83.3 - resolution: "metro-cache@npm:0.83.3" - dependencies: - exponential-backoff: "npm:^3.1.1" - flow-enums-runtime: "npm:^0.0.6" - https-proxy-agent: "npm:^7.0.5" - metro-core: "npm:0.83.3" - checksum: 10c0/608e85d819092c0b472c9adabb5de58e88355739de71833230626c1af7f3ce5dd1dca9f1ff3a836d995201f717315fd769c4c646a818c1f490ea2ec29417e32a - languageName: node - linkType: hard - "metro-cache@npm:0.83.7": version: 0.83.7 resolution: "metro-cache@npm:0.83.7" @@ -18955,23 +18872,7 @@ __metadata: languageName: node linkType: hard -"metro-config@npm:0.83.3, metro-config@npm:^0.83.1": - version: 0.83.3 - resolution: "metro-config@npm:0.83.3" - dependencies: - connect: "npm:^3.6.5" - flow-enums-runtime: "npm:^0.0.6" - jest-validate: "npm:^29.7.0" - metro: "npm:0.83.3" - metro-cache: "npm:0.83.3" - metro-core: "npm:0.83.3" - metro-runtime: "npm:0.83.3" - yaml: "npm:^2.6.1" - checksum: 10c0/c53e4a061cfc776a65cdb5055c0be840055f9741dae25e7d407835988618b15f1407270dbd957c7333d01e9c79eccbf8e6bcb76421b2145bd134b53df459a033 - languageName: node - linkType: hard - -"metro-config@npm:0.83.7": +"metro-config@npm:0.83.7, metro-config@npm:^0.83.1": version: 0.83.7 resolution: "metro-config@npm:0.83.7" dependencies: @@ -19009,17 +18910,6 @@ __metadata: languageName: node linkType: hard -"metro-core@npm:0.83.3": - version: 0.83.3 - resolution: "metro-core@npm:0.83.3" - dependencies: - flow-enums-runtime: "npm:^0.0.6" - lodash.throttle: "npm:^4.1.1" - metro-resolver: "npm:0.83.3" - checksum: 10c0/d44c1f117c4b27f18abd27110e9536abf3105733e8fccaa522bd0e008248cce0260130517840c4914d7ce5df498f39ecfd43b6046a0f0b1c0f8ada7de38e52c4 - languageName: node - linkType: hard - "metro-core@npm:0.83.7, metro-core@npm:^0.83.1": version: 0.83.7 resolution: "metro-core@npm:0.83.7" @@ -19071,23 +18961,6 @@ __metadata: languageName: node linkType: hard -"metro-file-map@npm:0.83.3": - version: 0.83.3 - resolution: "metro-file-map@npm:0.83.3" - dependencies: - debug: "npm:^4.4.0" - fb-watchman: "npm:^2.0.0" - flow-enums-runtime: "npm:^0.0.6" - graceful-fs: "npm:^4.2.4" - invariant: "npm:^2.2.4" - jest-worker: "npm:^29.7.0" - micromatch: "npm:^4.0.4" - nullthrows: "npm:^1.1.1" - walker: "npm:^1.0.7" - checksum: 10c0/4bf9c0fcdb5a5c08851f7370d6427fb68a770f156c4eabbddf20bd3583fb25ae428507eaeb8dc525e792db41d048620209750f33735055863abc909cbb6ef71a - languageName: node - linkType: hard - "metro-file-map@npm:0.83.7": version: 0.83.7 resolution: "metro-file-map@npm:0.83.7" @@ -19125,16 +18998,6 @@ __metadata: languageName: node linkType: hard -"metro-minify-terser@npm:0.83.3": - version: 0.83.3 - resolution: "metro-minify-terser@npm:0.83.3" - dependencies: - flow-enums-runtime: "npm:^0.0.6" - terser: "npm:^5.15.0" - checksum: 10c0/9158e3199c0ea647776a7ed5c68ec1bb493f5347ac979f1ca75020cf1c39f907bd29983d60f8cb24dca17053d6b5c35f140c6d720fad0bd0fa9728e8c51e95c6 - languageName: node - linkType: hard - "metro-minify-terser@npm:0.83.7": version: 0.83.7 resolution: "metro-minify-terser@npm:0.83.7" @@ -19163,15 +19026,6 @@ __metadata: languageName: node linkType: hard -"metro-resolver@npm:0.83.3": - version: 0.83.3 - resolution: "metro-resolver@npm:0.83.3" - dependencies: - flow-enums-runtime: "npm:^0.0.6" - checksum: 10c0/1d6c030a00b987fbee38e5c632219b2be602e38c9aa9628bb4b591f646e64130d08adb8dcb35076c5c8cc151135557b655f3dee514c0df9f26d3416629eb006b - languageName: node - linkType: hard - "metro-resolver@npm:0.83.7": version: 0.83.7 resolution: "metro-resolver@npm:0.83.7" @@ -19201,16 +19055,6 @@ __metadata: languageName: node linkType: hard -"metro-runtime@npm:0.83.3": - version: 0.83.3 - resolution: "metro-runtime@npm:0.83.3" - dependencies: - "@babel/runtime": "npm:^7.25.0" - flow-enums-runtime: "npm:^0.0.6" - checksum: 10c0/1d788483b6c2f13e0ea9ff4564996154754d3de84f683812ac848053eaea9243144adee3e8ffe90789e6c253f7402211d72b1b5ebf09e6c23841bc956a680253 - languageName: node - linkType: hard - "metro-runtime@npm:0.83.7, metro-runtime@npm:^0.83.1": version: 0.83.7 resolution: "metro-runtime@npm:0.83.7" @@ -19274,25 +19118,7 @@ __metadata: languageName: node linkType: hard -"metro-source-map@npm:0.83.3, metro-source-map@npm:^0.83.1": - version: 0.83.3 - resolution: "metro-source-map@npm:0.83.3" - dependencies: - "@babel/traverse": "npm:^7.25.3" - "@babel/traverse--for-generate-function-map": "npm:@babel/traverse@^7.25.3" - "@babel/types": "npm:^7.25.2" - flow-enums-runtime: "npm:^0.0.6" - invariant: "npm:^2.2.4" - metro-symbolicate: "npm:0.83.3" - nullthrows: "npm:^1.1.1" - ob1: "npm:0.83.3" - source-map: "npm:^0.5.6" - vlq: "npm:^1.0.0" - checksum: 10c0/47e984bde1f8f06348298771f44b5803657c9cfa387df8ff36a359cc72ae3bc0e9c4ea6141345609b183ac8c63dcc997000d3626006e388c24779abb57c6f82c - languageName: node - linkType: hard - -"metro-source-map@npm:0.83.7": +"metro-source-map@npm:0.83.7, metro-source-map@npm:^0.83.1": version: 0.83.7 resolution: "metro-source-map@npm:0.83.7" dependencies: @@ -19358,22 +19184,6 @@ __metadata: languageName: node linkType: hard -"metro-symbolicate@npm:0.83.3": - version: 0.83.3 - resolution: "metro-symbolicate@npm:0.83.3" - dependencies: - flow-enums-runtime: "npm:^0.0.6" - invariant: "npm:^2.2.4" - metro-source-map: "npm:0.83.3" - nullthrows: "npm:^1.1.1" - source-map: "npm:^0.5.6" - vlq: "npm:^1.0.0" - bin: - metro-symbolicate: src/index.js - checksum: 10c0/bd3d234c7581466a9a78f952caa25816666753f6b560fe41502727b3e59931ac65225c9909635dc7c25d4dfaf392631366ef3ec5fa8490413385d60f8d900112 - languageName: node - linkType: hard - "metro-symbolicate@npm:0.83.7": version: 0.83.7 resolution: "metro-symbolicate@npm:0.83.7" @@ -19418,20 +19228,6 @@ __metadata: languageName: node linkType: hard -"metro-transform-plugins@npm:0.83.3": - version: 0.83.3 - resolution: "metro-transform-plugins@npm:0.83.3" - dependencies: - "@babel/core": "npm:^7.25.2" - "@babel/generator": "npm:^7.25.0" - "@babel/template": "npm:^7.25.0" - "@babel/traverse": "npm:^7.25.3" - flow-enums-runtime: "npm:^0.0.6" - nullthrows: "npm:^1.1.1" - checksum: 10c0/df3c6db6a69d4888e1b6aad40d48ffec0c3c3faa38e89c07633432fc107ef12c47d55598904c91aadfe0751c5bcb7ec191f8a5ee70c18d253201150fc617ca37 - languageName: node - linkType: hard - "metro-transform-plugins@npm:0.83.7": version: 0.83.7 resolution: "metro-transform-plugins@npm:0.83.7" @@ -19488,27 +19284,6 @@ __metadata: languageName: node linkType: hard -"metro-transform-worker@npm:0.83.3": - version: 0.83.3 - resolution: "metro-transform-worker@npm:0.83.3" - dependencies: - "@babel/core": "npm:^7.25.2" - "@babel/generator": "npm:^7.25.0" - "@babel/parser": "npm:^7.25.3" - "@babel/types": "npm:^7.25.2" - flow-enums-runtime: "npm:^0.0.6" - metro: "npm:0.83.3" - metro-babel-transformer: "npm:0.83.3" - metro-cache: "npm:0.83.3" - metro-cache-key: "npm:0.83.3" - metro-minify-terser: "npm:0.83.3" - metro-source-map: "npm:0.83.3" - metro-transform-plugins: "npm:0.83.3" - nullthrows: "npm:^1.1.1" - checksum: 10c0/bea0cbcc7d13cd2b97a2159257b3a53b9ecfb15da18ace82ae05bf2d0ac7cc1806c0bd77ed3b8f4c82c9532773fb99f3938e4b1480e2673f5eda69575ee1d7ef - languageName: node - linkType: hard - "metro-transform-worker@npm:0.83.7": version: 0.83.7 resolution: "metro-transform-worker@npm:0.83.7" @@ -19632,56 +19407,6 @@ __metadata: languageName: node linkType: hard -"metro@npm:0.83.3": - version: 0.83.3 - resolution: "metro@npm:0.83.3" - dependencies: - "@babel/code-frame": "npm:^7.24.7" - "@babel/core": "npm:^7.25.2" - "@babel/generator": "npm:^7.25.0" - "@babel/parser": "npm:^7.25.3" - "@babel/template": "npm:^7.25.0" - "@babel/traverse": "npm:^7.25.3" - "@babel/types": "npm:^7.25.2" - accepts: "npm:^1.3.7" - chalk: "npm:^4.0.0" - ci-info: "npm:^2.0.0" - connect: "npm:^3.6.5" - debug: "npm:^4.4.0" - error-stack-parser: "npm:^2.0.6" - flow-enums-runtime: "npm:^0.0.6" - graceful-fs: "npm:^4.2.4" - hermes-parser: "npm:0.32.0" - image-size: "npm:^1.0.2" - invariant: "npm:^2.2.4" - jest-worker: "npm:^29.7.0" - jsc-safe-url: "npm:^0.2.2" - lodash.throttle: "npm:^4.1.1" - metro-babel-transformer: "npm:0.83.3" - metro-cache: "npm:0.83.3" - metro-cache-key: "npm:0.83.3" - metro-config: "npm:0.83.3" - metro-core: "npm:0.83.3" - metro-file-map: "npm:0.83.3" - metro-resolver: "npm:0.83.3" - metro-runtime: "npm:0.83.3" - metro-source-map: "npm:0.83.3" - metro-symbolicate: "npm:0.83.3" - metro-transform-plugins: "npm:0.83.3" - metro-transform-worker: "npm:0.83.3" - mime-types: "npm:^2.1.27" - nullthrows: "npm:^1.1.1" - serialize-error: "npm:^2.1.0" - source-map: "npm:^0.5.6" - throat: "npm:^5.0.0" - ws: "npm:^7.5.10" - yargs: "npm:^17.6.2" - bin: - metro: src/cli.js - checksum: 10c0/9513c05725c3984ce3b72896c4f7d019ad4fd024a1231b8b84c5c655a0563fc7f26725f28c20c5d3511e3825d64fec3a1e68621f6a6af34d785c5e714ed7da89 - languageName: node - linkType: hard - "metro@npm:0.83.7, metro@npm:^0.83.1": version: 0.83.7 resolution: "metro@npm:0.83.7" @@ -20439,15 +20164,6 @@ __metadata: languageName: node linkType: hard -"ob1@npm:0.83.3": - version: 0.83.3 - resolution: "ob1@npm:0.83.3" - dependencies: - flow-enums-runtime: "npm:^0.0.6" - checksum: 10c0/9231315de39cf0612a01e283c7d7ef31d16618e598de96e44ae1ab3007629296ce1a3d5d02ef60ff22d9fefe33050358c10e7fcba8278861157b89befe13cb3d - languageName: node - linkType: hard - "ob1@npm:0.83.7": version: 0.83.7 resolution: "ob1@npm:0.83.7" @@ -23538,14 +23254,7 @@ __metadata: languageName: node linkType: hard -"source-map-js@npm:^1.0.1, source-map-js@npm:^1.0.2": - version: 1.0.2 - resolution: "source-map-js@npm:1.0.2" - checksum: 10c0/32f2dfd1e9b7168f9a9715eb1b4e21905850f3b50cf02cf476e47e4eebe8e6b762b63a64357896aa29b37e24922b4282df0f492e0d2ace572b43d15525976ff8 - languageName: node - linkType: hard - -"source-map-js@npm:^1.2.1": +"source-map-js@npm:^1.0.1, source-map-js@npm:^1.0.2, source-map-js@npm:^1.2.1": version: 1.2.1 resolution: "source-map-js@npm:1.2.1" checksum: 10c0/7bda1fc4c197e3c6ff17de1b8b2c20e60af81b63a52cb32ec5a5d67a20a7d42651e2cb34ebe93833c5a2a084377e17455854fee3e21e7925c64a51b6a52b0faf From 548b90e6693bb1e1e9a28323d1b100edf6bf858e Mon Sep 17 00:00:00 2001 From: Jason Morse Date: Thu, 7 May 2026 16:46:31 -0700 Subject: [PATCH 8/8] update component templates with new configs --- .../component-templates/ComponentTemplate/babel.config.js | 1 - .../component-templates/ComponentTemplate}/jest.config.cjs | 0 .../component-templates/ComponentTemplate/jest.config.js | 2 -- .../component-templates/ComponentTemplate/just.config.js | 3 --- .../component-templates/ComponentTemplate/package.json | 6 +++--- .../component-templates/ComponentTemplate/tsconfig.json | 1 + 6 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 apps/component-generator/component-templates/ComponentTemplate/babel.config.js rename {scripts/templates => apps/component-generator/component-templates/ComponentTemplate}/jest.config.cjs (100%) delete mode 100644 apps/component-generator/component-templates/ComponentTemplate/jest.config.js delete mode 100644 apps/component-generator/component-templates/ComponentTemplate/just.config.js diff --git a/apps/component-generator/component-templates/ComponentTemplate/babel.config.js b/apps/component-generator/component-templates/ComponentTemplate/babel.config.js deleted file mode 100644 index c330013387f..00000000000 --- a/apps/component-generator/component-templates/ComponentTemplate/babel.config.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('@fluentui-react-native/scripts/babel-config'); diff --git a/scripts/templates/jest.config.cjs b/apps/component-generator/component-templates/ComponentTemplate/jest.config.cjs similarity index 100% rename from scripts/templates/jest.config.cjs rename to apps/component-generator/component-templates/ComponentTemplate/jest.config.cjs diff --git a/apps/component-generator/component-templates/ComponentTemplate/jest.config.js b/apps/component-generator/component-templates/ComponentTemplate/jest.config.js deleted file mode 100644 index 92f4643e49a..00000000000 --- a/apps/component-generator/component-templates/ComponentTemplate/jest.config.js +++ /dev/null @@ -1,2 +0,0 @@ -const { configureReactNativeJest } = require('@fluentui-react-native/jest-config'); -module.exports = configureReactNativeJest('android'); diff --git a/apps/component-generator/component-templates/ComponentTemplate/just.config.js b/apps/component-generator/component-templates/ComponentTemplate/just.config.js deleted file mode 100644 index 4f26f8acb52..00000000000 --- a/apps/component-generator/component-templates/ComponentTemplate/just.config.js +++ /dev/null @@ -1,3 +0,0 @@ -const { preset } = require('@fluentui-react-native/scripts'); - -preset(); diff --git a/apps/component-generator/component-templates/ComponentTemplate/package.json b/apps/component-generator/component-templates/ComponentTemplate/package.json index 86245f50d2f..53377855cab 100644 --- a/apps/component-generator/component-templates/ComponentTemplate/package.json +++ b/apps/component-generator/component-templates/ComponentTemplate/package.json @@ -27,10 +27,7 @@ }, "dependencies": {}, "devDependencies": { - "@fluentui-react-native/babel-config": "workspace:*", - "@fluentui-react-native/jest-config": "workspace:*", "@fluentui-react-native/kit-config": "workspace:*", - "@fluentui-react-native/lint-config-rules": "workspace:*", "@fluentui-react-native/scripts": "workspace:*", "@fluentui-react-native/test-tools": "workspace:*", "react": "18.2.0", @@ -40,6 +37,9 @@ "react": "18.2.0", "react-native": "^0.71.0" }, + "furn": { + "jestPlatform": "ios" + }, "rnx-kit": { "extends": "@fluentui-react-native/kit-config", "kitType": "library", diff --git a/apps/component-generator/component-templates/ComponentTemplate/tsconfig.json b/apps/component-generator/component-templates/ComponentTemplate/tsconfig.json index f3424b1ff4f..07b157e5c62 100644 --- a/apps/component-generator/component-templates/ComponentTemplate/tsconfig.json +++ b/apps/component-generator/component-templates/ComponentTemplate/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "@fluentui-react-native/scripts/tsconfig", "compilerOptions": { + "rootDir": "src", "outDir": "lib" }, "include": ["src"]