From 742e12194644467857fce6619eba7d8fc272aad2 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 | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-avatar/package.json | 9 ++------ .../{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 | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-billboard/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-breadcrumb/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-buttons/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-byline/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-calendar/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-checkbox/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-color-picker/package.json | 9 ++------ .../{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 | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-date-time-input/package.json | 9 ++------ .../{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 | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-drilldown/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-editable/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-expandable/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-file-drop/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-flex/package.json | 9 ++------ .../{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 | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-grid/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-heading/package.json | 9 ++------ .../{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 | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-instructure/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-link/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-list/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-menu/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-metric/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-modal/package.json | 9 ++------ .../{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 | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-number-input/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-options/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-overlays/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-pages/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-pagination/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-pill/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-popover/package.json | 9 ++------ .../{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 | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-radio-input/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-range-input/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-rating/package.json | 9 ++------ .../{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 | 9 ++------ .../lib/build/generate-all-tokens.js | 21 ++++++++++--------- .../{babel.config.js => babel.config.cjs} | 0 packages/ui-select/package.json | 9 ++------ .../{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 | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-simple-select/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-source-code-editor/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-spinner/package.json | 9 ++------ .../{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 | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-tabs/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-tag/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-text-area/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-text-input/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-text/package.json | 9 ++------ .../{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 | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-toggle-details/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-tooltip/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-top-nav-bar/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-tray/package.json | 9 ++------ .../{babel.config.js => babel.config.cjs} | 0 packages/ui-tree-browser/package.json | 9 ++------ .../{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 | 9 ++------ .../{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 | 9 ++------ .../ui/{babel.config.js => babel.config.cjs} | 0 packages/ui/package.json | 9 ++------ .../uid/{babel.config.js => babel.config.cjs} | 0 packages/uid/package.json | 6 ++---- scripts/bootstrap.js | 6 ------ 175 files changed, 185 insertions(+), 547 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 acb9f10fad..f72c4e87fb 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.7.3", + "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" }, @@ -38,10 +38,8 @@ "src": "./src/index.ts", "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 a1095fb514..5e9c2abf5e 100644 --- a/packages/canvas-theme/package.json +++ b/packages/canvas-theme/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/canvas-theme", "version": "11.7.3", + "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" }, @@ -38,10 +38,8 @@ "src": "./src/index.ts", "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 1d1973f0fa..1409f812d2 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/console", "version": "11.7.3", + "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" @@ -36,10 +36,8 @@ "src": "./src/index.ts", "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 b416efa0b2..d608d8fb3b 100644 --- a/packages/debounce/package.json +++ b/packages/debounce/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/debounce", "version": "11.7.3", + "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" }, @@ -36,10 +36,8 @@ "src": "./src/index.ts", "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 018ff9a12b..1564dca524 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/emotion", "version": "11.7.3", + "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" @@ -55,10 +55,8 @@ "src": "./src/index.ts", "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 f432fc8b63..442b8758b9 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.7.3", + "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" @@ -47,10 +47,8 @@ "src": "./src/index.ts", "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 059f6052f5..32a9d178b1 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.7.3", + "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" }, @@ -50,10 +50,8 @@ "src": "./src/index.ts", "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 dff2e7984b..9822a0fb93 100644 --- a/packages/ui-alerts/package.json +++ b/packages/ui-alerts/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-alerts", "version": "11.7.3", + "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" @@ -55,7 +55,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -64,28 +63,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 97e7875aa8..18a7fa9b82 100644 --- a/packages/ui-avatar/package.json +++ b/packages/ui-avatar/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-avatar", "version": "11.7.3", + "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" @@ -47,7 +47,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -56,28 +55,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 e1e311f4ff..d11608c8ea 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.7.3", + "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" }, @@ -36,10 +36,8 @@ "src": "./src/index.ts", "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 b8c0462e6d..3af5b0f66d 100644 --- a/packages/ui-badge/package.json +++ b/packages/ui-badge/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-badge", "version": "11.7.3", + "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" @@ -47,7 +47,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -56,28 +55,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 5a085f1684..066ff4ed45 100644 --- a/packages/ui-billboard/package.json +++ b/packages/ui-billboard/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-billboard", "version": "11.7.3", + "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" @@ -50,7 +50,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -59,28 +58,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 56b91d8c19..97c4b4f731 100644 --- a/packages/ui-breadcrumb/package.json +++ b/packages/ui-breadcrumb/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-breadcrumb", "version": "11.7.3", + "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" @@ -51,7 +51,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -60,28 +59,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 9ab9439917..5b2ca8bccd 100644 --- a/packages/ui-buttons/package.json +++ b/packages/ui-buttons/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-buttons", "version": "11.7.3", + "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" @@ -56,7 +56,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -65,28 +64,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 44faf75b03..9236f89bb3 100644 --- a/packages/ui-byline/package.json +++ b/packages/ui-byline/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-byline", "version": "11.7.3", + "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" @@ -46,7 +46,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -55,28 +54,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 2654e8cf78..df3974f43c 100644 --- a/packages/ui-calendar/package.json +++ b/packages/ui-calendar/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-calendar", "version": "11.7.3", + "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" @@ -54,7 +54,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -63,28 +62,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 0722509b7b..34ac0a092b 100644 --- a/packages/ui-checkbox/package.json +++ b/packages/ui-checkbox/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-checkbox", "version": "11.7.3", + "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" @@ -55,7 +55,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -64,28 +63,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 dfa34cb443..fda9ab9bfc 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.7.3", + "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" @@ -62,7 +62,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -71,28 +70,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 c5561ed01a..954fc0183d 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.7.3", + "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" }, @@ -38,10 +38,8 @@ "src": "./src/index.ts", "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 bcc0262443..fc64630f4a 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.7.3", + "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,7 +54,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -63,28 +62,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 25f3732144..635f3c7111 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.7.3", + "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" @@ -52,7 +52,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -61,28 +60,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 e0f11bb635..02cc3e1ba9 100644 --- a/packages/ui-decorator/package.json +++ b/packages/ui-decorator/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-decorator", "version": "11.7.3", + "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" }, @@ -35,10 +35,8 @@ "src": "./src/index.ts", "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 9e9c5d7e46..bc7cd8faba 100644 --- a/packages/ui-dialog/package.json +++ b/packages/ui-dialog/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-dialog", "version": "11.7.3", + "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" @@ -49,10 +49,8 @@ "src": "./src/index.ts", "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 2f18fbf7f9..b1856108d2 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.7.3", + "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" }, @@ -45,10 +45,8 @@ "src": "./src/index.ts", "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 473774c42a..791cd772c0 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.7.3", + "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" @@ -55,7 +55,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -64,28 +63,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 c4888025a4..1ecccd3636 100644 --- a/packages/ui-drilldown/package.json +++ b/packages/ui-drilldown/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-drilldown", "version": "11.7.3", + "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" @@ -56,7 +56,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -65,28 +64,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 1f0dbde939..9c0488e3b7 100644 --- a/packages/ui-editable/package.json +++ b/packages/ui-editable/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-editable", "version": "11.7.3", + "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" @@ -53,7 +53,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -62,28 +61,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 94762a0194..2ea40205ce 100644 --- a/packages/ui-expandable/package.json +++ b/packages/ui-expandable/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-expandable", "version": "11.7.3", + "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" @@ -46,7 +46,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -55,28 +54,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./latest": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" } } 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 b3eb8112c1..4461e407c9 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.7.3", + "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" @@ -51,7 +51,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -60,28 +59,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 3c595626cd..ce54bbb142 100644 --- a/packages/ui-flex/package.json +++ b/packages/ui-flex/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-flex", "version": "11.7.3", + "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" @@ -46,7 +46,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -55,28 +54,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 d9afd341a1..968ea52023 100644 --- a/packages/ui-focusable/package.json +++ b/packages/ui-focusable/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-focusable", "version": "11.7.3", + "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" @@ -50,10 +50,8 @@ "src": "./src/index.ts", "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 e7b018b8f4..fad5850b5b 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.7.3", + "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" @@ -50,7 +50,6 @@ "access": "public" }, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -59,28 +58,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 b83cf24ff0..b8031f21eb 100644 --- a/packages/ui-grid/package.json +++ b/packages/ui-grid/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-grid", "version": "11.7.3", + "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" @@ -47,7 +47,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -56,28 +55,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 6cb4cd3b81..ebf74d09b5 100644 --- a/packages/ui-heading/package.json +++ b/packages/ui-heading/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-heading", "version": "11.7.3", + "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" @@ -47,7 +47,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -56,28 +55,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 b22fbcea6a..85195b31c4 100644 --- a/packages/ui-i18n/package.json +++ b/packages/ui-i18n/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-i18n", "version": "11.7.3", + "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" @@ -52,10 +52,8 @@ "src": "./src/index.ts", "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 9ba996ab0b..37f1e1c781 100644 --- a/packages/ui-icons/package.json +++ b/packages/ui-icons/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-icons", "version": "11.7.3", + "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 --modules es,cjs", + "build": "ui-scripts build", "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" @@ -53,10 +53,8 @@ "src": "./src/index.ts", "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" }, - "./lib/*": "./lib/*", "./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 32d0229793..66d8423f58 100644 --- a/packages/ui-img/package.json +++ b/packages/ui-img/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-img", "version": "11.7.3", + "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" @@ -48,7 +48,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -57,28 +56,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 f4636a93cb..e7b908db42 100644 --- a/packages/ui-instructure/package.json +++ b/packages/ui-instructure/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-instructure", "version": "11.7.3", + "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" @@ -53,7 +53,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -62,28 +61,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 fdbfe2f9b9..40c48e5163 100644 --- a/packages/ui-link/package.json +++ b/packages/ui-link/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-link", "version": "11.7.3", + "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" @@ -52,7 +52,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -61,28 +60,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 0c25f0a706..b4c7065ae3 100644 --- a/packages/ui-list/package.json +++ b/packages/ui-list/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-list", "version": "11.7.3", + "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" @@ -47,7 +47,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -56,28 +55,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 4d53ebd546..feeefb080f 100644 --- a/packages/ui-menu/package.json +++ b/packages/ui-menu/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-menu", "version": "11.7.3", + "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" @@ -55,7 +55,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -64,28 +63,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 4f2dff0649..8db9a77258 100644 --- a/packages/ui-metric/package.json +++ b/packages/ui-metric/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-metric", "version": "11.7.3", + "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" @@ -46,7 +46,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -55,28 +54,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 b4705b86a7..4fbcd545fe 100644 --- a/packages/ui-modal/package.json +++ b/packages/ui-modal/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-modal", "version": "11.7.3", + "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" @@ -55,7 +55,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -64,28 +63,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 c080920752..b3fe123cb4 100644 --- a/packages/ui-motion/package.json +++ b/packages/ui-motion/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-motion", "version": "11.7.3", + "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 @@ "src": "./src/index.ts", "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 ac3bcbb78c..04fb6fc814 100644 --- a/packages/ui-navigation/package.json +++ b/packages/ui-navigation/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-navigation", "version": "11.7.3", + "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" @@ -60,7 +60,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -69,28 +68,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 1da2ad396c..5338cfb677 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.7.3", + "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" @@ -51,7 +51,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -60,28 +59,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 9a65cdb97a..4e003248b0 100644 --- a/packages/ui-options/package.json +++ b/packages/ui-options/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-options", "version": "11.7.3", + "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" @@ -49,7 +49,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -58,28 +57,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 56e31197c4..ec98c4a494 100644 --- a/packages/ui-overlays/package.json +++ b/packages/ui-overlays/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-overlays", "version": "11.7.3", + "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" @@ -60,7 +60,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -69,28 +68,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" } } 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 719a302ed5..05fcf3a2c5 100644 --- a/packages/ui-pages/package.json +++ b/packages/ui-pages/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-pages", "version": "11.7.3", + "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,7 +49,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -58,28 +57,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./latest": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" } } 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 bbaeb2e648..27a66df276 100644 --- a/packages/ui-pagination/package.json +++ b/packages/ui-pagination/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-pagination", "version": "11.7.3", + "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" @@ -57,7 +57,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -66,28 +65,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 645b9c4787..983356b708 100644 --- a/packages/ui-pill/package.json +++ b/packages/ui-pill/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-pill", "version": "11.7.3", + "type": "module", "description": "A UI component to communicate concise status.", "author": "Instructure, Inc. Engineering and Product Design", "module": "./es/Pill/11_5/index.js", - "main": "./lib/Pill/11_5/index.js", "types": "./types/Pill/11_5/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,7 +52,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -61,28 +60,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 d81635c06a..686a20d3d8 100644 --- a/packages/ui-popover/package.json +++ b/packages/ui-popover/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-popover", "version": "11.7.3", + "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" @@ -56,7 +56,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -65,28 +64,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 8a631e0edf..c58a213ce1 100644 --- a/packages/ui-portal/package.json +++ b/packages/ui-portal/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-portal", "version": "11.7.3", + "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" @@ -50,10 +50,8 @@ "src": "./src/index.ts", "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 6330029f41..74b9a78832 100644 --- a/packages/ui-position/package.json +++ b/packages/ui-position/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-position", "version": "11.7.3", + "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" @@ -53,10 +53,8 @@ "src": "./src/index.ts", "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 3b545fff2f..db17979ce6 100644 --- a/packages/ui-progress/package.json +++ b/packages/ui-progress/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-progress", "version": "11.7.3", + "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" @@ -48,7 +48,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -57,28 +56,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 e90fb09d85..1d8e758198 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.7.3", + "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" @@ -49,7 +49,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -58,28 +57,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 25dbeb29c6..9d92d7aa72 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.7.3", + "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" @@ -52,7 +52,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -61,28 +60,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 7035361258..ee68f8b626 100644 --- a/packages/ui-rating/package.json +++ b/packages/ui-rating/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-rating", "version": "11.7.3", + "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" @@ -50,7 +50,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -59,28 +58,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 301d980f32..b84a89c094 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.7.3", + "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" }, @@ -50,10 +50,8 @@ "src": "./src/index.ts", "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 1f0e1f1ef4..22423683e5 100644 --- a/packages/ui-responsive/package.json +++ b/packages/ui-responsive/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-responsive", "version": "11.7.3", + "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" @@ -46,7 +46,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -55,28 +54,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./latest": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" } } 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 b1c86931a1..6ce34e2a06 100644 --- a/packages/ui-select/package.json +++ b/packages/ui-select/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-select", "version": "11.7.3", + "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" @@ -57,7 +57,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -66,28 +65,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 d509154730..565cd47c4f 100644 --- a/packages/ui-selectable/package.json +++ b/packages/ui-selectable/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-selectable", "version": "11.7.3", + "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" @@ -50,10 +50,8 @@ "src": "./src/index.ts", "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 2ac5c7a883..87bcf730e2 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.7.3", + "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" @@ -52,7 +52,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -61,28 +60,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 745ed52e16..b3a2b5c686 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.7.3", + "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" @@ -49,7 +49,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -58,28 +57,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 37a9b05c35..c8fa27e8fb 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.7.3", + "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" @@ -66,7 +66,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -75,28 +74,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 9af9f65411..4815ddbc6b 100644 --- a/packages/ui-spinner/package.json +++ b/packages/ui-spinner/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-spinner", "version": "11.7.3", + "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" @@ -49,7 +49,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -58,28 +57,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 7484c02025..9bf0df02c4 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.7.3", + "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" @@ -50,10 +50,8 @@ "src": "./src/index.ts", "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 cbe43ee03f..6f57c965e2 100644 --- a/packages/ui-table/package.json +++ b/packages/ui-table/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-table", "version": "11.7.3", + "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" @@ -52,7 +52,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -61,28 +60,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 9789245fca..71ac13f861 100644 --- a/packages/ui-tabs/package.json +++ b/packages/ui-tabs/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-tabs", "version": "11.7.3", + "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,7 +56,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -65,28 +64,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 e6bb1b058e..95c19f5715 100644 --- a/packages/ui-tag/package.json +++ b/packages/ui-tag/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-tag", "version": "11.7.3", + "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" @@ -50,7 +50,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -59,28 +58,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 921676b977..32c5187a81 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.7.3", + "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" @@ -52,7 +52,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -61,28 +60,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 156348e2a2..be22d7a9dd 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.7.3", + "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" @@ -51,7 +51,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -60,28 +59,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 c43978f7bf..365c4db56c 100644 --- a/packages/ui-text/package.json +++ b/packages/ui-text/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-text", "version": "11.7.3", + "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" @@ -45,7 +45,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -54,28 +53,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 32e2398d22..b7690b2a6f 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.7.3", + "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" }, @@ -37,10 +37,8 @@ "src": "./src/index.ts", "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 b805126b8c..e2a3d29bc5 100644 --- a/packages/ui-themes/package.json +++ b/packages/ui-themes/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-themes", "version": "11.7.3", + "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" }, @@ -36,7 +36,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -45,7 +44,6 @@ "src": "./src/index.ts", "types": "./types/index.d.ts", "import": "./es/index.js", - "require": "./lib/index.js", "default": "./es/index.js" } } 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 98c9001ec8..ed08b6598b 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.7.3", + "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" @@ -48,7 +48,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -57,28 +56,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 d4f39e010f..1dbd64fa73 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.7.3", + "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" @@ -54,7 +54,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -63,28 +62,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 ff743bfdbd..e00e37fc00 100644 --- a/packages/ui-tooltip/package.json +++ b/packages/ui-tooltip/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-tooltip", "version": "11.7.3", + "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" @@ -49,7 +49,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -58,28 +57,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 05db28fdcc..25363184d1 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.7.3", + "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" @@ -64,7 +64,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -73,28 +72,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 fb676c8617..c44ab48a69 100644 --- a/packages/ui-tray/package.json +++ b/packages/ui-tray/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-tray", "version": "11.7.3", + "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" @@ -52,7 +52,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -61,28 +60,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 11332576c8..8d8d96a12d 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.7.3", + "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" @@ -49,7 +49,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -58,28 +57,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 f9e8b8c5d0..06ed6a4d4b 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.7.3", + "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" @@ -53,10 +53,8 @@ "src": "./src/index.ts", "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 8602167227..87cda8ec5f 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.7.3", + "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" @@ -52,7 +52,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -61,28 +60,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 060fb09883..e70c450878 100644 --- a/packages/ui-utils/package.json +++ b/packages/ui-utils/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-utils", "version": "11.7.3", + "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 @@ "src": "./src/index.ts", "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 e991048774..4667482592 100644 --- a/packages/ui-view/package.json +++ b/packages/ui-view/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui-view", "version": "11.7.3", + "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" @@ -49,7 +49,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -58,28 +57,24 @@ "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_6": { "src": "./src/exports/a.ts", "types": "./types/exports/a.d.ts", "import": "./es/exports/a.js", - "require": "./lib/exports/a.js", "default": "./es/exports/a.js" }, "./v11_7": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" }, "./latest": { "src": "./src/exports/b.ts", "types": "./types/exports/b.d.ts", "import": "./es/exports/b.js", - "require": "./lib/exports/b.js", "default": "./es/exports/b.js" } } 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 d0e41c2b12..00cc5af47a 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/ui", "version": "11.7.3", + "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" @@ -110,7 +110,6 @@ }, "sideEffects": false, "exports": { - "./lib/*": "./lib/*", "./es/*": "./es/*", "./types/*": "./types/*", "./package.json": "./package.json", @@ -119,28 +118,24 @@ "src": "./src/v11_6.ts", "types": "./types/v11_6.d.ts", "import": "./es/v11_6.js", - "require": "./lib/v11_6.js", "default": "./es/v11_6.js" }, "./v11_6": { "src": "./src/v11_6.ts", "types": "./types/v11_6.d.ts", "import": "./es/v11_6.js", - "require": "./lib/v11_6.js", "default": "./es/v11_6.js" }, "./v11_7": { "src": "./src/v11_7.ts", "types": "./types/v11_7.d.ts", "import": "./es/v11_7.js", - "require": "./lib/v11_7.js", "default": "./es/v11_7.js" }, "./latest": { "src": "./src/v11_7.ts", "types": "./types/v11_7.d.ts", "import": "./es/v11_7.js", - "require": "./lib/v11_7.js", "default": "./es/v11_7.js" } } 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 8d8fb327b0..870985dc25 100644 --- a/packages/uid/package.json +++ b/packages/uid/package.json @@ -1,10 +1,10 @@ { "name": "@instructure/uid", "version": "11.7.3", + "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" }, @@ -38,10 +38,8 @@ "src": "./src/index.ts", "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/scripts/bootstrap.js b/scripts/bootstrap.js index b5e1fb7c54..c7b7665619 100755 --- a/scripts/bootstrap.js +++ b/scripts/bootstrap.js @@ -48,12 +48,6 @@ const bootstrapStart = Date.now() mark('Deleting build artifacts') execSync(path.resolve('scripts/clean.js'), opts) -mark('Fetching design tokens') -execSync( - 'pnpm --filter @instructure/ui-scripts update @instructure/instructure-design-tokens', - opts -) - mark('Building themes') execSync('pnpm run build:themes', opts)