Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions .changeset/long-ideas-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
'@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/eslint-config-rules': 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/immutable-merge': 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/merge-props': 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/memo-cache': patch
'@fluentui-react-native/use-tokens': patch
'@fluentui-react-native/theme-tokens': patch
'@fluentui-react-native/checkbox': patch
'@fluentui-react-native/jest-config': 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/kit-config': patch
'@fluentui-react-native/experimental-stack': 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/codemods': patch
'@fluentui-react-native/scripts': patch
---

Ensure packages have a default export that references the typescript entrypoint and clean up build dependency ordering
5 changes: 3 additions & 2 deletions apps/E2E/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"e2eprep:android": "cross-env APPIUM_HOME=.appium yarn exec appium driver install uiautomator2",
"e2eprep:ios": "cross-env APPIUM_HOME=.appium yarn exec appium driver install xcuitest",
"e2eprep:macos": "cross-env APPIUM_HOME=.appium yarn exec appium driver install mac2",
Expand Down
5 changes: 3 additions & 2 deletions apps/fluent-tester/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"android": "rnx-cli run --platform android",
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"bundle": "rnx-cli bundle --dev false",
"bundle:android": "rnx-cli bundle --dev false --platform android",
"bundle:ios": "rnx-cli bundle --dev false --platform ios",
Expand Down
5 changes: 3 additions & 2 deletions apps/tester-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"lint": "fluentui-scripts eslint",
Expand Down
5 changes: 3 additions & 2 deletions apps/win32-81/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"bundle": "rnx-cli bundle --dev false",
"bundle-dev": "rnx-cli bundle",
"clean": "fluentui-scripts clean",
Expand Down
5 changes: 3 additions & 2 deletions apps/win32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"bundle": "rnx-cli bundle --dev false",
"bundle-dev": "rnx-cli bundle",
"clean": "fluentui-scripts clean",
Expand Down
17 changes: 10 additions & 7 deletions lage.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,24 @@ const config = {
npmClient: 'yarn',
pipeline: {
'build-cjs': {
dependsOn: ['^build-cjs'],
// cjs builds need to wait for the esm builds to produce the type definitions
dependsOn: ['^build-core', '^build-cjs'],
inputs: ['*', 'src/**/*', 'assets/**/*'],
outputs: ['lib-commonjs/**/*'],
},
'build-esm': {
dependsOn: ['^build-esm'],
'build-core': {
// the core build does esm builds (which produce type definitions used by both cjs and esm builds)
// this also handles noEmit packages which should be run in sequence with other packages
dependsOn: ['^build-core'],
inputs: ['*', 'src/**/*', 'assets/**/*'],
outputs: ['lib/**/*'],
},
'build-dual': {
dependsOn: ['build-cjs', 'build-esm'],
'build-all': {
dependsOn: ['build-core', 'build-cjs'],
inputs: ['*', 'src/**/*', 'assets/**/*'],
outputs: ['lib/**/*', 'lib-commonjs/**/*'],
},
buildci: ['build-dual', 'test', 'lint', 'lint-package'],
buildci: ['build-all', 'test', 'lint', 'lint-package'],
bundle: {
inputs: ['**/*', '!node_modules/**/*', '!dist/**/*', '!lib/**/*', '!lib-commonjs/**/*'],
outputs: ['dist/**/*'],
Expand All @@ -39,7 +42,7 @@ const config = {
},
'pr-check': ['buildci', 'lint-package', 'lint-lockfile', 'format:check'],
test: {
dependsOn: ['build-dual'],
dependsOn: ['build-all'],
inputs: [],
outputs: [],
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts"
],
"scripts": {
"build": "lage build-dual",
"build": "lage build-all",
"buildci": "lage buildci",
"clean-all": "node ./scripts/src/preinstall/clean-all.js",
"docs": "yarn workspace fluent-rn-website start",
Expand Down
5 changes: 3 additions & 2 deletions packages/codemods/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"lint": "fluentui-scripts eslint",
Expand Down
5 changes: 3 additions & 2 deletions packages/components/Avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"lint": "fluentui-scripts eslint",
Expand Down
5 changes: 3 additions & 2 deletions packages/components/Badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"lint": "fluentui-scripts eslint",
Expand Down
5 changes: 3 additions & 2 deletions packages/components/Button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"lint": "fluentui-scripts eslint",
Expand Down
5 changes: 3 additions & 2 deletions packages/components/Callout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"lint": "fluentui-scripts eslint",
Expand Down
5 changes: 3 additions & 2 deletions packages/components/Checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"lint": "fluentui-scripts eslint",
Expand Down
5 changes: 3 additions & 2 deletions packages/components/Chip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"lint": "fluentui-scripts eslint",
Expand Down
5 changes: 3 additions & 2 deletions packages/components/ContextualMenu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"lint": "fluentui-scripts eslint",
Expand Down
5 changes: 3 additions & 2 deletions packages/components/Divider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"lint": "fluentui-scripts eslint",
Expand Down
5 changes: 3 additions & 2 deletions packages/components/FocusTrapZone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js",
"require": "./lib-commonjs/index.js"
"require": "./lib-commonjs/index.js",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "fluentui-scripts build",
"build-cjs": "tsgo --outDir lib-commonjs",
"build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
"clean": "fluentui-scripts clean",
"depcheck": "fluentui-scripts depcheck",
"lint": "fluentui-scripts eslint",
Expand Down
Loading
Loading