Skip to content

Commit

Permalink
[dist/eui_charts_theme.d.ts] incorrect import module name (#3492)
Browse files Browse the repository at this point in the history
* src ref

* CL
  • Loading branch information
thompsongl authored May 18, 2020
1 parent 91badba commit bed4b72
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

- Fixed `EuiSuperSelect` not rendering full width when `isOpen` is `true` ([#3495](https://github.com/elastic/eui/pull/3495))
- Fixed `EuiBasicTable` shows no items if all items of last page is deleted ([#3422](https://github.com/elastic/eui/pull/3422))
- Fixed TypeScript module name in generated `eui_charts_theme.d.ts` file ([#3492](https://github.com/elastic/eui/pull/3492))

**Deprecations**

Expand Down
28 changes: 27 additions & 1 deletion scripts/compile-eui.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/


const { execSync } = require('child_process');
const chalk = require('chalk');
const shell = require('shelljs');
Expand Down Expand Up @@ -118,7 +138,13 @@ function compileBundle() {
files: ['themes.ts'],
resolveModuleId() {
return '@elastic/eui/dist/eui_charts_theme';
}
},
resolveModuleImport(params) {
if (params.importedModuleId === '../../components/common') {
return '@elastic/eui/src/components/common';
}
return null;
}
});
console.log(chalk.green('✔ Finished chart theme module'));
}
Expand Down

0 comments on commit bed4b72

Please sign in to comment.