diff --git a/src/oneNotePicker.tsx b/src/oneNotePicker.tsx index 75c5026..66e84cb 100644 --- a/src/oneNotePicker.tsx +++ b/src/oneNotePicker.tsx @@ -6,10 +6,16 @@ import {NotebookItem} from './components/notebookItem'; import {GlobalProps} from './props/globalProps'; import {Notebook} from './oneNoteDataStructures/notebook'; +import {OneNoteItemUtils} from './oneNoteDataStructures/oneNoteItemUtils'; + export interface OneNotePickerProps extends GlobalProps { notebooks: Notebook[]; } +if (OneNoteItemUtils) { + console.log(OneNoteItemUtils.findInSections); +} + export class OneNotePicker extends React.Component { render() { return ( diff --git a/webpack.config.js b/webpack.config.js index 5a6e835..5ad32da 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -25,8 +25,7 @@ const base = { entry: { sample: './sampleApp/sample', OneNotePicker: './src/oneNotePicker', - OneNoteApiDataProvider: './src/providers/oneNoteApiDataProvider', - OneNoteItemUtils: './src/oneNoteDataStructures/oneNoteItemUtils' + OneNoteApiDataProvider: './src/providers/oneNoteApiDataProvider' }, output: { path: OUT_DIR, @@ -138,7 +137,6 @@ const prod = { name: 'OneNotePicker', main: `${path.resolve(__dirname)}/dist/types/src/OneNotePicker.d.ts`, out: `${path.resolve(__dirname)}/dist/OneNotePicker.d.ts`, - removeSource: false, outputAsModuleFolder: true, headerText: "TypeScript Definition for OneNotePicker" }), @@ -146,17 +144,8 @@ const prod = { name: 'OneNotePickerApiDataProvider', main: `${path.resolve(__dirname)}/dist/types/src/providers/OneNoteApiDataProvider.d.ts`, out: `${path.resolve(__dirname)}/dist/OneNoteApiDataProvider.d.ts`, - removeSource: false, outputAsModuleFolder: true, headerText: "TypeScript Definition for OneNoteApiDataProvider" - }), - new DtsBundlePlugin({ - name: 'OneNoteItemUtils', - main: `${path.resolve(__dirname)}/dist/types/src/oneNoteDataStructures/OneNoteItemUtils.d.ts`, - out: `${path.resolve(__dirname)}/dist/OneNoteItemUtils.d.ts`, - removeSource: false, - outputAsModuleFolder: true, - headerText: "TypeScript Definition for OneNoteItemUtils" }) ], externals: {