From b9cbf26f8eee53c127701b129a36650682bf2f47 Mon Sep 17 00:00:00 2001 From: Peter Pal Hudak Date: Wed, 27 May 2026 16:50:31 +0200 Subject: [PATCH] build(many): remove commonjs INSTUI-5036 --- .../{babel.config.js => babel.config.cjs} | 0 .../canvas-high-contrast-theme/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/canvas-theme/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/console/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/debounce/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/emotion/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-a11y-content/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-a11y-utils/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-alerts/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-avatar/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-axe-check/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-badge/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-billboard/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-breadcrumb/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-buttons/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-byline/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-calendar/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-checkbox/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-color-picker/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-color-utils/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-date-input/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-date-time-input/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-decorator/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-dialog/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-dom-utils/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-drawer-layout/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-drilldown/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-editable/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-expandable/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-file-drop/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-flex/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-focusable/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-form-field/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-grid/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-heading/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-i18n/package.json | 6 ++---- packages/ui-icons/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-img/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-instructure/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-link/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-list/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-menu/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-metric/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-modal/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-motion/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-navigation/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-number-input/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-options/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-overlays/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-pages/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-pagination/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-pill/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-popover/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-portal/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-position/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-progress/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-radio-input/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-range-input/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-rating/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-react-utils/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-responsive/package.json | 6 ++---- .../lib/build/generate-all-tokens.js | 21 ++++++++++--------- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-select/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-selectable/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-side-nav-bar/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-simple-select/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-source-code-editor/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-spinner/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-svg-images/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-table/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-tabs/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-tag/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-text-area/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-text-input/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-text/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-theme-tokens/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-themes/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-time-select/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-toggle-details/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-tooltip/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-top-nav-bar/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-tray/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-tree-browser/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-truncate-list/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-truncate-text/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-utils/package.json | 6 ++---- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-view/package.json | 6 ++---- .../ui/{babel.config.js => babel.config.cjs} | 0 packages/ui/package.json | 6 ++---- .../uid/{babel.config.js => babel.config.cjs} | 0 packages/uid/package.json | 6 ++---- 174 files changed, 185 insertions(+), 358 deletions(-) rename packages/canvas-high-contrast-theme/{babel.config.js => babel.config.cjs} (100%) rename packages/canvas-theme/{babel.config.js => babel.config.cjs} (100%) rename packages/console/{babel.config.js => babel.config.cjs} (100%) rename packages/debounce/{babel.config.js => babel.config.cjs} (100%) rename packages/emotion/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-a11y-content/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-a11y-utils/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-alerts/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-avatar/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-axe-check/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-badge/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-billboard/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-breadcrumb/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-buttons/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-byline/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-calendar/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-checkbox/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-color-picker/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-color-utils/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-date-input/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-date-time-input/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-decorator/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-dialog/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-dom-utils/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-drawer-layout/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-drilldown/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-editable/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-expandable/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-file-drop/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-flex/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-focusable/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-form-field/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-grid/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-heading/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-i18n/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-img/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-instructure/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-link/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-list/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-menu/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-metric/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-modal/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-motion/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-navigation/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-number-input/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-options/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-overlays/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-pages/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-pagination/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-pill/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-popover/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-portal/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-position/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-progress/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-radio-input/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-range-input/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-rating/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-react-utils/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-responsive/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-select/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-selectable/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-side-nav-bar/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-simple-select/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-source-code-editor/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-spinner/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-svg-images/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-table/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-tabs/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-tag/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-text-area/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-text-input/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-text/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-theme-tokens/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-themes/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-time-select/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-toggle-details/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-tooltip/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-top-nav-bar/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-tray/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-tree-browser/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-truncate-list/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-truncate-text/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-utils/{babel.config.js => babel.config.cjs} (100%) rename packages/ui-view/{babel.config.js => babel.config.cjs} (100%) rename packages/ui/{babel.config.js => babel.config.cjs} (100%) rename packages/uid/{babel.config.js => babel.config.cjs} (100%) diff --git a/packages/canvas-high-contrast-theme/babel.config.js b/packages/canvas-high-contrast-theme/babel.config.cjs similarity index 100% rename from packages/canvas-high-contrast-theme/babel.config.js rename to packages/canvas-high-contrast-theme/babel.config.cjs diff --git a/packages/canvas-high-contrast-theme/package.json b/packages/canvas-high-contrast-theme/package.json index 717d41faf5..7761221383 100644 --- a/packages/canvas-high-contrast-theme/package.json +++ b/packages/canvas-high-contrast-theme/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/canvas-high-contrast-theme", "version": "11.6.0", + "type": "module", "description": "A high contrast theme for Canvas LMS made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -37,10 +37,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/canvas-theme/babel.config.js b/packages/canvas-theme/babel.config.cjs similarity index 100% rename from packages/canvas-theme/babel.config.js rename to packages/canvas-theme/babel.config.cjs diff --git a/packages/canvas-theme/package.json b/packages/canvas-theme/package.json index 1bc0822251..0a1065ec0a 100644 --- a/packages/canvas-theme/package.json +++ b/packages/canvas-theme/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/canvas-theme", "version": "11.6.0", + "type": "module", "description": "A theme for Canvas LMS made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -37,10 +37,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/console/babel.config.js b/packages/console/babel.config.cjs similarity index 100% rename from packages/console/babel.config.js rename to packages/console/babel.config.cjs diff --git a/packages/console/package.json b/packages/console/package.json index b664c10fb1..96fc234e3c 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/console", "version": "11.6.0", + "type": "module", "description": "A babel macro made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -35,10 +35,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/debounce/babel.config.js b/packages/debounce/babel.config.cjs similarity index 100% rename from packages/debounce/babel.config.js rename to packages/debounce/babel.config.cjs diff --git a/packages/debounce/package.json b/packages/debounce/package.json index c2163b6bb2..c3ada4b1d4 100644 --- a/packages/debounce/package.json +++ b/packages/debounce/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/debounce", "version": "11.6.0", + "type": "module", "description": "A debounce util made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -35,10 +35,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/emotion/babel.config.js b/packages/emotion/babel.config.cjs similarity index 100% rename from packages/emotion/babel.config.js rename to packages/emotion/babel.config.cjs diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 651a8d87b1..e90c7c4ad4 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/emotion", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json ", "ts:check": "tsc -p tsconfig.build.json" @@ -53,10 +53,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-a11y-content/babel.config.js b/packages/ui-a11y-content/babel.config.cjs similarity index 100% rename from packages/ui-a11y-content/babel.config.js rename to packages/ui-a11y-content/babel.config.cjs diff --git a/packages/ui-a11y-content/package.json b/packages/ui-a11y-content/package.json index b1fd95aa9e..3a18cbb248 100644 --- a/packages/ui-a11y-content/package.json +++ b/packages/ui-a11y-content/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-a11y-content", "version": "11.6.0", + "type": "module", "description": "Utility components that enhance the user experience of those that navigate the web with a screen reader or keyboard.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -46,10 +46,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-a11y-utils/babel.config.js b/packages/ui-a11y-utils/babel.config.cjs similarity index 100% rename from packages/ui-a11y-utils/babel.config.js rename to packages/ui-a11y-utils/babel.config.cjs diff --git a/packages/ui-a11y-utils/package.json b/packages/ui-a11y-utils/package.json index 58cea4751d..60c0b504b6 100644 --- a/packages/ui-a11y-utils/package.json +++ b/packages/ui-a11y-utils/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-a11y-utils", "version": "11.6.0", + "type": "module", "description": "A collection of utilities for managing focus and screen reader behavior", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -49,10 +49,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-alerts/babel.config.js b/packages/ui-alerts/babel.config.cjs similarity index 100% rename from packages/ui-alerts/babel.config.js rename to packages/ui-alerts/babel.config.cjs diff --git a/packages/ui-alerts/package.json b/packages/ui-alerts/package.json index 83083470b7..e4b75da3a7 100644 --- a/packages/ui-alerts/package.json +++ b/packages/ui-alerts/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-alerts", "version": "11.6.0", + "type": "module", "description": "An alert component", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -58,10 +58,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-avatar/babel.config.js b/packages/ui-avatar/babel.config.cjs similarity index 100% rename from packages/ui-avatar/babel.config.js rename to packages/ui-avatar/babel.config.cjs diff --git a/packages/ui-avatar/package.json b/packages/ui-avatar/package.json index 9f30e7fbf3..5caf8121bb 100644 --- a/packages/ui-avatar/package.json +++ b/packages/ui-avatar/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-avatar", "version": "11.6.0", + "type": "module", "description": "An image or letters that represents a user.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -50,10 +50,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-axe-check/babel.config.js b/packages/ui-axe-check/babel.config.cjs similarity index 100% rename from packages/ui-axe-check/babel.config.js rename to packages/ui-axe-check/babel.config.cjs diff --git a/packages/ui-axe-check/package.json b/packages/ui-axe-check/package.json index 32b0a1b4cc..c20e1c4885 100644 --- a/packages/ui-axe-check/package.json +++ b/packages/ui-axe-check/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-axe-check", "version": "11.6.0", + "type": "module", "description": "A UI a11y testing library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -35,10 +35,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-badge/babel.config.js b/packages/ui-badge/babel.config.cjs similarity index 100% rename from packages/ui-badge/babel.config.js rename to packages/ui-badge/babel.config.cjs diff --git a/packages/ui-badge/package.json b/packages/ui-badge/package.json index 76c9baf064..08297ab7bb 100644 --- a/packages/ui-badge/package.json +++ b/packages/ui-badge/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-badge", "version": "11.6.0", + "type": "module", "description": "A badge component", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -50,10 +50,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-billboard/babel.config.js b/packages/ui-billboard/babel.config.cjs similarity index 100% rename from packages/ui-billboard/babel.config.js rename to packages/ui-billboard/babel.config.cjs diff --git a/packages/ui-billboard/package.json b/packages/ui-billboard/package.json index 2eef0cf5a5..433cb2d3fb 100644 --- a/packages/ui-billboard/package.json +++ b/packages/ui-billboard/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-billboard", "version": "11.6.0", + "type": "module", "description": "A UI component to display empty states, 404 pages, redirects, etc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -53,10 +53,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-breadcrumb/babel.config.js b/packages/ui-breadcrumb/babel.config.cjs similarity index 100% rename from packages/ui-breadcrumb/babel.config.js rename to packages/ui-breadcrumb/babel.config.cjs diff --git a/packages/ui-breadcrumb/package.json b/packages/ui-breadcrumb/package.json index b6956a0e67..4135cc61e4 100644 --- a/packages/ui-breadcrumb/package.json +++ b/packages/ui-breadcrumb/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-breadcrumb", "version": "11.6.0", + "type": "module", "description": "A breadcrumb component", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -54,10 +54,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-buttons/babel.config.js b/packages/ui-buttons/babel.config.cjs similarity index 100% rename from packages/ui-buttons/babel.config.js rename to packages/ui-buttons/babel.config.cjs diff --git a/packages/ui-buttons/package.json b/packages/ui-buttons/package.json index d76f81da56..5afc232069 100644 --- a/packages/ui-buttons/package.json +++ b/packages/ui-buttons/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-buttons", "version": "11.6.0", + "type": "module", "description": "Accessible button components", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -59,10 +59,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-byline/babel.config.js b/packages/ui-byline/babel.config.cjs similarity index 100% rename from packages/ui-byline/babel.config.js rename to packages/ui-byline/babel.config.cjs diff --git a/packages/ui-byline/package.json b/packages/ui-byline/package.json index 828a432a28..b669acb455 100644 --- a/packages/ui-byline/package.json +++ b/packages/ui-byline/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-byline", "version": "11.6.0", + "type": "module", "description": "A Byline component.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -49,10 +49,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-calendar/babel.config.js b/packages/ui-calendar/babel.config.cjs similarity index 100% rename from packages/ui-calendar/babel.config.js rename to packages/ui-calendar/babel.config.cjs diff --git a/packages/ui-calendar/package.json b/packages/ui-calendar/package.json index 3f5ca43d69..a3256f5896 100644 --- a/packages/ui-calendar/package.json +++ b/packages/ui-calendar/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-calendar", "version": "11.6.0", + "type": "module", "description": "A calendar component.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -57,10 +57,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-checkbox/babel.config.js b/packages/ui-checkbox/babel.config.cjs similarity index 100% rename from packages/ui-checkbox/babel.config.js rename to packages/ui-checkbox/babel.config.cjs diff --git a/packages/ui-checkbox/package.json b/packages/ui-checkbox/package.json index 2fa0554c19..6fa87f0289 100644 --- a/packages/ui-checkbox/package.json +++ b/packages/ui-checkbox/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-checkbox", "version": "11.6.0", + "type": "module", "description": " styled HTML input type='checkbox' component.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -58,10 +58,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-color-picker/babel.config.js b/packages/ui-color-picker/babel.config.cjs similarity index 100% rename from packages/ui-color-picker/babel.config.js rename to packages/ui-color-picker/babel.config.cjs diff --git a/packages/ui-color-picker/package.json b/packages/ui-color-picker/package.json index 528be760ee..8f9e751aca 100644 --- a/packages/ui-color-picker/package.json +++ b/packages/ui-color-picker/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-color-picker", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -65,10 +65,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-color-utils/babel.config.js b/packages/ui-color-utils/babel.config.cjs similarity index 100% rename from packages/ui-color-utils/babel.config.js rename to packages/ui-color-utils/babel.config.cjs diff --git a/packages/ui-color-utils/package.json b/packages/ui-color-utils/package.json index 03c52b29bc..4e2bca3a25 100644 --- a/packages/ui-color-utils/package.json +++ b/packages/ui-color-utils/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-color-utils", "version": "11.6.0", + "type": "module", "description": "A color utility library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -37,10 +37,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-date-input/babel.config.js b/packages/ui-date-input/babel.config.cjs similarity index 100% rename from packages/ui-date-input/babel.config.js rename to packages/ui-date-input/babel.config.cjs diff --git a/packages/ui-date-input/package.json b/packages/ui-date-input/package.json index de956c7d61..47a917ee04 100644 --- a/packages/ui-date-input/package.json +++ b/packages/ui-date-input/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-date-input", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -58,10 +58,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-date-time-input/babel.config.js b/packages/ui-date-time-input/babel.config.cjs similarity index 100% rename from packages/ui-date-time-input/babel.config.js rename to packages/ui-date-time-input/babel.config.cjs diff --git a/packages/ui-date-time-input/package.json b/packages/ui-date-time-input/package.json index 197a6bea7b..fb420a0c89 100644 --- a/packages/ui-date-time-input/package.json +++ b/packages/ui-date-time-input/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-date-time-input", "version": "11.6.0", + "type": "module", "description": "A UI component that allows to select date and time.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -55,10 +55,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-decorator/babel.config.js b/packages/ui-decorator/babel.config.cjs similarity index 100% rename from packages/ui-decorator/babel.config.js rename to packages/ui-decorator/babel.config.cjs diff --git a/packages/ui-decorator/package.json b/packages/ui-decorator/package.json index e8f70abecc..47944cb726 100644 --- a/packages/ui-decorator/package.json +++ b/packages/ui-decorator/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-decorator", "version": "11.6.0", + "type": "module", "description": "A utility to wrap (decorates) a React component class adding functionality.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -34,10 +34,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-dialog/babel.config.js b/packages/ui-dialog/babel.config.cjs similarity index 100% rename from packages/ui-dialog/babel.config.js rename to packages/ui-dialog/babel.config.cjs diff --git a/packages/ui-dialog/package.json b/packages/ui-dialog/package.json index 8419384902..211273d547 100644 --- a/packages/ui-dialog/package.json +++ b/packages/ui-dialog/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-dialog", "version": "11.6.0", + "type": "module", "description": "A utility component for managing keyboard accessibility and screen reader behavior", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -48,10 +48,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-dom-utils/babel.config.js b/packages/ui-dom-utils/babel.config.cjs similarity index 100% rename from packages/ui-dom-utils/babel.config.js rename to packages/ui-dom-utils/babel.config.cjs diff --git a/packages/ui-dom-utils/package.json b/packages/ui-dom-utils/package.json index 879b4c78f2..c7a0172f13 100644 --- a/packages/ui-dom-utils/package.json +++ b/packages/ui-dom-utils/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-dom-utils", "version": "11.6.0", + "type": "module", "description": "A DOM utility library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -44,10 +44,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-drawer-layout/babel.config.js b/packages/ui-drawer-layout/babel.config.cjs similarity index 100% rename from packages/ui-drawer-layout/babel.config.js rename to packages/ui-drawer-layout/babel.config.cjs diff --git a/packages/ui-drawer-layout/package.json b/packages/ui-drawer-layout/package.json index 331f31d1d0..8e8524545d 100644 --- a/packages/ui-drawer-layout/package.json +++ b/packages/ui-drawer-layout/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-drawer-layout", "version": "11.6.0", + "type": "module", "description": "A main-content-plus-tray layout component", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -58,10 +58,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-drilldown/babel.config.js b/packages/ui-drilldown/babel.config.cjs similarity index 100% rename from packages/ui-drilldown/babel.config.js rename to packages/ui-drilldown/babel.config.cjs diff --git a/packages/ui-drilldown/package.json b/packages/ui-drilldown/package.json index 1f979f1d1a..7f6c689789 100644 --- a/packages/ui-drilldown/package.json +++ b/packages/ui-drilldown/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-drilldown", "version": "11.6.0", + "type": "module", "description": "A drilldown menu component", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -59,10 +59,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-editable/babel.config.js b/packages/ui-editable/babel.config.cjs similarity index 100% rename from packages/ui-editable/babel.config.js rename to packages/ui-editable/babel.config.cjs diff --git a/packages/ui-editable/package.json b/packages/ui-editable/package.json index 5f27e60ded..22fbd74a8c 100644 --- a/packages/ui-editable/package.json +++ b/packages/ui-editable/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-editable", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -56,10 +56,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-expandable/babel.config.js b/packages/ui-expandable/babel.config.cjs similarity index 100% rename from packages/ui-expandable/babel.config.js rename to packages/ui-expandable/babel.config.cjs diff --git a/packages/ui-expandable/package.json b/packages/ui-expandable/package.json index 37c5ceaccd..85cfc8a792 100644 --- a/packages/ui-expandable/package.json +++ b/packages/ui-expandable/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-expandable", "version": "11.6.0", + "type": "module", "description": "A utility component for show/hide functionality", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -49,10 +49,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-file-drop/babel.config.js b/packages/ui-file-drop/babel.config.cjs similarity index 100% rename from packages/ui-file-drop/babel.config.js rename to packages/ui-file-drop/babel.config.cjs diff --git a/packages/ui-file-drop/package.json b/packages/ui-file-drop/package.json index f5e0b39e3a..3756486590 100644 --- a/packages/ui-file-drop/package.json +++ b/packages/ui-file-drop/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-file-drop", "version": "11.6.0", + "type": "module", "description": "A flexible facade for an HTML file input", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -54,10 +54,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-flex/babel.config.js b/packages/ui-flex/babel.config.cjs similarity index 100% rename from packages/ui-flex/babel.config.js rename to packages/ui-flex/babel.config.cjs diff --git a/packages/ui-flex/package.json b/packages/ui-flex/package.json index d576536408..b267cc7b59 100644 --- a/packages/ui-flex/package.json +++ b/packages/ui-flex/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-flex", "version": "11.6.0", + "type": "module", "description": "A component that makes it easy to align content using flexbox CSS", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -49,10 +49,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-focusable/babel.config.js b/packages/ui-focusable/babel.config.cjs similarity index 100% rename from packages/ui-focusable/babel.config.js rename to packages/ui-focusable/babel.config.cjs diff --git a/packages/ui-focusable/package.json b/packages/ui-focusable/package.json index 20e03c1c4e..59beaca82f 100644 --- a/packages/ui-focusable/package.json +++ b/packages/ui-focusable/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-focusable", "version": "11.6.0", + "type": "module", "description": "A utility used to identify when an element receives focus.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -49,10 +49,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-form-field/babel.config.js b/packages/ui-form-field/babel.config.cjs similarity index 100% rename from packages/ui-form-field/babel.config.js rename to packages/ui-form-field/babel.config.cjs diff --git a/packages/ui-form-field/package.json b/packages/ui-form-field/package.json index 43bbe77665..57e302c4fb 100644 --- a/packages/ui-form-field/package.json +++ b/packages/ui-form-field/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-form-field", "version": "11.6.0", + "type": "module", "description": "Form layout components.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -53,10 +53,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-grid/babel.config.js b/packages/ui-grid/babel.config.cjs similarity index 100% rename from packages/ui-grid/babel.config.js rename to packages/ui-grid/babel.config.cjs diff --git a/packages/ui-grid/package.json b/packages/ui-grid/package.json index a1877d137e..8a866fed42 100644 --- a/packages/ui-grid/package.json +++ b/packages/ui-grid/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-grid", "version": "11.6.0", + "type": "module", "description": "A Grid component.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -50,10 +50,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-heading/babel.config.js b/packages/ui-heading/babel.config.cjs similarity index 100% rename from packages/ui-heading/babel.config.js rename to packages/ui-heading/babel.config.cjs diff --git a/packages/ui-heading/package.json b/packages/ui-heading/package.json index 1c54f204b5..8feb365368 100644 --- a/packages/ui-heading/package.json +++ b/packages/ui-heading/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-heading", "version": "11.6.0", + "type": "module", "description": "A component for creating typographic headings", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -50,10 +50,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-i18n/babel.config.js b/packages/ui-i18n/babel.config.cjs similarity index 100% rename from packages/ui-i18n/babel.config.js rename to packages/ui-i18n/babel.config.cjs diff --git a/packages/ui-i18n/package.json b/packages/ui-i18n/package.json index 3757acb4db..d417095621 100644 --- a/packages/ui-i18n/package.json +++ b/packages/ui-i18n/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-i18n", "version": "11.6.0", + "type": "module", "description": "Helper components and utilities for internationalization.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -51,10 +51,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-icons/package.json b/packages/ui-icons/package.json index 4e2c0f3d44..90b0cf9a47 100644 --- a/packages/ui-icons/package.json +++ b/packages/ui-icons/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-icons", "version": "11.6.0", + "type": "module", "description": "Icon set for Instructure, Inc. products", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -17,7 +17,7 @@ "prepare-build": "pnpm run build-icons", "build-icons": "pnpm exec ui-scripts build-icons --skipOptimization --config icons.config.cjs", "build-icons:optimize": "pnpm exec ui-scripts build-icons --svgoConfig svgo.config.cjs --config icons.config.cjs", - "build": "ui-scripts build __build__ --copy-files --modules es,cjs", + "build": "ui-scripts build __build__ --copy-files", "export": "pnpm run build-icons:optimize && pnpm run build:types", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -41,10 +41,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-img/babel.config.js b/packages/ui-img/babel.config.cjs similarity index 100% rename from packages/ui-img/babel.config.js rename to packages/ui-img/babel.config.cjs diff --git a/packages/ui-img/package.json b/packages/ui-img/package.json index 8dd32a9ea8..9805576aa6 100644 --- a/packages/ui-img/package.json +++ b/packages/ui-img/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-img", "version": "11.6.0", + "type": "module", "description": "An accessible image component.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -50,10 +50,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-instructure/babel.config.js b/packages/ui-instructure/babel.config.cjs similarity index 100% rename from packages/ui-instructure/babel.config.js rename to packages/ui-instructure/babel.config.cjs diff --git a/packages/ui-instructure/package.json b/packages/ui-instructure/package.json index 54004cbd72..ab2b8aa1eb 100644 --- a/packages/ui-instructure/package.json +++ b/packages/ui-instructure/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-instructure", "version": "11.6.0", + "type": "module", "description": "Collection of specific components for Instructure products", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -56,10 +56,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-link/babel.config.js b/packages/ui-link/babel.config.cjs similarity index 100% rename from packages/ui-link/babel.config.js rename to packages/ui-link/babel.config.cjs diff --git a/packages/ui-link/package.json b/packages/ui-link/package.json index 368c45f95a..28a7de3bb9 100644 --- a/packages/ui-link/package.json +++ b/packages/ui-link/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-link", "version": "11.6.0", + "type": "module", "description": "A component for creating links", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -55,10 +55,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-list/babel.config.js b/packages/ui-list/babel.config.cjs similarity index 100% rename from packages/ui-list/babel.config.js rename to packages/ui-list/babel.config.cjs diff --git a/packages/ui-list/package.json b/packages/ui-list/package.json index 5ad373f949..9ee9cb3a1d 100644 --- a/packages/ui-list/package.json +++ b/packages/ui-list/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-list", "version": "11.6.0", + "type": "module", "description": "Components for displaying vertical or horizontal lists.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -50,10 +50,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-menu/babel.config.js b/packages/ui-menu/babel.config.cjs similarity index 100% rename from packages/ui-menu/babel.config.js rename to packages/ui-menu/babel.config.cjs diff --git a/packages/ui-menu/package.json b/packages/ui-menu/package.json index d3407d0877..b1f18e3d09 100644 --- a/packages/ui-menu/package.json +++ b/packages/ui-menu/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-menu", "version": "11.6.0", + "type": "module", "description": "A dropdown menu component", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -58,10 +58,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-metric/babel.config.js b/packages/ui-metric/babel.config.cjs similarity index 100% rename from packages/ui-metric/babel.config.js rename to packages/ui-metric/babel.config.cjs diff --git a/packages/ui-metric/package.json b/packages/ui-metric/package.json index 85d730c1ed..69c34e3f09 100644 --- a/packages/ui-metric/package.json +++ b/packages/ui-metric/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-metric", "version": "11.6.0", + "type": "module", "description": "A UI component for displaying Metrics", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -49,10 +49,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-modal/babel.config.js b/packages/ui-modal/babel.config.cjs similarity index 100% rename from packages/ui-modal/babel.config.js rename to packages/ui-modal/babel.config.cjs diff --git a/packages/ui-modal/package.json b/packages/ui-modal/package.json index cb1410dc7f..9b7c124e1e 100644 --- a/packages/ui-modal/package.json +++ b/packages/ui-modal/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-modal", "version": "11.6.0", + "type": "module", "description": "A component for displaying content in a dialog overlay", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -58,10 +58,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-motion/babel.config.js b/packages/ui-motion/babel.config.cjs similarity index 100% rename from packages/ui-motion/babel.config.js rename to packages/ui-motion/babel.config.cjs diff --git a/packages/ui-motion/package.json b/packages/ui-motion/package.json index f84f6d765a..6217b32252 100644 --- a/packages/ui-motion/package.json +++ b/packages/ui-motion/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-motion", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -48,10 +48,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-navigation/babel.config.js b/packages/ui-navigation/babel.config.cjs similarity index 100% rename from packages/ui-navigation/babel.config.js rename to packages/ui-navigation/babel.config.cjs diff --git a/packages/ui-navigation/package.json b/packages/ui-navigation/package.json index bc6a744435..8d778b3d32 100644 --- a/packages/ui-navigation/package.json +++ b/packages/ui-navigation/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-navigation", "version": "11.6.0", + "type": "module", "description": "Main and application level navigational components", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -63,10 +63,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-number-input/babel.config.js b/packages/ui-number-input/babel.config.cjs similarity index 100% rename from packages/ui-number-input/babel.config.js rename to packages/ui-number-input/babel.config.cjs diff --git a/packages/ui-number-input/package.json b/packages/ui-number-input/package.json index f31c554015..e2c784e4fc 100644 --- a/packages/ui-number-input/package.json +++ b/packages/ui-number-input/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-number-input", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -54,10 +54,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-options/babel.config.js b/packages/ui-options/babel.config.cjs similarity index 100% rename from packages/ui-options/babel.config.js rename to packages/ui-options/babel.config.cjs diff --git a/packages/ui-options/package.json b/packages/ui-options/package.json index 98127ee237..b837e73383 100644 --- a/packages/ui-options/package.json +++ b/packages/ui-options/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-options", "version": "11.6.0", + "type": "module", "description": "A view-only component for composing interactive lists and menus.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -52,10 +52,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-overlays/babel.config.js b/packages/ui-overlays/babel.config.cjs similarity index 100% rename from packages/ui-overlays/babel.config.js rename to packages/ui-overlays/babel.config.cjs diff --git a/packages/ui-overlays/package.json b/packages/ui-overlays/package.json index 4edc8bd6ef..52977b55d3 100644 --- a/packages/ui-overlays/package.json +++ b/packages/ui-overlays/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-overlays", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -63,10 +63,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-pages/babel.config.js b/packages/ui-pages/babel.config.cjs similarity index 100% rename from packages/ui-pages/babel.config.js rename to packages/ui-pages/babel.config.cjs diff --git a/packages/ui-pages/package.json b/packages/ui-pages/package.json index e7bef521dd..dc44e961ef 100644 --- a/packages/ui-pages/package.json +++ b/packages/ui-pages/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-pages", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -52,10 +52,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-pagination/babel.config.js b/packages/ui-pagination/babel.config.cjs similarity index 100% rename from packages/ui-pagination/babel.config.js rename to packages/ui-pagination/babel.config.cjs diff --git a/packages/ui-pagination/package.json b/packages/ui-pagination/package.json index 2a122662f3..cf3f533f75 100644 --- a/packages/ui-pagination/package.json +++ b/packages/ui-pagination/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-pagination", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -59,10 +59,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-pill/babel.config.js b/packages/ui-pill/babel.config.cjs similarity index 100% rename from packages/ui-pill/babel.config.js rename to packages/ui-pill/babel.config.cjs diff --git a/packages/ui-pill/package.json b/packages/ui-pill/package.json index 6a90b0cecc..f54ac75975 100644 --- a/packages/ui-pill/package.json +++ b/packages/ui-pill/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-pill", "version": "11.6.0", + "type": "module", "description": "A UI component to communicate concise status.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -55,10 +55,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-popover/babel.config.js b/packages/ui-popover/babel.config.cjs similarity index 100% rename from packages/ui-popover/babel.config.js rename to packages/ui-popover/babel.config.cjs diff --git a/packages/ui-popover/package.json b/packages/ui-popover/package.json index 6873fbb204..41e6cb6116 100644 --- a/packages/ui-popover/package.json +++ b/packages/ui-popover/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-popover", "version": "11.6.0", + "type": "module", "description": "A component for hiding or showing content based on user interaction.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -59,10 +59,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-portal/babel.config.js b/packages/ui-portal/babel.config.cjs similarity index 100% rename from packages/ui-portal/babel.config.js rename to packages/ui-portal/babel.config.cjs diff --git a/packages/ui-portal/package.json b/packages/ui-portal/package.json index c0cc1f2a03..608d50a306 100644 --- a/packages/ui-portal/package.json +++ b/packages/ui-portal/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-portal", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -49,10 +49,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-position/babel.config.js b/packages/ui-position/babel.config.cjs similarity index 100% rename from packages/ui-position/babel.config.js rename to packages/ui-position/babel.config.cjs diff --git a/packages/ui-position/package.json b/packages/ui-position/package.json index 3023ef859b..940a468c45 100644 --- a/packages/ui-position/package.json +++ b/packages/ui-position/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-position", "version": "11.6.0", + "type": "module", "description": "A component for positioning content with respect to a designated target.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -52,10 +52,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-progress/babel.config.js b/packages/ui-progress/babel.config.cjs similarity index 100% rename from packages/ui-progress/babel.config.js rename to packages/ui-progress/babel.config.cjs diff --git a/packages/ui-progress/package.json b/packages/ui-progress/package.json index 535cc1e724..009db49846 100644 --- a/packages/ui-progress/package.json +++ b/packages/ui-progress/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-progress", "version": "11.6.0", + "type": "module", "description": "Styled HTML elements for showing completion of a task", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -51,10 +51,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-radio-input/babel.config.js b/packages/ui-radio-input/babel.config.cjs similarity index 100% rename from packages/ui-radio-input/babel.config.js rename to packages/ui-radio-input/babel.config.cjs diff --git a/packages/ui-radio-input/package.json b/packages/ui-radio-input/package.json index 74c5356bc2..b68f402684 100644 --- a/packages/ui-radio-input/package.json +++ b/packages/ui-radio-input/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-radio-input", "version": "11.6.0", + "type": "module", "description": "A styled HTML input type='radio' element", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -52,10 +52,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-range-input/babel.config.js b/packages/ui-range-input/babel.config.cjs similarity index 100% rename from packages/ui-range-input/babel.config.js rename to packages/ui-range-input/babel.config.cjs diff --git a/packages/ui-range-input/package.json b/packages/ui-range-input/package.json index 44158a2c94..1c0ab4c1f8 100644 --- a/packages/ui-range-input/package.json +++ b/packages/ui-range-input/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-range-input", "version": "11.6.0", + "type": "module", "description": "A styled HTML range input", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -55,10 +55,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-rating/babel.config.js b/packages/ui-rating/babel.config.cjs similarity index 100% rename from packages/ui-rating/babel.config.js rename to packages/ui-rating/babel.config.cjs diff --git a/packages/ui-rating/package.json b/packages/ui-rating/package.json index 421ef3069f..522b939a96 100644 --- a/packages/ui-rating/package.json +++ b/packages/ui-rating/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-rating", "version": "11.6.0", + "type": "module", "description": "A static rating component", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -53,10 +53,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-react-utils/babel.config.js b/packages/ui-react-utils/babel.config.cjs similarity index 100% rename from packages/ui-react-utils/babel.config.js rename to packages/ui-react-utils/babel.config.cjs diff --git a/packages/ui-react-utils/package.json b/packages/ui-react-utils/package.json index c9ea09fb5b..faf6628fda 100644 --- a/packages/ui-react-utils/package.json +++ b/packages/ui-react-utils/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-react-utils", "version": "11.6.0", + "type": "module", "description": "A React utility library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -49,10 +49,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-responsive/babel.config.js b/packages/ui-responsive/babel.config.cjs similarity index 100% rename from packages/ui-responsive/babel.config.js rename to packages/ui-responsive/babel.config.cjs diff --git a/packages/ui-responsive/package.json b/packages/ui-responsive/package.json index 50d15a2c3f..cb966ca395 100644 --- a/packages/ui-responsive/package.json +++ b/packages/ui-responsive/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-responsive", "version": "11.6.0", + "type": "module", "description": "A component that allows for rendering a component differently based on either the element or the viewport size", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -49,10 +49,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-scripts/lib/build/generate-all-tokens.js b/packages/ui-scripts/lib/build/generate-all-tokens.js index 592af75cec..5dfe66bd68 100644 --- a/packages/ui-scripts/lib/build/generate-all-tokens.js +++ b/packages/ui-scripts/lib/build/generate-all-tokens.js @@ -23,45 +23,43 @@ */ import path from 'path' +import { pathToFileURL } from 'url' import { error } from '@instructure/command-utils' import { handleMapJSTokensToSource } from '../utils/handle-map-js-tokens-to-source.js' import { handleGenerateTokens } from '../utils/handle-generate-tokens.js' -import { createRequire } from 'node:module' - -const require = createRequire(import.meta.url) const tokenScriptsConfig = [ { themeKey: 'canvas', - sourceTokens: '@instructure/ui-themes/lib/themes/canvas', + sourceTokens: '@instructure/ui-themes/es/themes/canvas', outputPackage: '@instructure/ui-theme-tokens', groupOutput: true }, { themeKey: 'canvas', - sourceTokens: '@instructure/ui-themes/lib/themes/canvas', + sourceTokens: '@instructure/ui-themes/es/themes/canvas', outputPackage: '@instructure/canvas-theme' }, { themeKey: 'canvas', - sourceTokens: '@instructure/ui-themes/lib/themes/canvas', + sourceTokens: '@instructure/ui-themes/es/themes/canvas', outputPackage: '@instructure/ui-themes', groupOutput: true }, { themeKey: 'canvas-high-contrast', - sourceTokens: '@instructure/ui-themes/lib/themes/canvasHighContrast', + sourceTokens: '@instructure/ui-themes/es/themes/canvasHighContrast', outputPackage: '@instructure/ui-theme-tokens', groupOutput: true }, { themeKey: 'canvas-high-contrast', - sourceTokens: '@instructure/ui-themes/lib/themes/canvasHighContrast', + sourceTokens: '@instructure/ui-themes/es/themes/canvasHighContrast', outputPackage: '@instructure/canvas-high-contrast-theme' }, { themeKey: 'canvas-high-contrast', - sourceTokens: '@instructure/ui-themes/lib/themes/canvasHighContrast', + sourceTokens: '@instructure/ui-themes/es/themes/canvasHighContrast', outputPackage: '@instructure/ui-theme-tokens', groupOutput: true } @@ -100,7 +98,10 @@ export default { error(`Failed to resolve ${sourceTokens}: ${err.message}`) process.exit(1) } - const tokens = require(resolvedSource).default + // es/ output ships as ESM; load via dynamic import. Need /index.js + // since Node ESM doesn't auto-resolve directories. + const indexPath = path.join(resolvedSource, 'index.js') + const tokens = (await import(pathToFileURL(indexPath).href)).default if (Object.keys(tokens).indexOf('colors') < 0) { error('Invalid token source') diff --git a/packages/ui-select/babel.config.js b/packages/ui-select/babel.config.cjs similarity index 100% rename from packages/ui-select/babel.config.js rename to packages/ui-select/babel.config.cjs diff --git a/packages/ui-select/package.json b/packages/ui-select/package.json index 0ed7474bf5..76cdc48a7e 100644 --- a/packages/ui-select/package.json +++ b/packages/ui-select/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-select", "version": "11.6.0", + "type": "module", "description": "A component for select and autocomplete behavior.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -60,10 +60,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-selectable/babel.config.js b/packages/ui-selectable/babel.config.cjs similarity index 100% rename from packages/ui-selectable/babel.config.js rename to packages/ui-selectable/babel.config.cjs diff --git a/packages/ui-selectable/package.json b/packages/ui-selectable/package.json index 5bc272fdbd..88d2defd46 100644 --- a/packages/ui-selectable/package.json +++ b/packages/ui-selectable/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-selectable", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -49,10 +49,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-side-nav-bar/babel.config.js b/packages/ui-side-nav-bar/babel.config.cjs similarity index 100% rename from packages/ui-side-nav-bar/babel.config.js rename to packages/ui-side-nav-bar/babel.config.cjs diff --git a/packages/ui-side-nav-bar/package.json b/packages/ui-side-nav-bar/package.json index 7c92822d53..750b545c99 100644 --- a/packages/ui-side-nav-bar/package.json +++ b/packages/ui-side-nav-bar/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-side-nav-bar", "version": "11.6.0", + "type": "module", "description": "Main and application level navigational components", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -55,10 +55,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-simple-select/babel.config.js b/packages/ui-simple-select/babel.config.cjs similarity index 100% rename from packages/ui-simple-select/babel.config.js rename to packages/ui-simple-select/babel.config.cjs diff --git a/packages/ui-simple-select/package.json b/packages/ui-simple-select/package.json index 6368992211..0d6d08ba03 100644 --- a/packages/ui-simple-select/package.json +++ b/packages/ui-simple-select/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-simple-select", "version": "11.6.0", + "type": "module", "description": "A component for standard select element behavior.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -52,10 +52,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-source-code-editor/babel.config.js b/packages/ui-source-code-editor/babel.config.cjs similarity index 100% rename from packages/ui-source-code-editor/babel.config.js rename to packages/ui-source-code-editor/babel.config.cjs diff --git a/packages/ui-source-code-editor/package.json b/packages/ui-source-code-editor/package.json index b54f837e53..4ee4a76297 100644 --- a/packages/ui-source-code-editor/package.json +++ b/packages/ui-source-code-editor/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-source-code-editor", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -69,10 +69,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-spinner/babel.config.js b/packages/ui-spinner/babel.config.cjs similarity index 100% rename from packages/ui-spinner/babel.config.js rename to packages/ui-spinner/babel.config.cjs diff --git a/packages/ui-spinner/package.json b/packages/ui-spinner/package.json index 9ff1aab2f6..a9cc50d373 100644 --- a/packages/ui-spinner/package.json +++ b/packages/ui-spinner/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-spinner", "version": "11.6.0", + "type": "module", "description": "A spinner/loading component", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -52,10 +52,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-svg-images/babel.config.js b/packages/ui-svg-images/babel.config.cjs similarity index 100% rename from packages/ui-svg-images/babel.config.js rename to packages/ui-svg-images/babel.config.cjs diff --git a/packages/ui-svg-images/package.json b/packages/ui-svg-images/package.json index cd71efbc77..64e433e249 100644 --- a/packages/ui-svg-images/package.json +++ b/packages/ui-svg-images/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-svg-images", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -49,10 +49,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-table/babel.config.js b/packages/ui-table/babel.config.cjs similarity index 100% rename from packages/ui-table/babel.config.js rename to packages/ui-table/babel.config.cjs diff --git a/packages/ui-table/package.json b/packages/ui-table/package.json index bc3b5719f9..8cd24cc72d 100644 --- a/packages/ui-table/package.json +++ b/packages/ui-table/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-table", "version": "11.6.0", + "type": "module", "description": "A styled HTML table component", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -55,10 +55,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-tabs/babel.config.js b/packages/ui-tabs/babel.config.cjs similarity index 100% rename from packages/ui-tabs/babel.config.js rename to packages/ui-tabs/babel.config.cjs diff --git a/packages/ui-tabs/package.json b/packages/ui-tabs/package.json index 7602841697..2e0e4e03ae 100644 --- a/packages/ui-tabs/package.json +++ b/packages/ui-tabs/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-tabs", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -59,10 +59,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-tag/babel.config.js b/packages/ui-tag/babel.config.cjs similarity index 100% rename from packages/ui-tag/babel.config.js rename to packages/ui-tag/babel.config.cjs diff --git a/packages/ui-tag/package.json b/packages/ui-tag/package.json index fb3842e54d..d108fa37b4 100644 --- a/packages/ui-tag/package.json +++ b/packages/ui-tag/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-tag", "version": "11.6.0", + "type": "module", "description": "A tag component", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -53,10 +53,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-text-area/babel.config.js b/packages/ui-text-area/babel.config.cjs similarity index 100% rename from packages/ui-text-area/babel.config.js rename to packages/ui-text-area/babel.config.cjs diff --git a/packages/ui-text-area/package.json b/packages/ui-text-area/package.json index 48c8dc9158..1a06098e70 100644 --- a/packages/ui-text-area/package.json +++ b/packages/ui-text-area/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-text-area", "version": "11.6.0", + "type": "module", "description": "A styled HTML text area component", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -55,10 +55,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-text-input/babel.config.js b/packages/ui-text-input/babel.config.cjs similarity index 100% rename from packages/ui-text-input/babel.config.js rename to packages/ui-text-input/babel.config.cjs diff --git a/packages/ui-text-input/package.json b/packages/ui-text-input/package.json index 9454884454..234d60250b 100644 --- a/packages/ui-text-input/package.json +++ b/packages/ui-text-input/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-text-input", "version": "11.6.0", + "type": "module", "description": "A styled HTML text input component.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -55,10 +55,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-text/babel.config.js b/packages/ui-text/babel.config.cjs similarity index 100% rename from packages/ui-text/babel.config.js rename to packages/ui-text/babel.config.cjs diff --git a/packages/ui-text/package.json b/packages/ui-text/package.json index 1064bd2a93..482ff41196 100644 --- a/packages/ui-text/package.json +++ b/packages/ui-text/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-text", "version": "11.6.0", + "type": "module", "description": "A component for styling textual content", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -48,10 +48,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-theme-tokens/babel.config.js b/packages/ui-theme-tokens/babel.config.cjs similarity index 100% rename from packages/ui-theme-tokens/babel.config.js rename to packages/ui-theme-tokens/babel.config.cjs diff --git a/packages/ui-theme-tokens/package.json b/packages/ui-theme-tokens/package.json index 4c4c60687a..0189822b23 100644 --- a/packages/ui-theme-tokens/package.json +++ b/packages/ui-theme-tokens/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-theme-tokens", "version": "11.6.0", + "type": "module", "description": "Cross-platform theme tokens for Instructure products", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -36,10 +36,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-themes/babel.config.js b/packages/ui-themes/babel.config.cjs similarity index 100% rename from packages/ui-themes/babel.config.js rename to packages/ui-themes/babel.config.cjs diff --git a/packages/ui-themes/package.json b/packages/ui-themes/package.json index 6924554fda..c227c0ac68 100644 --- a/packages/ui-themes/package.json +++ b/packages/ui-themes/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-themes", "version": "11.6.0", + "type": "module", "description": "A library of instructure themes", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -38,10 +38,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-time-select/babel.config.js b/packages/ui-time-select/babel.config.cjs similarity index 100% rename from packages/ui-time-select/babel.config.js rename to packages/ui-time-select/babel.config.cjs diff --git a/packages/ui-time-select/package.json b/packages/ui-time-select/package.json index 922c22d45f..43f39a7512 100644 --- a/packages/ui-time-select/package.json +++ b/packages/ui-time-select/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-time-select", "version": "11.6.0", + "type": "module", "description": "A component for selecting time values.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -51,10 +51,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-toggle-details/babel.config.js b/packages/ui-toggle-details/babel.config.cjs similarity index 100% rename from packages/ui-toggle-details/babel.config.js rename to packages/ui-toggle-details/babel.config.cjs diff --git a/packages/ui-toggle-details/package.json b/packages/ui-toggle-details/package.json index 1c475057cc..0246678e0b 100644 --- a/packages/ui-toggle-details/package.json +++ b/packages/ui-toggle-details/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-toggle-details", "version": "11.6.0", + "type": "module", "description": "A styled toggleable, accordion-like component.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -57,10 +57,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-tooltip/babel.config.js b/packages/ui-tooltip/babel.config.cjs similarity index 100% rename from packages/ui-tooltip/babel.config.js rename to packages/ui-tooltip/babel.config.cjs diff --git a/packages/ui-tooltip/package.json b/packages/ui-tooltip/package.json index 335d30fb8a..d9eac6ad3f 100644 --- a/packages/ui-tooltip/package.json +++ b/packages/ui-tooltip/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-tooltip", "version": "11.6.0", + "type": "module", "description": "A component for showing small text-only overlays on hover/focus.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -52,10 +52,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-top-nav-bar/babel.config.js b/packages/ui-top-nav-bar/babel.config.cjs similarity index 100% rename from packages/ui-top-nav-bar/babel.config.js rename to packages/ui-top-nav-bar/babel.config.cjs diff --git a/packages/ui-top-nav-bar/package.json b/packages/ui-top-nav-bar/package.json index 4ac59de3c3..2caede3d11 100644 --- a/packages/ui-top-nav-bar/package.json +++ b/packages/ui-top-nav-bar/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-top-nav-bar", "version": "11.6.0", + "type": "module", "description": "A UI component library made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -67,10 +67,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-tray/babel.config.js b/packages/ui-tray/babel.config.cjs similarity index 100% rename from packages/ui-tray/babel.config.js rename to packages/ui-tray/babel.config.cjs diff --git a/packages/ui-tray/package.json b/packages/ui-tray/package.json index 30167b77ce..28f58738aa 100644 --- a/packages/ui-tray/package.json +++ b/packages/ui-tray/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-tray", "version": "11.6.0", + "type": "module", "description": "Tray component for secondary/menu content", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -55,10 +55,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-tree-browser/babel.config.js b/packages/ui-tree-browser/babel.config.cjs similarity index 100% rename from packages/ui-tree-browser/babel.config.js rename to packages/ui-tree-browser/babel.config.cjs diff --git a/packages/ui-tree-browser/package.json b/packages/ui-tree-browser/package.json index 376a38b945..e570e1ce9a 100644 --- a/packages/ui-tree-browser/package.json +++ b/packages/ui-tree-browser/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-tree-browser", "version": "11.6.0", + "type": "module", "description": "A component for displaying a hierarchical view of information", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -52,10 +52,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-truncate-list/babel.config.js b/packages/ui-truncate-list/babel.config.cjs similarity index 100% rename from packages/ui-truncate-list/babel.config.js rename to packages/ui-truncate-list/babel.config.cjs diff --git a/packages/ui-truncate-list/package.json b/packages/ui-truncate-list/package.json index 79188d5249..3fcd9454cc 100644 --- a/packages/ui-truncate-list/package.json +++ b/packages/ui-truncate-list/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-truncate-list", "version": "11.6.0", + "type": "module", "description": "A TruncateList component made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -52,10 +52,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-truncate-text/babel.config.js b/packages/ui-truncate-text/babel.config.cjs similarity index 100% rename from packages/ui-truncate-text/babel.config.js rename to packages/ui-truncate-text/babel.config.cjs diff --git a/packages/ui-truncate-text/package.json b/packages/ui-truncate-text/package.json index 513cbb2215..9d66caa38f 100644 --- a/packages/ui-truncate-text/package.json +++ b/packages/ui-truncate-text/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-truncate-text", "version": "11.6.0", + "type": "module", "description": "A TruncateText component made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -55,10 +55,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-utils/babel.config.js b/packages/ui-utils/babel.config.cjs similarity index 100% rename from packages/ui-utils/babel.config.js rename to packages/ui-utils/babel.config.cjs diff --git a/packages/ui-utils/package.json b/packages/ui-utils/package.json index 025c6dc536..f1ad6e877a 100644 --- a/packages/ui-utils/package.json +++ b/packages/ui-utils/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-utils", "version": "11.6.0", + "type": "module", "description": "A collection of utilities for UI components", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -50,10 +50,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui-view/babel.config.js b/packages/ui-view/babel.config.cjs similarity index 100% rename from packages/ui-view/babel.config.js rename to packages/ui-view/babel.config.cjs diff --git a/packages/ui-view/package.json b/packages/ui-view/package.json index c80079139b..66fadf1927 100644 --- a/packages/ui-view/package.json +++ b/packages/ui-view/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-view", "version": "11.6.0", + "type": "module", "description": "A component for basic styles including spacing, sizing, borders, display, positioning, and focus states.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -52,10 +52,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/ui/babel.config.js b/packages/ui/babel.config.cjs similarity index 100% rename from packages/ui/babel.config.js rename to packages/ui/babel.config.cjs diff --git a/packages/ui/package.json b/packages/ui/package.json index a84922d9a8..ddcfdaa96f 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui", "version": "11.6.0", + "type": "module", "description": "A meta package exporting all UI components", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json", "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false" @@ -113,10 +113,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", diff --git a/packages/uid/babel.config.js b/packages/uid/babel.config.cjs similarity index 100% rename from packages/uid/babel.config.js rename to packages/uid/babel.config.cjs diff --git a/packages/uid/package.json b/packages/uid/package.json index 9eb7b2a85b..9f89ef435f 100644 --- a/packages/uid/package.json +++ b/packages/uid/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/uid", "version": "11.6.0", + "type": "module", "description": "A unique (CSS-safe) id generator made by Instructure Inc.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/index.js", - "main": "./lib/index.js", "types": "./types/index.d.ts", "repository": { "type": "git", @@ -16,7 +16,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", + "build": "ui-scripts build", "build:watch": "ui-scripts build --watch", "build:types": "tsc -p tsconfig.build.json" }, @@ -37,10 +37,8 @@ ".": { "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json",