Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/eui-theme-borealis/changelogs/upcoming/8764.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**Bug fixes**

- Fixed missing source map warnings emitted by some bundlers by excluding source maps from being published
- To align with `@elastic/eui` and many other popular packages, we made a call to not ship source maps anymore
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't usually provide explanations, but this feels different. We don't necessarily have a section to publish package-specific information; It's closest to a bug fix as it fixes bundler warnings and isn't a breaking change.
I guess this whole thing is in the grey area...

2 changes: 1 addition & 1 deletion packages/eui-theme-borealis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build:clean": "rimraf lib/",
"build": "yarn build:clean && yarn build:compile && yarn build:compile:cjs && yarn build:types && yarn copy-files",
"build:compile": "tsc --project ./tsconfig.json",
"build:compile:cjs": "NODE_ENV=production NO_COREJS_POLYFILL=true babel src --out-dir=lib/cjs --extensions .js,.ts,.tsx --source-maps=true",
"build:compile:cjs": "NODE_ENV=production NO_COREJS_POLYFILL=true babel src --out-dir=lib/cjs --extensions .js,.ts,.tsx",
"build:types": "NODE_ENV=production tsc --project tsconfig.types.json",
"build-pack": "yarn build && npm pack",
"copy-files": "node ./scripts/copy-json-files.js",
Expand Down
3 changes: 1 addition & 2 deletions packages/eui-theme-borealis/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
],
"moduleResolution": "Node",
"declaration": true,
"sourceMap": true,
"noEmitHelpers": true,
"incremental": true,
"esModuleInterop": true,
Expand All @@ -26,4 +25,4 @@
"exclude": [
"node_modules"
],
}
}
3 changes: 1 addition & 2 deletions packages/eui-theme-borealis/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
],
"moduleResolution": "Node",
"declaration": true,
"sourceMap": true,
"noEmitHelpers": true,
"incremental": true,
"esModuleInterop": true,
Expand All @@ -25,4 +24,4 @@
"exclude": [
"node_modules"
],
}
}
3 changes: 1 addition & 2 deletions packages/eui-theme-borealis/tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"compilerOptions": {
"outDir": "lib/cjs",
"declaration": true,
"declarationMap": true,
"isolatedModules": false,
"noEmit": false,
"allowJs": false,
"emitDeclarationOnly": true
},
"exclude": ["node_modules", "**/*.test.ts"]
}
}
4 changes: 4 additions & 0 deletions packages/eui-theme-common/changelogs/upcoming/8764.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**Bug fixes**

- Fixed missing source map warnings emitted by some bundlers by excluding source maps from being published
- To align with `@elastic/eui` and many other popular packages, we made a call to not ship source maps anymore
2 changes: 1 addition & 1 deletion packages/eui-theme-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build:clean": "rimraf lib/",
"build": "yarn build:clean && yarn build:compile && yarn build:compile:cjs && yarn build:types",
"build:compile": "tsc --project ./tsconfig.json",
"build:compile:cjs": "NODE_ENV=production NO_COREJS_POLYFILL=true babel src --out-dir=lib/cjs --extensions .js,.ts,.tsx --source-maps=true",
"build:compile:cjs": "NODE_ENV=production NO_COREJS_POLYFILL=true babel src --out-dir=lib/cjs --extensions .js,.ts,.tsx",
"build:types": "NODE_ENV=production tsc --project tsconfig.types.json",
"build-pack": "yarn build && npm pack",
"lint": "yarn tsc --noEmit && yarn lint-es && yarn lint-sass",
Expand Down
3 changes: 1 addition & 2 deletions packages/eui-theme-common/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
],
"moduleResolution": "Node",
"declaration": true,
"sourceMap": true,
"noEmitHelpers": true,
"incremental": true,
"esModuleInterop": true,
Expand All @@ -26,4 +25,4 @@
"exclude": [
"node_modules"
],
}
}
3 changes: 1 addition & 2 deletions packages/eui-theme-common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
],
"moduleResolution": "Node",
"declaration": true,
"sourceMap": true,
"noEmitHelpers": true,
"incremental": true,
"esModuleInterop": true,
Expand All @@ -25,4 +24,4 @@
"exclude": [
"node_modules"
],
}
}
3 changes: 1 addition & 2 deletions packages/eui-theme-common/tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"compilerOptions": {
"outDir": "lib/cjs",
"declaration": true,
"declarationMap": true,
"isolatedModules": false,
"noEmit": false,
"allowJs": false,
"emitDeclarationOnly": true
},
"exclude": ["node_modules", "**/*.test.ts"]
}
}