Skip to content

Commit ec4c288

Browse files
authored
Merge pull request #126 from umbraco/feature/type-module
Add type:module to all packages
2 parents ce11a92 + 5bb128e commit ec4c288

File tree

64 files changed

+65
-8
lines changed

Some content is hidden

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

64 files changed

+65
-8
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ tsconfig.tsbuildinfo
2727

2828

2929
custom-elements.json
30-
/packages/uui-css/custom-properties.js
31-
/packages/uui-css/custom-properties.module.js
30+
/packages/uui-css/custom-properties.*
3231
storybook-static
3332
debug.log
3433
out-css

.storybook/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module.exports = {
2727
config.optimizeDeps.include.push('lit/directives/style-map.js');
2828
config.optimizeDeps.include.push('lit/directives/if-defined.js');
2929
config.optimizeDeps.include.push('lit/directives/unsafe-html.js');
30+
config.optimizeDeps.include.push('element-internals-polyfill');
3031
}
3132

3233
return config;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"lerna-fix": "lerna exec -- node ../../scripts/lerna-fix.mjs",
4343
"lerna:modify-package": "lerna exec -- node ../../scripts/modify-pkgjson.mjs",
4444
"postinstall": "npm run bootstrap",
45-
"bootstrap": "lerna run --scope @umbraco-ui/uui-css build && node ./scripts/generate-ts-config.js",
45+
"bootstrap": "lerna run --scope @umbraco-ui/uui-css clean && lerna run --scope @umbraco-ui/uui-css build && node ./scripts/generate-ts-config.js",
4646
"prepare": "husky install",
4747
"new-package": "plop && npm i",
4848
"pack-all": "npm run build:prod && node ./scripts/pack-packages.js",

packages/uui-action-bar/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"main": "./lib/index.js",
2323
"module": "./lib/index.js",
2424
"types": "./lib/index.d.ts",
25+
"type": "module",
2526
"customElements": "custom-elements.json",
2627
"files": [
2728
"lib/**/*.d.ts",

packages/uui-avatar-group/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"main": "./lib/index.js",
2323
"module": "./lib/index.js",
2424
"types": "./lib/index.d.ts",
25+
"type": "module",
2526
"customElements": "custom-elements.json",
2627
"files": [
2728
"lib/**/*.d.ts",

packages/uui-avatar/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"main": "./lib/index.js",
2323
"module": "./lib/index.js",
2424
"types": "./lib/index.d.ts",
25+
"type": "module",
2526
"customElements": "custom-elements.json",
2627
"files": [
2728
"lib/**/*.d.ts",

packages/uui-badge/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"main": "./lib/index.js",
2323
"module": "./lib/index.js",
2424
"types": "./lib/index.d.ts",
25+
"type": "module",
2526
"customElements": "custom-elements.json",
2627
"files": [
2728
"lib/**/*.d.ts",

packages/uui-boolean-input/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"main": "./lib/index.js",
2323
"module": "./lib/index.js",
2424
"types": "./lib/index.d.ts",
25+
"type": "module",
2526
"customElements": "custom-elements.json",
2627
"files": [
2728
"lib/**/*.d.ts",

packages/uui-box/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"main": "./lib/index.js",
2222
"module": "./lib/index.js",
2323
"types": "./lib/index.d.ts",
24+
"type": "module",
2425
"customElements": "custom-elements.json",
2526
"files": [
2627
"lib/**/*.d.ts",

packages/uui-breadcrumbs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"main": "./lib/index.js",
2525
"module": "./lib/index.js",
2626
"types": "./lib/index.d.ts",
27+
"type": "module",
2728
"customElements": "custom-elements.json",
2829
"files": [
2930
"lib/**/*.d.ts",

0 commit comments

Comments
 (0)