Skip to content

Commit 479b93c

Browse files
authored
Update FURN builds to use node16 module resolution and export maps (#3923)
* convert default module type to node16 instead of node * update package.json files with exports * fix issues around theme shadow types * fix build errors from conversions * revert attempted build fix * remove unused dependency * update builds to use node16 settings and modern export maps * Change files * add exports map for framework
1 parent 88ab939 commit 479b93c

File tree

252 files changed

+1873
-625
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+1873
-625
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"editor.trimAutoWhitespace": true,
55
"editor.insertSpaces": true,
66
"editor.tabSize": 2,
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll.eslint": "explicit"
9+
},
710

811
"eslint.enable": true,
912
"eslint.workingDirectories": [{ "mode": "auto" }], // infer working directory based on .eslintrc/package.json location

apps/E2E/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
"version": "1.40.8",
44
"description": "Package containing E2E testing specs",
55
"license": "MIT",
6+
"main": "lib-commonjs/index.js",
7+
"module": "lib/index.js",
8+
"typings": "lib/index.d.ts",
9+
"exports": {
10+
".": {
11+
"import": "./lib/index.js",
12+
"require": "./lib-commonjs/index.js",
13+
"types": "./lib/index.d.ts"
14+
}
15+
},
616
"scripts": {
717
"build": "fluentui-scripts build",
818
"lint": "fluentui-scripts eslint",

apps/E2E/src/FocusZone/consts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { FocusZoneDirection } from '@fluentui-react-native/focus-zone';
22

33
import type { GridButton } from './pages/FocusZonePageObject';
4+
export type { GridButton as GridButtonIndex } from './pages/FocusZonePageObject';
45

56
export const HOMEPAGE_FOCUSZONE_BUTTON = 'Homepage_FocusZone_Button';
67
export const FOCUSZONE_TESTPAGE = 'FocusZone_TestPage';

0 commit comments

Comments
 (0)