From 0e2c7c1643ae4affe2bc6f6944e83d03ae51104d Mon Sep 17 00:00:00 2001 From: Tiger Oakes Date: Tue, 23 Apr 2019 14:49:47 -0700 Subject: [PATCH] Remove rollup-plugin-commonjs (#34541) --- notNeededPackages.json | 6 ++ types/rollup-plugin-commonjs/index.d.ts | 62 ------------------- types/rollup-plugin-commonjs/package.json | 6 -- .../rollup-plugin-commonjs-tests.ts | 18 ------ types/rollup-plugin-commonjs/tsconfig.json | 23 ------- types/rollup-plugin-commonjs/tslint.json | 1 - 6 files changed, 6 insertions(+), 110 deletions(-) delete mode 100644 types/rollup-plugin-commonjs/index.d.ts delete mode 100644 types/rollup-plugin-commonjs/package.json delete mode 100644 types/rollup-plugin-commonjs/rollup-plugin-commonjs-tests.ts delete mode 100644 types/rollup-plugin-commonjs/tsconfig.json delete mode 100644 types/rollup-plugin-commonjs/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index ec6d3ba1ae..6285d140cf 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -2496,6 +2496,12 @@ "sourceRepoURL": "https://github.com/rollup/rollup", "asOfVersion": "0.54.0" }, + { + "libraryName": "rollup-plugin-commonjs", + "typingsPackageName": "rollup-plugin-commonjs", + "sourceRepoURL": "https://github.com/rollup/rollup-plugin-commonjs", + "asOfVersion": "9.3.1" + }, { "libraryName": "rollup-plugin-node-resolve", "typingsPackageName": "rollup-plugin-node-resolve", diff --git a/types/rollup-plugin-commonjs/index.d.ts b/types/rollup-plugin-commonjs/index.d.ts deleted file mode 100644 index 8f4c9238d4..0000000000 --- a/types/rollup-plugin-commonjs/index.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -// Type definitions for rollup-plugin-commonjs 9.2 -// Project: https://github.com/rollup/rollup-plugin-commonjs -// Definitions by: Eoin O'Brien -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -/// -import { Plugin } from 'rollup'; - -export type IgnoreFunction = (id: string) => boolean; - -export interface Options { - /** - * Non-CommonJS modules will be ignored, but you can also - * specifically include files. - * @default undefined - */ - include?: string | Array; - - /** - * Non-CommonJS modules will be ignored, but you can also - * specifically exclude files. - * @default undefined - */ - exclude?: string | Array; - - /** - * Search for files other than .js files (must already - * be transpiled by a previous plugin). - * @default [ '.js' ] - */ - extensions?: string[]; - - /** - * If `true`, then uses of `global` won't be dealt with by this plugin. - * @default false - */ - ignoreGlobal?: boolean; - - /** - * If false, then skip sourceMap generation for CommonJS modules. - * @default true - */ - sourceMap?: boolean; - - /** - * Explicitly specify unresolvable named exports. - * @default undefined - */ - namedExports?: { [key: string]: string[] }; - - /** - * Sometimes you have to leave require statements - * unconverted. Pass an array containing the IDs - * or a `id => boolean` function. Only use this - * option if you know what you're doing! - * @default undefined - */ - ignore?: IgnoreFunction | string[]; -} - -export default function commonjs(options?: Options): Plugin; diff --git a/types/rollup-plugin-commonjs/package.json b/types/rollup-plugin-commonjs/package.json deleted file mode 100644 index 02dc5dd6f1..0000000000 --- a/types/rollup-plugin-commonjs/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "private": true, - "dependencies": { - "rollup": "^0.63.5" - } -} diff --git a/types/rollup-plugin-commonjs/rollup-plugin-commonjs-tests.ts b/types/rollup-plugin-commonjs/rollup-plugin-commonjs-tests.ts deleted file mode 100644 index fce577ceb7..0000000000 --- a/types/rollup-plugin-commonjs/rollup-plugin-commonjs-tests.ts +++ /dev/null @@ -1,18 +0,0 @@ -import commonjs from 'rollup-plugin-commonjs'; - -// $ExpectType Plugin -commonjs(); - -// $ExpectType Plugin -commonjs({}); - -// $ExpectType Plugin -commonjs({ - include: 'node_modules/**', - exclude: [ 'node_modules/foo/**', 'node_modules/bar/**' ], - extensions: [ '.js', '.coffee' ], - ignoreGlobal: false, - sourceMap: false, - namedExports: { './module.js': ['foo', 'bar' ] }, - ignore: [ 'conditional-runtime-dependency' ], -}); diff --git a/types/rollup-plugin-commonjs/tsconfig.json b/types/rollup-plugin-commonjs/tsconfig.json deleted file mode 100644 index cd8f963487..0000000000 --- a/types/rollup-plugin-commonjs/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "rollup-plugin-commonjs-tests.ts" - ] -} diff --git a/types/rollup-plugin-commonjs/tslint.json b/types/rollup-plugin-commonjs/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/rollup-plugin-commonjs/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }