diff --git a/.oxlintrc.json b/.oxlintrc.json
index 13ac9d5daa..2200d3ed9a 100644
--- a/.oxlintrc.json
+++ b/.oxlintrc.json
@@ -34,6 +34,7 @@
"coverage/**",
"**/stylelint.config.js",
"**/babel.config.js",
+ "**/babel.config.cjs",
"**/.next/**",
"**/next-env.d.ts"
],
diff --git a/packages/canvas-high-contrast-theme/.npmignore b/packages/canvas-high-contrast-theme/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/canvas-high-contrast-theme/.npmignore
+++ b/packages/canvas-high-contrast-theme/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/canvas-high-contrast-theme/babel.config.js b/packages/canvas-high-contrast-theme/babel.config.cjs
similarity index 93%
rename from packages/canvas-high-contrast-theme/babel.config.js
rename to packages/canvas-high-contrast-theme/babel.config.cjs
index 98d09d3c63..d606cde788 100644
--- a/packages/canvas-high-contrast-theme/babel.config.js
+++ b/packages/canvas-high-contrast-theme/babel.config.cjs
@@ -28,8 +28,7 @@ module.exports = {
require('@instructure/ui-babel-preset'),
{
esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: false
+ removeConsole: process.env.NODE_ENV === 'production'
}
]
]
diff --git a/packages/canvas-high-contrast-theme/package.json b/packages/canvas-high-contrast-theme/package.json
index 01274ab052..28be5b0e63 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.4",
+ "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/.npmignore b/packages/canvas-theme/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/canvas-theme/.npmignore
+++ b/packages/canvas-theme/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/canvas-theme/babel.config.js b/packages/canvas-theme/babel.config.cjs
similarity index 93%
rename from packages/canvas-theme/babel.config.js
rename to packages/canvas-theme/babel.config.cjs
index 98d09d3c63..d606cde788 100644
--- a/packages/canvas-theme/babel.config.js
+++ b/packages/canvas-theme/babel.config.cjs
@@ -28,8 +28,7 @@ module.exports = {
require('@instructure/ui-babel-preset'),
{
esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: false
+ removeConsole: process.env.NODE_ENV === 'production'
}
]
]
diff --git a/packages/canvas-theme/package.json b/packages/canvas-theme/package.json
index d64dd67db1..3503d365df 100644
--- a/packages/canvas-theme/package.json
+++ b/packages/canvas-theme/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/canvas-theme",
"version": "11.7.4",
+ "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/command-utils/.npmignore b/packages/command-utils/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/command-utils/.npmignore
+++ b/packages/command-utils/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/console/.npmignore b/packages/console/.npmignore
index 8175343e55..c627145dd0 100644
--- a/packages/console/.npmignore
+++ b/packages/console/.npmignore
@@ -2,5 +2,6 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-themes/babel.config.js b/packages/console/babel.config.cjs
similarity index 93%
rename from packages/ui-themes/babel.config.js
rename to packages/console/babel.config.cjs
index 98d09d3c63..54f68baeb0 100644
--- a/packages/ui-themes/babel.config.js
+++ b/packages/console/babel.config.cjs
@@ -28,8 +28,7 @@ module.exports = {
require('@instructure/ui-babel-preset'),
{
esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: false
+ removeConsole: false
}
]
]
diff --git a/packages/console/babel.config.js b/packages/console/babel.config.js
deleted file mode 100644
index 8b8f26dd69..0000000000
--- a/packages/console/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: false,
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/console/package.json b/packages/console/package.json
index 3a230e5c64..200292a56b 100644
--- a/packages/console/package.json
+++ b/packages/console/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/console",
"version": "11.7.4",
+ "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"
@@ -39,10 +39,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/.npmignore b/packages/debounce/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/debounce/.npmignore
+++ b/packages/debounce/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-axe-check/babel.config.js b/packages/debounce/babel.config.cjs
similarity index 93%
rename from packages/ui-axe-check/babel.config.js
rename to packages/debounce/babel.config.cjs
index 8b8f26dd69..d606cde788 100644
--- a/packages/ui-axe-check/babel.config.js
+++ b/packages/debounce/babel.config.cjs
@@ -28,8 +28,7 @@ module.exports = {
require('@instructure/ui-babel-preset'),
{
esModules: Boolean(process.env.ES_MODULES),
- removeConsole: false,
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
+ removeConsole: process.env.NODE_ENV === 'production'
}
]
]
diff --git a/packages/debounce/babel.config.js b/packages/debounce/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/debounce/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/debounce/package.json b/packages/debounce/package.json
index c9019c2b74..2718fc5a9a 100644
--- a/packages/debounce/package.json
+++ b/packages/debounce/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/debounce",
"version": "11.7.4",
+ "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/.npmignore b/packages/emotion/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/emotion/.npmignore
+++ b/packages/emotion/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/emotion/babel.config.cjs b/packages/emotion/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/emotion/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/emotion/babel.config.js b/packages/emotion/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/emotion/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/emotion/package.json b/packages/emotion/package.json
index ad1d1cc78f..2ab938732a 100644
--- a/packages/emotion/package.json
+++ b/packages/emotion/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/emotion",
"version": "11.7.4",
+ "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"
@@ -56,10 +56,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/shared-types/package.json b/packages/shared-types/package.json
index cfe51abe8a..f57c822121 100644
--- a/packages/shared-types/package.json
+++ b/packages/shared-types/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/shared-types",
"version": "11.7.4",
+ "type": "module",
"description": "Shared TypeScript typings for Instructure UI packages.",
"author": "Instructure, Inc. Engineering and Product Design",
"module": "./es/index.js",
- "main": "./lib/index.js",
"types": "./types/index.d.ts",
"repository": {
"type": "git",
@@ -30,7 +30,6 @@
".": {
"types": "./types/index.d.ts",
"import": "./es/index.js",
- "require": "./lib/index.js",
"default": "./es/index.js"
},
"./types/*": "./types/*",
diff --git a/packages/ui-a11y-content/.npmignore b/packages/ui-a11y-content/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-a11y-content/.npmignore
+++ b/packages/ui-a11y-content/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-a11y-content/babel.config.cjs b/packages/ui-a11y-content/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-a11y-content/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-a11y-content/babel.config.js b/packages/ui-a11y-content/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-a11y-content/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-a11y-content/package.json b/packages/ui-a11y-content/package.json
index 88fd9908f0..09696794c7 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.4",
+ "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/.npmignore b/packages/ui-a11y-utils/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-a11y-utils/.npmignore
+++ b/packages/ui-a11y-utils/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-a11y-utils/babel.config.cjs b/packages/ui-a11y-utils/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-a11y-utils/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-a11y-utils/babel.config.js b/packages/ui-a11y-utils/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-a11y-utils/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-a11y-utils/package.json b/packages/ui-a11y-utils/package.json
index 00e210f029..ce9ec325f3 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.4",
+ "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/.npmignore b/packages/ui-alerts/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-alerts/.npmignore
+++ b/packages/ui-alerts/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-alerts/babel.config.cjs b/packages/ui-alerts/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-alerts/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-alerts/babel.config.js b/packages/ui-alerts/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-alerts/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-alerts/package.json b/packages/ui-alerts/package.json
index 9f9af293a1..522ab3f7fe 100644
--- a/packages/ui-alerts/package.json
+++ b/packages/ui-alerts/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-alerts",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-avatar/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-avatar/.npmignore
+++ b/packages/ui-avatar/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-avatar/babel.config.cjs b/packages/ui-avatar/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-avatar/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-avatar/babel.config.js b/packages/ui-avatar/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-avatar/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-avatar/package.json b/packages/ui-avatar/package.json
index e9840fabad..98aa7123e6 100644
--- a/packages/ui-avatar/package.json
+++ b/packages/ui-avatar/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-avatar",
"version": "11.7.4",
+ "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"
@@ -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-axe-check/.npmignore b/packages/ui-axe-check/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-axe-check/.npmignore
+++ b/packages/ui-axe-check/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-axe-check/babel.config.cjs b/packages/ui-axe-check/babel.config.cjs
new file mode 100644
index 0000000000..54f68baeb0
--- /dev/null
+++ b/packages/ui-axe-check/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: false
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-axe-check/package.json b/packages/ui-axe-check/package.json
index 91461d8b8e..6218bcc8c5 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.4",
+ "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-babel-preset/.npmignore b/packages/ui-babel-preset/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-babel-preset/.npmignore
+++ b/packages/ui-babel-preset/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-badge/.npmignore b/packages/ui-badge/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-badge/.npmignore
+++ b/packages/ui-badge/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-badge/babel.config.cjs b/packages/ui-badge/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-badge/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-badge/babel.config.js b/packages/ui-badge/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-badge/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-badge/package.json b/packages/ui-badge/package.json
index f9ef183e4c..463b3def47 100644
--- a/packages/ui-badge/package.json
+++ b/packages/ui-badge/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-badge",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-billboard/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-billboard/.npmignore
+++ b/packages/ui-billboard/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-billboard/babel.config.cjs b/packages/ui-billboard/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-billboard/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-billboard/babel.config.js b/packages/ui-billboard/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-billboard/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-billboard/package.json b/packages/ui-billboard/package.json
index 54afdaae79..bd155bb6cb 100644
--- a/packages/ui-billboard/package.json
+++ b/packages/ui-billboard/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-billboard",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-breadcrumb/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-breadcrumb/.npmignore
+++ b/packages/ui-breadcrumb/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-breadcrumb/babel.config.cjs b/packages/ui-breadcrumb/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-breadcrumb/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-breadcrumb/babel.config.js b/packages/ui-breadcrumb/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-breadcrumb/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-breadcrumb/package.json b/packages/ui-breadcrumb/package.json
index 0d04fd5796..9e49f6cb3e 100644
--- a/packages/ui-breadcrumb/package.json
+++ b/packages/ui-breadcrumb/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-breadcrumb",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-buttons/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-buttons/.npmignore
+++ b/packages/ui-buttons/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-buttons/babel.config.cjs b/packages/ui-buttons/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-buttons/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-buttons/babel.config.js b/packages/ui-buttons/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-buttons/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-buttons/package.json b/packages/ui-buttons/package.json
index 969250320e..b910857e81 100644
--- a/packages/ui-buttons/package.json
+++ b/packages/ui-buttons/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-buttons",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-byline/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-byline/.npmignore
+++ b/packages/ui-byline/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-byline/babel.config.cjs b/packages/ui-byline/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-byline/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-byline/babel.config.js b/packages/ui-byline/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-byline/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-byline/package.json b/packages/ui-byline/package.json
index 4d171129e5..9c0d9441a7 100644
--- a/packages/ui-byline/package.json
+++ b/packages/ui-byline/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-byline",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-calendar/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-calendar/.npmignore
+++ b/packages/ui-calendar/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-calendar/babel.config.cjs b/packages/ui-calendar/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-calendar/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-calendar/babel.config.js b/packages/ui-calendar/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-calendar/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-calendar/package.json b/packages/ui-calendar/package.json
index 84a4c8a741..32bcc25f4f 100644
--- a/packages/ui-calendar/package.json
+++ b/packages/ui-calendar/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-calendar",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-checkbox/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-checkbox/.npmignore
+++ b/packages/ui-checkbox/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-checkbox/babel.config.cjs b/packages/ui-checkbox/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-checkbox/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-checkbox/babel.config.js b/packages/ui-checkbox/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-checkbox/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-checkbox/package.json b/packages/ui-checkbox/package.json
index d264c2b6d0..dc34ddfb39 100644
--- a/packages/ui-checkbox/package.json
+++ b/packages/ui-checkbox/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-checkbox",
"version": "11.7.4",
+ "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-codemods/.npmignore b/packages/ui-codemods/.npmignore
index 9c3e0249cf..ccefa06242 100644
--- a/packages/ui-codemods/.npmignore
+++ b/packages/ui-codemods/.npmignore
@@ -2,5 +2,6 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
/types/
diff --git a/packages/ui-color-picker/.npmignore b/packages/ui-color-picker/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-color-picker/.npmignore
+++ b/packages/ui-color-picker/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-color-picker/babel.config.js b/packages/ui-color-picker/babel.config.cjs
similarity index 91%
rename from packages/ui-color-picker/babel.config.js
rename to packages/ui-color-picker/babel.config.cjs
index b1bd6ca2af..ac591d564c 100644
--- a/packages/ui-color-picker/babel.config.js
+++ b/packages/ui-color-picker/babel.config.cjs
@@ -28,8 +28,7 @@ module.exports = {
'@instructure/ui-babel-preset',
{
esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
+ removeConsole: process.env.NODE_ENV === 'production'
}
]
]
diff --git a/packages/ui-color-picker/package.json b/packages/ui-color-picker/package.json
index 37c7217ee7..5a720feb80 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.4",
+ "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/.npmignore b/packages/ui-color-utils/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-color-utils/.npmignore
+++ b/packages/ui-color-utils/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-color-utils/babel.config.cjs b/packages/ui-color-utils/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-color-utils/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-color-utils/babel.config.js b/packages/ui-color-utils/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-color-utils/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-color-utils/package.json b/packages/ui-color-utils/package.json
index 1e9081f4fa..cd7dbc15d6 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.4",
+ "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/.npmignore b/packages/ui-date-input/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-date-input/.npmignore
+++ b/packages/ui-date-input/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-date-input/babel.config.cjs b/packages/ui-date-input/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-date-input/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-date-input/babel.config.js b/packages/ui-date-input/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-date-input/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-date-input/package.json b/packages/ui-date-input/package.json
index c87928bc62..9aef261f23 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.4",
+ "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/.npmignore b/packages/ui-date-time-input/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-date-time-input/.npmignore
+++ b/packages/ui-date-time-input/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-date-time-input/babel.config.cjs b/packages/ui-date-time-input/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-date-time-input/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-date-time-input/babel.config.js b/packages/ui-date-time-input/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-date-time-input/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-date-time-input/package.json b/packages/ui-date-time-input/package.json
index ac6febb145..2150bdf461 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.4",
+ "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/.npmignore b/packages/ui-decorator/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-decorator/.npmignore
+++ b/packages/ui-decorator/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-decorator/babel.config.cjs b/packages/ui-decorator/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-decorator/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-decorator/babel.config.js b/packages/ui-decorator/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-decorator/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-decorator/package.json b/packages/ui-decorator/package.json
index dee884c32e..3534ccfddb 100644
--- a/packages/ui-decorator/package.json
+++ b/packages/ui-decorator/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-decorator",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-dialog/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-dialog/.npmignore
+++ b/packages/ui-dialog/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-dialog/babel.config.cjs b/packages/ui-dialog/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-dialog/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-dialog/babel.config.js b/packages/ui-dialog/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-dialog/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-dialog/package.json b/packages/ui-dialog/package.json
index 947658cabc..b6190196a7 100644
--- a/packages/ui-dialog/package.json
+++ b/packages/ui-dialog/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-dialog",
"version": "11.7.4",
+ "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"
@@ -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-dom-utils/.npmignore b/packages/ui-dom-utils/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-dom-utils/.npmignore
+++ b/packages/ui-dom-utils/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-dom-utils/babel.config.cjs b/packages/ui-dom-utils/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-dom-utils/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-dom-utils/babel.config.js b/packages/ui-dom-utils/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-dom-utils/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-dom-utils/package.json b/packages/ui-dom-utils/package.json
index 56499db750..2bcafa6404 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.4",
+ "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/.npmignore b/packages/ui-drawer-layout/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-drawer-layout/.npmignore
+++ b/packages/ui-drawer-layout/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-drawer-layout/babel.config.cjs b/packages/ui-drawer-layout/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-drawer-layout/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-drawer-layout/babel.config.js b/packages/ui-drawer-layout/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-drawer-layout/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-drawer-layout/package.json b/packages/ui-drawer-layout/package.json
index d02d73c0e6..2ffc6f47d9 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.4",
+ "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/.npmignore b/packages/ui-drilldown/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-drilldown/.npmignore
+++ b/packages/ui-drilldown/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-drilldown/babel.config.cjs b/packages/ui-drilldown/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-drilldown/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-drilldown/babel.config.js b/packages/ui-drilldown/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-drilldown/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-drilldown/package.json b/packages/ui-drilldown/package.json
index cfb32119e9..8aeada70e2 100644
--- a/packages/ui-drilldown/package.json
+++ b/packages/ui-drilldown/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-drilldown",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-editable/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-editable/.npmignore
+++ b/packages/ui-editable/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-editable/babel.config.cjs b/packages/ui-editable/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-editable/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-editable/babel.config.js b/packages/ui-editable/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-editable/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-editable/package.json b/packages/ui-editable/package.json
index 369121d09d..b8ef0990d2 100644
--- a/packages/ui-editable/package.json
+++ b/packages/ui-editable/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-editable",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-expandable/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-expandable/.npmignore
+++ b/packages/ui-expandable/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-expandable/babel.config.cjs b/packages/ui-expandable/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-expandable/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-expandable/babel.config.js b/packages/ui-expandable/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-expandable/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-expandable/package.json b/packages/ui-expandable/package.json
index 0d26b041e4..3c1c6cd5db 100644
--- a/packages/ui-expandable/package.json
+++ b/packages/ui-expandable/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-expandable",
"version": "11.7.4",
+ "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"
@@ -42,7 +42,6 @@
},
"sideEffects": false,
"exports": {
- "./lib/*": "./lib/*",
"./es/*": "./es/*",
"./types/*": "./types/*",
"./package.json": "./package.json",
@@ -51,28 +50,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/.npmignore b/packages/ui-file-drop/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-file-drop/.npmignore
+++ b/packages/ui-file-drop/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-file-drop/babel.config.cjs b/packages/ui-file-drop/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-file-drop/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-file-drop/babel.config.js b/packages/ui-file-drop/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-file-drop/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-file-drop/package.json b/packages/ui-file-drop/package.json
index 80d74987b1..550e0ed66f 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.4",
+ "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/.npmignore b/packages/ui-flex/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-flex/.npmignore
+++ b/packages/ui-flex/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-flex/babel.config.cjs b/packages/ui-flex/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-flex/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-flex/babel.config.js b/packages/ui-flex/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-flex/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-flex/package.json b/packages/ui-flex/package.json
index 5abff7656c..a3c746d035 100644
--- a/packages/ui-flex/package.json
+++ b/packages/ui-flex/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-flex",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-focusable/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-focusable/.npmignore
+++ b/packages/ui-focusable/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-focusable/babel.config.cjs b/packages/ui-focusable/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-focusable/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-focusable/babel.config.js b/packages/ui-focusable/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-focusable/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-focusable/package.json b/packages/ui-focusable/package.json
index d4d95a8793..97f6909b85 100644
--- a/packages/ui-focusable/package.json
+++ b/packages/ui-focusable/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-focusable",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-form-field/.npmignore
index 0184f7bd19..a03fbefd42 100644
--- a/packages/ui-form-field/.npmignore
+++ b/packages/ui-form-field/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
babelrc.js
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-form-field/babel.config.cjs b/packages/ui-form-field/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-form-field/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-form-field/babel.config.js b/packages/ui-form-field/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-form-field/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-form-field/package.json b/packages/ui-form-field/package.json
index 5629dce9a2..ae68fdd1eb 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.4",
+ "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/.npmignore b/packages/ui-grid/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-grid/.npmignore
+++ b/packages/ui-grid/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-grid/babel.config.cjs b/packages/ui-grid/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-grid/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-grid/babel.config.js b/packages/ui-grid/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-grid/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-grid/package.json b/packages/ui-grid/package.json
index 3ecf89ef0e..a6786596d2 100644
--- a/packages/ui-grid/package.json
+++ b/packages/ui-grid/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-grid",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-heading/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-heading/.npmignore
+++ b/packages/ui-heading/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-heading/babel.config.cjs b/packages/ui-heading/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-heading/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-heading/babel.config.js b/packages/ui-heading/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-heading/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-heading/package.json b/packages/ui-heading/package.json
index 8f5a0b8cdd..70bcb2ff3d 100644
--- a/packages/ui-heading/package.json
+++ b/packages/ui-heading/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-heading",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-i18n/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-i18n/.npmignore
+++ b/packages/ui-i18n/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-i18n/babel.config.cjs b/packages/ui-i18n/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-i18n/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-i18n/babel.config.js b/packages/ui-i18n/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-i18n/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-i18n/package.json b/packages/ui-i18n/package.json
index 16b1ba9b39..c57a5db6d1 100644
--- a/packages/ui-i18n/package.json
+++ b/packages/ui-i18n/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-i18n",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-icons/.npmignore
index d4d24041be..3e6d35dc57 100644
--- a/packages/ui-icons/.npmignore
+++ b/packages/ui-icons/.npmignore
@@ -2,6 +2,7 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
__build__
src
diff --git a/packages/ui-icons/babel.config.cjs b/packages/ui-icons/babel.config.cjs
index a9c68f5efd..6fa83badb7 100644
--- a/packages/ui-icons/babel.config.cjs
+++ b/packages/ui-icons/babel.config.cjs
@@ -28,7 +28,6 @@ module.exports = {
require('@instructure/ui-babel-preset'),
{
esModules: Boolean(process.env.ES_MODULES),
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS),
// we need the console for the deprecation warning.
// Note: if you want to use console in the icons, wrap it in a
diff --git a/packages/ui-icons/package.json b/packages/ui-icons/package.json
index 3e6a0761b0..3dd202e6b0 100644
--- a/packages/ui-icons/package.json
+++ b/packages/ui-icons/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-icons",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-img/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-img/.npmignore
+++ b/packages/ui-img/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-img/babel.config.cjs b/packages/ui-img/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-img/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-img/babel.config.js b/packages/ui-img/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-img/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-img/package.json b/packages/ui-img/package.json
index e189f77b1b..948096b707 100644
--- a/packages/ui-img/package.json
+++ b/packages/ui-img/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-img",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-instructure/.npmignore
index d8080d328e..c4b0b37318 100644
--- a/packages/ui-instructure/.npmignore
+++ b/packages/ui-instructure/.npmignore
@@ -3,4 +3,5 @@
**/__testfixtures__
**/__examples__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-instructure/babel.config.cjs b/packages/ui-instructure/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-instructure/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-instructure/babel.config.js b/packages/ui-instructure/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-instructure/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-instructure/package.json b/packages/ui-instructure/package.json
index 334a7ae3f6..a70515ac48 100644
--- a/packages/ui-instructure/package.json
+++ b/packages/ui-instructure/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-instructure",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-link/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-link/.npmignore
+++ b/packages/ui-link/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-link/babel.config.cjs b/packages/ui-link/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-link/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-link/babel.config.js b/packages/ui-link/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-link/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-link/package.json b/packages/ui-link/package.json
index edb5b0ae89..74c7b87012 100644
--- a/packages/ui-link/package.json
+++ b/packages/ui-link/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-link",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-list/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-list/.npmignore
+++ b/packages/ui-list/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-list/babel.config.cjs b/packages/ui-list/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-list/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-list/babel.config.js b/packages/ui-list/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-list/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-list/package.json b/packages/ui-list/package.json
index 1d466d070a..97ab7ab07f 100644
--- a/packages/ui-list/package.json
+++ b/packages/ui-list/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-list",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-menu/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-menu/.npmignore
+++ b/packages/ui-menu/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-menu/babel.config.cjs b/packages/ui-menu/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-menu/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-menu/babel.config.js b/packages/ui-menu/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-menu/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-menu/package.json b/packages/ui-menu/package.json
index 9953ca863a..c2af1e849c 100644
--- a/packages/ui-menu/package.json
+++ b/packages/ui-menu/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-menu",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-metric/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-metric/.npmignore
+++ b/packages/ui-metric/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-metric/babel.config.cjs b/packages/ui-metric/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-metric/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-metric/babel.config.js b/packages/ui-metric/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-metric/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-metric/package.json b/packages/ui-metric/package.json
index dc41ec9d23..77270f3298 100644
--- a/packages/ui-metric/package.json
+++ b/packages/ui-metric/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-metric",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-modal/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-modal/.npmignore
+++ b/packages/ui-modal/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-modal/babel.config.cjs b/packages/ui-modal/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-modal/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-modal/babel.config.js b/packages/ui-modal/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-modal/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-modal/package.json b/packages/ui-modal/package.json
index 097a6c4e26..2c7eee7740 100644
--- a/packages/ui-modal/package.json
+++ b/packages/ui-modal/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-modal",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-motion/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-motion/.npmignore
+++ b/packages/ui-motion/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-motion/babel.config.cjs b/packages/ui-motion/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-motion/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-motion/babel.config.js b/packages/ui-motion/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-motion/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-motion/package.json b/packages/ui-motion/package.json
index ff3d7e6b86..5bcaa14fe0 100644
--- a/packages/ui-motion/package.json
+++ b/packages/ui-motion/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-motion",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-navigation/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-navigation/.npmignore
+++ b/packages/ui-navigation/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-navigation/babel.config.cjs b/packages/ui-navigation/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-navigation/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-navigation/babel.config.js b/packages/ui-navigation/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-navigation/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-navigation/package.json b/packages/ui-navigation/package.json
index 31ba94aba0..ba81007065 100644
--- a/packages/ui-navigation/package.json
+++ b/packages/ui-navigation/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-navigation",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-number-input/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-number-input/.npmignore
+++ b/packages/ui-number-input/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-number-input/babel.config.cjs b/packages/ui-number-input/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-number-input/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-number-input/babel.config.js b/packages/ui-number-input/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-number-input/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-number-input/package.json b/packages/ui-number-input/package.json
index 4eb315346e..73dd3e62b0 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.4",
+ "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/.npmignore b/packages/ui-options/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-options/.npmignore
+++ b/packages/ui-options/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.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 1b87397182..5f918db8f0 100644
--- a/packages/ui-options/package.json
+++ b/packages/ui-options/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-options",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-overlays/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-overlays/.npmignore
+++ b/packages/ui-overlays/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-overlays/babel.config.cjs b/packages/ui-overlays/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-overlays/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-overlays/babel.config.js b/packages/ui-overlays/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-overlays/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-overlays/package.json b/packages/ui-overlays/package.json
index 7a6107ad41..13a683fba9 100644
--- a/packages/ui-overlays/package.json
+++ b/packages/ui-overlays/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-overlays",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-pages/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-pages/.npmignore
+++ b/packages/ui-pages/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-pages/babel.config.cjs b/packages/ui-pages/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-pages/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-pages/babel.config.js b/packages/ui-pages/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-pages/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-pages/package.json b/packages/ui-pages/package.json
index cb64f6b6d0..994898f788 100644
--- a/packages/ui-pages/package.json
+++ b/packages/ui-pages/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-pages",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-pagination/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-pagination/.npmignore
+++ b/packages/ui-pagination/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-pagination/babel.config.cjs b/packages/ui-pagination/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-pagination/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-pagination/babel.config.js b/packages/ui-pagination/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-pagination/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-pagination/package.json b/packages/ui-pagination/package.json
index 9f4451e634..6cf1740a42 100644
--- a/packages/ui-pagination/package.json
+++ b/packages/ui-pagination/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-pagination",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-pill/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-pill/.npmignore
+++ b/packages/ui-pill/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-pill/babel.config.cjs b/packages/ui-pill/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-pill/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-pill/babel.config.js b/packages/ui-pill/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-pill/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-pill/package.json b/packages/ui-pill/package.json
index aefa016749..62a66bb093 100644
--- a/packages/ui-pill/package.json
+++ b/packages/ui-pill/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-pill",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-popover/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-popover/.npmignore
+++ b/packages/ui-popover/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-popover/babel.config.cjs b/packages/ui-popover/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-popover/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-popover/babel.config.js b/packages/ui-popover/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-popover/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-popover/package.json b/packages/ui-popover/package.json
index e4cdc7dec5..f0b196671f 100644
--- a/packages/ui-popover/package.json
+++ b/packages/ui-popover/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-popover",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-portal/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-portal/.npmignore
+++ b/packages/ui-portal/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-portal/babel.config.cjs b/packages/ui-portal/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-portal/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-portal/babel.config.js b/packages/ui-portal/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-portal/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-portal/package.json b/packages/ui-portal/package.json
index 764971cc1a..ffeda24300 100644
--- a/packages/ui-portal/package.json
+++ b/packages/ui-portal/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-portal",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-position/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-position/.npmignore
+++ b/packages/ui-position/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-position/babel.config.cjs b/packages/ui-position/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-position/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-position/babel.config.js b/packages/ui-position/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-position/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-position/package.json b/packages/ui-position/package.json
index aae681c2c1..afef8be2f5 100644
--- a/packages/ui-position/package.json
+++ b/packages/ui-position/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-position",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-progress/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-progress/.npmignore
+++ b/packages/ui-progress/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-progress/babel.config.cjs b/packages/ui-progress/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-progress/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-progress/babel.config.js b/packages/ui-progress/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-progress/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-progress/package.json b/packages/ui-progress/package.json
index 75805d5180..275abd9ae9 100644
--- a/packages/ui-progress/package.json
+++ b/packages/ui-progress/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-progress",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-radio-input/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-radio-input/.npmignore
+++ b/packages/ui-radio-input/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-radio-input/babel.config.cjs b/packages/ui-radio-input/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-radio-input/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-radio-input/babel.config.js b/packages/ui-radio-input/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-radio-input/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-radio-input/package.json b/packages/ui-radio-input/package.json
index 433259c9fa..a4b4b3937f 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.4",
+ "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/.npmignore b/packages/ui-range-input/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-range-input/.npmignore
+++ b/packages/ui-range-input/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-range-input/babel.config.cjs b/packages/ui-range-input/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-range-input/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-range-input/babel.config.js b/packages/ui-range-input/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-range-input/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-range-input/package.json b/packages/ui-range-input/package.json
index 3ab523a5b4..fa6bbc6f52 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.4",
+ "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/.npmignore b/packages/ui-rating/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-rating/.npmignore
+++ b/packages/ui-rating/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-rating/babel.config.cjs b/packages/ui-rating/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-rating/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-rating/babel.config.js b/packages/ui-rating/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-rating/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-rating/package.json b/packages/ui-rating/package.json
index f50bb6f90d..8c0d2ea2bc 100644
--- a/packages/ui-rating/package.json
+++ b/packages/ui-rating/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-rating",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-react-utils/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-react-utils/.npmignore
+++ b/packages/ui-react-utils/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-react-utils/babel.config.cjs b/packages/ui-react-utils/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-react-utils/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-react-utils/babel.config.js b/packages/ui-react-utils/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-react-utils/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-react-utils/package.json b/packages/ui-react-utils/package.json
index 0c23610f56..70d946bb58 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.4",
+ "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"
},
@@ -51,10 +51,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/.npmignore b/packages/ui-responsive/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-responsive/.npmignore
+++ b/packages/ui-responsive/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-responsive/babel.config.cjs b/packages/ui-responsive/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-responsive/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-responsive/babel.config.js b/packages/ui-responsive/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-responsive/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-responsive/package.json b/packages/ui-responsive/package.json
index f5b38a755e..6c045c724f 100644
--- a/packages/ui-responsive/package.json
+++ b/packages/ui-responsive/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-responsive",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-scripts/.npmignore
index 1f414aa381..c9167faecb 100644
--- a/packages/ui-scripts/.npmignore
+++ b/packages/ui-scripts/.npmignore
@@ -3,4 +3,5 @@
**/__fixtures__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-scripts/lib/build/babel.ts b/packages/ui-scripts/lib/build/babel.ts
index e492ad17ac..6acf88db8d 100644
--- a/packages/ui-scripts/lib/build/babel.ts
+++ b/packages/ui-scripts/lib/build/babel.ts
@@ -22,15 +22,9 @@
* SOFTWARE.
*/
-import path from 'path'
import { runCommandsConcurrently, getCommand } from '@instructure/command-utils'
-import { fileURLToPath } from 'url'
import type { Argv } from 'yargs'
-const __dirname = path.dirname(fileURLToPath(import.meta.url))
-
-const specifyCJSFormat = path.resolve(__dirname, 'specify-commonjs-format.ts')
-
export default {
command: 'build',
desc: 'Build the packages with Babel.js',
@@ -43,13 +37,6 @@ export default {
boolean: true,
desc: 'Run constantly and recompile on changes'
})
- yargs.option('modules', {
- string: true,
- desc: 'What kind of modules to build. "es": build into the /es folder using ESM; "cjs": build into the /lib folder using commonJS',
- choices: ['es', 'cjs'],
- default: 'es',
- coerce: (value: string) => value.split(',')
- })
yargs.strictOptions(true)
},
handler: async (argv: any) => {
@@ -88,27 +75,13 @@ export default {
}
}
- const commands: Record = {
+ const commands = {
es: getCommand('babel', [...babelArgs, '--out-dir', 'es'], {
...envVars,
...{ ES_MODULES: '1' }
- }),
- cjs: [
- getCommand('babel', [...babelArgs, '--out-dir', 'lib'], {
- ...envVars,
- ...{ TRANSFORM_IMPORTS: '1' }
- }),
- getCommand(specifyCJSFormat, [])
- ]
+ })
}
- const commandsToRun = argv.modules.reduce(
- (obj: Record, key: string) => ({
- ...obj,
- [key]: commands[key]
- }),
- {}
- )
- runCommandsConcurrently(commandsToRun)
+ runCommandsConcurrently(commands)
}
}
diff --git a/packages/ui-scripts/lib/build/generate-all-tokens.ts b/packages/ui-scripts/lib/build/generate-all-tokens.ts
index 295f23914e..04c223dd95 100644
--- a/packages/ui-scripts/lib/build/generate-all-tokens.ts
+++ b/packages/ui-scripts/lib/build/generate-all-tokens.ts
@@ -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.ts'
import { handleGenerateTokens } from '../utils/handle-generate-tokens.ts'
-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
}
@@ -76,7 +74,7 @@ export default {
for (const conf of tokenScriptsConfig) {
const { sourceTokens, themeKey, outputPackage, groupOutput } = conf
// For workspace packages in pnpm, construct path from project root
- // Convert '@instructure/ui-themes/lib/themes/canvas' to 'packages/ui-themes/lib/themes/canvas'
+ // Convert '@instructure/ui-themes/es/themes/canvas' to 'packages/ui-themes/es/themes/canvas'
let resolvedSource
try {
// Extract package name and subpath
@@ -104,7 +102,10 @@ export default {
)
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-scripts/lib/build/specify-commonjs-format.ts b/packages/ui-scripts/lib/build/specify-commonjs-format.ts
deleted file mode 100755
index c9876aec1b..0000000000
--- a/packages/ui-scripts/lib/build/specify-commonjs-format.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env node
-
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2021 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-import { existsSync, writeFileSync, mkdirSync } from 'fs'
-
-// create if does not exist https://stackoverflow.com/a/24311711
-mkdirSync('lib', { recursive: true })
-
-if (!existsSync('lib/package.json')) {
- writeFileSync('lib/package.json', '{"type":"commonjs"}\n', 'utf8')
-}
diff --git a/packages/ui-select/.npmignore b/packages/ui-select/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-select/.npmignore
+++ b/packages/ui-select/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-select/babel.config.cjs b/packages/ui-select/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-select/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-select/babel.config.js b/packages/ui-select/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-select/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-select/package.json b/packages/ui-select/package.json
index 4916f6e1e5..4d772dae63 100644
--- a/packages/ui-select/package.json
+++ b/packages/ui-select/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-select",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-selectable/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-selectable/.npmignore
+++ b/packages/ui-selectable/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-selectable/babel.config.cjs b/packages/ui-selectable/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-selectable/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-selectable/babel.config.js b/packages/ui-selectable/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-selectable/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-selectable/package.json b/packages/ui-selectable/package.json
index d112cbe37c..62af1bf9db 100644
--- a/packages/ui-selectable/package.json
+++ b/packages/ui-selectable/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-selectable",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-side-nav-bar/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-side-nav-bar/.npmignore
+++ b/packages/ui-side-nav-bar/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-side-nav-bar/babel.config.cjs b/packages/ui-side-nav-bar/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-side-nav-bar/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-side-nav-bar/babel.config.js b/packages/ui-side-nav-bar/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-side-nav-bar/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-side-nav-bar/package.json b/packages/ui-side-nav-bar/package.json
index 49dd2a8b87..04607f5330 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.4",
+ "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"
@@ -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-simple-select/.npmignore b/packages/ui-simple-select/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-simple-select/.npmignore
+++ b/packages/ui-simple-select/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-simple-select/babel.config.cjs b/packages/ui-simple-select/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-simple-select/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-simple-select/babel.config.js b/packages/ui-simple-select/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-simple-select/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-simple-select/package.json b/packages/ui-simple-select/package.json
index a7e6933f9c..0ac1b189cb 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.4",
+ "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/.npmignore b/packages/ui-source-code-editor/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-source-code-editor/.npmignore
+++ b/packages/ui-source-code-editor/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-source-code-editor/babel.config.cjs b/packages/ui-source-code-editor/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-source-code-editor/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-source-code-editor/babel.config.js b/packages/ui-source-code-editor/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-source-code-editor/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-source-code-editor/package.json b/packages/ui-source-code-editor/package.json
index a4b20448db..e7529fd7d2 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.4",
+ "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/.npmignore b/packages/ui-spinner/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-spinner/.npmignore
+++ b/packages/ui-spinner/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-spinner/babel.config.cjs b/packages/ui-spinner/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-spinner/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-spinner/babel.config.js b/packages/ui-spinner/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-spinner/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-spinner/package.json b/packages/ui-spinner/package.json
index 27ffda4de9..64df12e1ac 100644
--- a/packages/ui-spinner/package.json
+++ b/packages/ui-spinner/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-spinner",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-svg-images/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-svg-images/.npmignore
+++ b/packages/ui-svg-images/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-svg-images/babel.config.cjs b/packages/ui-svg-images/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-svg-images/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-svg-images/babel.config.js b/packages/ui-svg-images/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-svg-images/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-svg-images/package.json b/packages/ui-svg-images/package.json
index f50b622b14..f2401de366 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.4",
+ "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,10 +51,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/.npmignore b/packages/ui-table/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-table/.npmignore
+++ b/packages/ui-table/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-table/babel.config.cjs b/packages/ui-table/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-table/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-table/babel.config.js b/packages/ui-table/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-table/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-table/package.json b/packages/ui-table/package.json
index 618e746788..cb4aaac4fe 100644
--- a/packages/ui-table/package.json
+++ b/packages/ui-table/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-table",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-tabs/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-tabs/.npmignore
+++ b/packages/ui-tabs/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-tabs/babel.config.cjs b/packages/ui-tabs/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-tabs/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-tabs/babel.config.js b/packages/ui-tabs/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-tabs/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-tabs/package.json b/packages/ui-tabs/package.json
index 6a61c68a56..d581c1fb0a 100644
--- a/packages/ui-tabs/package.json
+++ b/packages/ui-tabs/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-tabs",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-tag/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-tag/.npmignore
+++ b/packages/ui-tag/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-tag/babel.config.cjs b/packages/ui-tag/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-tag/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-tag/babel.config.js b/packages/ui-tag/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-tag/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-tag/package.json b/packages/ui-tag/package.json
index 6907460f09..13d7218388 100644
--- a/packages/ui-tag/package.json
+++ b/packages/ui-tag/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-tag",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-text-area/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-text-area/.npmignore
+++ b/packages/ui-text-area/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-text-area/babel.config.cjs b/packages/ui-text-area/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-text-area/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-text-area/babel.config.js b/packages/ui-text-area/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-text-area/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-text-area/package.json b/packages/ui-text-area/package.json
index 4b281a12a6..8b73dffc8c 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.4",
+ "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/.npmignore b/packages/ui-text-input/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-text-input/.npmignore
+++ b/packages/ui-text-input/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-text-input/babel.config.cjs b/packages/ui-text-input/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-text-input/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-text-input/babel.config.js b/packages/ui-text-input/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-text-input/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-text-input/package.json b/packages/ui-text-input/package.json
index 72d2d77df3..f0fe3ef43c 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.4",
+ "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/.npmignore b/packages/ui-text/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-text/.npmignore
+++ b/packages/ui-text/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-text/babel.config.cjs b/packages/ui-text/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-text/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-text/babel.config.js b/packages/ui-text/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-text/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-text/package.json b/packages/ui-text/package.json
index 69940b868d..ff10a5f8a0 100644
--- a/packages/ui-text/package.json
+++ b/packages/ui-text/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-text",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-theme-tokens/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-theme-tokens/.npmignore
+++ b/packages/ui-theme-tokens/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-theme-tokens/babel.config.cjs b/packages/ui-theme-tokens/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-theme-tokens/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-theme-tokens/babel.config.js b/packages/ui-theme-tokens/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-theme-tokens/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-theme-tokens/package.json b/packages/ui-theme-tokens/package.json
index 2d04813a03..7dadb5ae8c 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.4",
+ "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/.npmignore b/packages/ui-themes/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-themes/.npmignore
+++ b/packages/ui-themes/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-themes/babel.config.cjs b/packages/ui-themes/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-themes/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-themes/package.json b/packages/ui-themes/package.json
index 3b520480db..b163e9630c 100644
--- a/packages/ui-themes/package.json
+++ b/packages/ui-themes/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-themes",
"version": "11.7.4",
+ "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"
},
@@ -37,7 +37,6 @@
},
"sideEffects": false,
"exports": {
- "./lib/*": "./lib/*",
"./es/*": "./es/*",
"./types/*": "./types/*",
"./package.json": "./package.json",
@@ -46,7 +45,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/.npmignore b/packages/ui-time-select/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-time-select/.npmignore
+++ b/packages/ui-time-select/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-time-select/babel.config.cjs b/packages/ui-time-select/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-time-select/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-time-select/babel.config.js b/packages/ui-time-select/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-time-select/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-time-select/package.json b/packages/ui-time-select/package.json
index 5dd25c629f..3fd31b95b6 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.4",
+ "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/.npmignore b/packages/ui-toggle-details/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-toggle-details/.npmignore
+++ b/packages/ui-toggle-details/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-toggle-details/babel.config.cjs b/packages/ui-toggle-details/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-toggle-details/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-toggle-details/babel.config.js b/packages/ui-toggle-details/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-toggle-details/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-toggle-details/package.json b/packages/ui-toggle-details/package.json
index b307f88c00..6ffa8e4ab7 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.4",
+ "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/.npmignore b/packages/ui-tooltip/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-tooltip/.npmignore
+++ b/packages/ui-tooltip/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-tooltip/babel.config.cjs b/packages/ui-tooltip/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-tooltip/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-tooltip/babel.config.js b/packages/ui-tooltip/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-tooltip/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-tooltip/package.json b/packages/ui-tooltip/package.json
index b07b79865b..882c356a44 100644
--- a/packages/ui-tooltip/package.json
+++ b/packages/ui-tooltip/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-tooltip",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-top-nav-bar/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-top-nav-bar/.npmignore
+++ b/packages/ui-top-nav-bar/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-top-nav-bar/babel.config.cjs b/packages/ui-top-nav-bar/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-top-nav-bar/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-top-nav-bar/babel.config.js b/packages/ui-top-nav-bar/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-top-nav-bar/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-top-nav-bar/package.json b/packages/ui-top-nav-bar/package.json
index f8fba1cff6..df3bb06ace 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.4",
+ "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/.npmignore b/packages/ui-tray/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-tray/.npmignore
+++ b/packages/ui-tray/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-tray/babel.config.cjs b/packages/ui-tray/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-tray/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-tray/babel.config.js b/packages/ui-tray/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-tray/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-tray/package.json b/packages/ui-tray/package.json
index a265b30c13..8f0701d473 100644
--- a/packages/ui-tray/package.json
+++ b/packages/ui-tray/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-tray",
"version": "11.7.4",
+ "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/.npmignore b/packages/ui-tree-browser/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-tree-browser/.npmignore
+++ b/packages/ui-tree-browser/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-tree-browser/babel.config.cjs b/packages/ui-tree-browser/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-tree-browser/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-tree-browser/babel.config.js b/packages/ui-tree-browser/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-tree-browser/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-tree-browser/package.json b/packages/ui-tree-browser/package.json
index 4ed6c7f992..c18e4a0b89 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.4",
+ "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/.npmignore b/packages/ui-truncate-list/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-truncate-list/.npmignore
+++ b/packages/ui-truncate-list/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-truncate-list/babel.config.cjs b/packages/ui-truncate-list/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-truncate-list/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-truncate-list/babel.config.js b/packages/ui-truncate-list/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-truncate-list/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-truncate-list/package.json b/packages/ui-truncate-list/package.json
index b2d82deb88..05004cb798 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.4",
+ "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/.npmignore b/packages/ui-truncate-text/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-truncate-text/.npmignore
+++ b/packages/ui-truncate-text/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-truncate-text/babel.config.cjs b/packages/ui-truncate-text/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-truncate-text/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-truncate-text/babel.config.js b/packages/ui-truncate-text/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-truncate-text/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-truncate-text/package.json b/packages/ui-truncate-text/package.json
index bdf9121786..617483d532 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.4",
+ "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"
@@ -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-utils/.npmignore b/packages/ui-utils/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-utils/.npmignore
+++ b/packages/ui-utils/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-utils/babel.config.cjs b/packages/ui-utils/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-utils/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-utils/babel.config.js b/packages/ui-utils/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-utils/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-utils/package.json b/packages/ui-utils/package.json
index a2a594dec4..1cb06496bc 100644
--- a/packages/ui-utils/package.json
+++ b/packages/ui-utils/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-utils",
"version": "11.7.4",
+ "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"
},
@@ -54,10 +54,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/.npmignore b/packages/ui-view/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-view/.npmignore
+++ b/packages/ui-view/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui-view/babel.config.cjs b/packages/ui-view/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui-view/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui-view/babel.config.js b/packages/ui-view/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui-view/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui-view/package.json b/packages/ui-view/package.json
index 8d6f4a461e..31c655d951 100644
--- a/packages/ui-view/package.json
+++ b/packages/ui-view/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui-view",
"version": "11.7.4",
+ "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-webpack-config/.npmignore b/packages/ui-webpack-config/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui-webpack-config/.npmignore
+++ b/packages/ui-webpack-config/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui/.npmignore b/packages/ui/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/ui/.npmignore
+++ b/packages/ui/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/ui/babel.config.cjs b/packages/ui/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/ui/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/ui/babel.config.js b/packages/ui/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/ui/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 21f888c9e1..86a0075495 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/ui",
"version": "11.7.4",
+ "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/.npmignore b/packages/uid/.npmignore
index 9b51f84223..63819f945c 100644
--- a/packages/uid/.npmignore
+++ b/packages/uid/.npmignore
@@ -2,4 +2,5 @@
**/__tests__
**/__testfixtures__
*.config.js
+*.config.cjs
*.conf.js
diff --git a/packages/uid/babel.config.cjs b/packages/uid/babel.config.cjs
new file mode 100644
index 0000000000..d606cde788
--- /dev/null
+++ b/packages/uid/babel.config.cjs
@@ -0,0 +1,35 @@
+/*
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2015 - present Instructure, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+module.exports = {
+ presets: [
+ [
+ require('@instructure/ui-babel-preset'),
+ {
+ esModules: Boolean(process.env.ES_MODULES),
+ removeConsole: process.env.NODE_ENV === 'production'
+ }
+ ]
+ ]
+}
diff --git a/packages/uid/babel.config.js b/packages/uid/babel.config.js
deleted file mode 100644
index 647821c390..0000000000
--- a/packages/uid/babel.config.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 - present Instructure, Inc.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-module.exports = {
- presets: [
- [
- require('@instructure/ui-babel-preset'),
- {
- esModules: Boolean(process.env.ES_MODULES),
- removeConsole: process.env.NODE_ENV === 'production',
- transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
- }
- ]
- ]
-}
diff --git a/packages/uid/package.json b/packages/uid/package.json
index f72087e609..d0eef9649b 100644
--- a/packages/uid/package.json
+++ b/packages/uid/package.json
@@ -1,10 +1,10 @@
{
"name": "@instructure/uid",
"version": "11.7.4",
+ "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",