Skip to content

Commit

Permalink
include types-mediawiki in main types file
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed May 28, 2024
1 parent 51ecb8e commit 8c9177d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,18 @@ function auto( key, options ) {
}
}

// GLOBALS
const globals = {
external: [ 'types-mediawiki' ]
};

/**
* @type {import('rollup').RollupOptions[]}
*/
export default [
// Deputy core
auto( 'deputy', {
...globals,
input: 'src/Deputy.ts',
output: {
sourcemap: true,
Expand All @@ -183,6 +189,7 @@ export default [
} ),
// Standalone Attribution Notice Template Editor
auto( 'ante', {
...globals,
input: 'src/modules/ante/CopiedTemplateEditorStandalone.ts',
output: {
sourcemap: true,
Expand All @@ -197,6 +204,7 @@ export default [
} ),
// Standalone Infringement Assistant
auto( 'ia', {
...globals,
input: 'src/modules/ia/InfringementAssistantStandalone.ts',
output: {
sourcemap: true,
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Deputy } from './Deputy';
import moment from 'moment';
import 'types-mediawiki';

export type PromiseOrNot<T> = Promise<T> | T;
export type JQueryPromiseOrPromise<T> = JQuery.Promise<T> | Promise<T>;
Expand Down

0 comments on commit 8c9177d

Please sign in to comment.