mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
add examples/
to no-restricted-path config (#54252)
This commit is contained in:
parent
1ffd30eb85
commit
513428af44
3 changed files with 8 additions and 3 deletions
|
@ -247,6 +247,7 @@ module.exports = {
|
|||
'!x-pack/test/**/*',
|
||||
'(src|x-pack)/plugins/**/(public|server)/**/*',
|
||||
'src/core/(public|server)/**/*',
|
||||
'examples/**/*',
|
||||
],
|
||||
from: [
|
||||
'src/core/public/**/*',
|
||||
|
@ -283,11 +284,15 @@ module.exports = {
|
|||
'x-pack/legacy/plugins/**/*',
|
||||
'!x-pack/legacy/plugins/*/server/**/*',
|
||||
'!x-pack/legacy/plugins/*/index.{js,ts,tsx}',
|
||||
|
||||
'examples/**/*',
|
||||
'!examples/**/server/**/*',
|
||||
],
|
||||
from: [
|
||||
'src/core/server',
|
||||
'src/core/server/**/*',
|
||||
'(src|x-pack)/plugins/*/server/**/*',
|
||||
'examples/**/server/**/*',
|
||||
],
|
||||
errorMessage:
|
||||
'Server modules cannot be imported into client modules or shared modules.',
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
import { Plugin, CoreSetup, PluginInitializerContext } from 'kibana/server';
|
||||
import { DataPluginSetup } from 'src/plugins/data/server/plugin';
|
||||
import { PluginSetup as DataPluginSetup } from 'src/plugins/data/server';
|
||||
import { demoSearchStrategyProvider } from './demo_search_strategy';
|
||||
import { DEMO_SEARCH_STRATEGY, IDemoRequest, IDemoResponse } from '../common';
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
import { PluginInitializerContext } from '../../../core/server';
|
||||
import { DataServerPlugin } from './plugin';
|
||||
import { DataServerPlugin, DataPluginSetup } from './plugin';
|
||||
|
||||
export function plugin(initializerContext: PluginInitializerContext) {
|
||||
return new DataServerPlugin(initializerContext);
|
||||
|
@ -93,4 +93,4 @@ export {
|
|||
getKbnTypeNames,
|
||||
} from '../common';
|
||||
|
||||
export { DataServerPlugin as Plugin };
|
||||
export { DataServerPlugin as Plugin, DataPluginSetup as PluginSetup };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue