Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Node ESM #3630

Merged
merged 56 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
c51d4e8
Support Node ESM
snowystinger Oct 11, 2022
73b37a3
fix exports field
snowystinger Oct 12, 2022
273a6ee
Merge branch 'main' into support-esm
snowystinger Oct 12, 2022
09b34df
Change our nextjs app to esm
snowystinger Oct 12, 2022
a7a72a6
run verdaccio build on this branc
snowystinger Oct 12, 2022
fa880e1
fix typo
snowystinger Oct 12, 2022
b171e38
restore verdaccio build to main
snowystinger Oct 13, 2022
024022a
Merge branch 'main' into support-esm
snowystinger Oct 13, 2022
0199e65
Merge branch 'main' into support-esm
snowystinger Oct 13, 2022
6ef6151
add subfields
snowystinger Oct 13, 2022
5862a6d
Merge branch 'main' into support-esm
snowystinger Oct 14, 2022
1cde05e
remove module from node only pkg
snowystinger Oct 14, 2022
b97a830
restore verdaccio to main
snowystinger Oct 14, 2022
9404798
change example back to default
snowystinger Oct 14, 2022
584c5dd
Merge branch 'main' into support-esm
snowystinger Oct 17, 2022
6a3deee
Merge branch 'main' into support-esm
snowystinger Oct 18, 2022
ebc898a
fix icons and file extensions
snowystinger Oct 24, 2022
92624d2
fix storybook, enable verdaccio
snowystinger Oct 24, 2022
2c509ae
fix tests
snowystinger Oct 25, 2022
4d1018a
fix esm test
snowystinger Oct 25, 2022
90edded
fix docs build
snowystinger Oct 25, 2022
d2db962
Make diff easier to read
snowystinger Oct 25, 2022
ff7945b
remove pkg.json circular dependency
snowystinger Oct 25, 2022
89eb385
fix old lint rule
snowystinger Oct 25, 2022
26d8b5d
fix immediate circular dependencies
snowystinger Oct 25, 2022
50e162a
remove check for easier verdaccio M1
snowystinger Oct 25, 2022
d80e620
example to build against latest
snowystinger Oct 25, 2022
0506e6e
mark icon packages as cjs
snowystinger Oct 26, 2022
d5628e3
try using a babel plugin to work around default exports
snowystinger Oct 26, 2022
940d3fd
revert node update
snowystinger Oct 26, 2022
d65b6ff
make all icons support esm and cjs
snowystinger Oct 31, 2022
328c98b
Merge branch 'main' into support-esm
snowystinger Oct 31, 2022
27bf987
fix remaining icon imports with .js
snowystinger Oct 31, 2022
715c9a6
fix dependencies
snowystinger Oct 31, 2022
402cf06
fix gitignore
snowystinger Oct 31, 2022
93a9be3
fix exports identifiers
snowystinger Oct 31, 2022
9fa10b0
try expansion nested exports
snowystinger Oct 31, 2022
903523e
expansion didn't work
snowystinger Oct 31, 2022
a78345c
fix arg order
snowystinger Oct 31, 2022
a09df36
correct export again
snowystinger Oct 31, 2022
410e09c
and commit
snowystinger Nov 1, 2022
3e93ff4
fix tests
snowystinger Nov 2, 2022
0857a88
Merge branch 'main' into support-esm
snowystinger Nov 2, 2022
40f2ae4
Merge branch 'main' into support-esm
snowystinger Nov 9, 2022
ae02c75
Add types to exports
snowystinger Nov 9, 2022
e1a10f1
update plop templates
snowystinger Nov 9, 2022
372cc2b
fix express icon resolution
snowystinger Nov 9, 2022
4c8fac9
Merge branch 'main' into support-esm
snowystinger Nov 18, 2022
5dd5f72
Don't require tsdiff to publish verdaccio
snowystinger Nov 21, 2022
e0e9673
Merge branch 'main' into support-esm
snowystinger Nov 21, 2022
1815929
Revert circle-ci changes to main
snowystinger Nov 21, 2022
4ddba9c
Merge branch 'support-esm' of github.com:adobe/react-spectrum into su…
snowystinger Nov 21, 2022
6b7437b
undo whitespace change to NumberField test
snowystinger Nov 21, 2022
1f0423a
undo verdaccio cleanup change for non-m1 macs
snowystinger Nov 21, 2022
2bd119a
fix plop templates
snowystinger Nov 22, 2022
bb0b68c
Merge branch 'main' into support-esm
LFDanLu Nov 22, 2022
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const withTM = require("next-transpile-modules")([
import ntm from 'next-transpile-modules';
const withTM = ntm([
"@adobe/react-spectrum",
"@react-spectrum/actiongroup",
"@react-spectrum/badge",
Expand Down Expand Up @@ -50,9 +51,10 @@ const withTM = require("next-transpile-modules")([
"@spectrum-icons/workflow",
]);

module.exports = withTM({
let result = withTM({
basePath:
process.env.VERDACCIO && process.env.CIRCLE_SHA1
? `/reactspectrum/${process.env.CIRCLE_SHA1}/verdaccio/next`
: "",
});
export default result;
snowystinger marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions examples/rsp-next-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"start": "next start",
"lint": "next lint"
},
"type": "module",
"dependencies": {
"@adobe/react-spectrum": "^3.22.0",
"@react-spectrum/color": "^3.0.0-beta.16",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"build:api-branch": "node scripts/buildBranchAPI.js",
"compare:apis": "node scripts/compareAPIs.js",
"check-apis": "yarn build:api-published && yarn build:api-branch && yarn compare:apis",
"bumpVersions": "node scripts/bumpVersions.js"
"bumpVersions": "node scripts/bumpVersions.js",
"supportESM": "node scripts/supportESM.js"
},
"workspaces": [
"packages/react-stately",
Expand Down
1 change: 1 addition & 0 deletions packages/@adobe/react-spectrum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
snowystinger marked this conversation as resolved.
Show resolved Hide resolved
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@internationalized/date/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Internationalized calendar, date, and time manipulation utilities",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@internationalized/message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Internationalized message formatting and locale negotiation",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@internationalized/number/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Internationalized number formatting and parsing utilities",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@internationalized/string-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Localized string compiler for @internationalized/string",
"license": "Apache-2.0",
"main": "src/stringCompiler.js",
"exports": "./src/stringCompiler.js",
"types": "src/stringCompiler.d.ts",
"files": [
"src"
Expand Down
1 change: 1 addition & 0 deletions packages/@internationalized/string/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Internationalized string formatting and locale negotiation",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/actiongroup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/aria-modal-polyfill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/autocomplete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/breadcrumbs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/color/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/combobox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/datepicker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/dnd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/focus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/gridlist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"real-main": "dist/real-main.js",
"real-module": "dist/real-module.js",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/interactions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/label/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/landmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/listbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/live-announcer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/meter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/numberfield/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/overlays/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/pagination/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"license": "Apache-2.0",
"private": true,
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/progress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/index.js",
"exports": "./dist/index.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/radio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/searchfield/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/selection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/separator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/sidenav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/slider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Slider",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/spinbutton/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/@react-aria/switch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Spectrum UI components in React",
"license": "Apache-2.0",
"main": "dist/main.js",
"exports": "./dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
Expand Down
Loading