diff --git a/notNeededPackages.json b/notNeededPackages.json index 4577575a0b..e5c57cdfa3 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1980,6 +1980,12 @@ "sourceRepoURL": "https://github.com/rollup/rollup", "asOfVersion": "0.54.0" }, + { + "libraryName": "rollup-plugin-node-resolve", + "typingsPackageName": "rollup-plugin-node-resolve", + "sourceRepoURL": "https://github.com/rollup/rollup-plugin-node-resolve", + "asOfVersion": "4.1.0" + }, { "libraryName": "route-recognizer", "typingsPackageName": "route-recognizer", diff --git a/types/rollup-plugin-node-resolve/index.d.ts b/types/rollup-plugin-node-resolve/index.d.ts deleted file mode 100644 index b64b97868b..0000000000 --- a/types/rollup-plugin-node-resolve/index.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -// Type definitions for rollup-plugin-node-resolve 4.0 -// Project: https://github.com/rollup/rollup-plugin-node-resolve#readme -// Definitions by: Eoin O'Brien -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -import { Plugin } from 'rollup'; -import { AsyncOpts as ResolveOptions } from 'resolve'; - -export interface Options { - /** - * Use "module" field for ES6 module if possible. - * @default true - */ - module?: boolean; - - /** - * Use "jsnext:main" if possible. - * Legacy field pointing to ES6 module in third-party libraries, - * deprecated in favor of "pkg.module". - * See: https://github.com/rollup/rollup/wiki/pkg.module - * @default false - */ - jsnext?: boolean; - - /** - * Use "main" field or index.js, even if it's not an ES6 module - * (needs to be converted from CommonJS to ES6). - * See https://github.com/rollup/rollup-plugin-commonjs - * @default true - */ - main?: boolean; - - /** - * Some package.json files have a `browser` field which - * specifies alternative files to load for people bundling - * for the browser. If that's you, use this option, otherwise - * pkg.browser will be ignored. - * @default false - */ - browser?: boolean; - - /** - * Not all files you want to resolve are .js files. - * @default ['.mjs', '.js', '.json', '.node'] - */ - extensions?: string[]; - - /** - * Whether to prefer built-in modules (e.g. `fs`, `path`) or - * local ones with the same names. - * @default true - */ - preferBuiltins?: boolean; - - /** - * Lock the module search in this path (like a chroot). Module defined - * outside this path will be marked as external. - * @default '/' - */ - jail?: string; - - /** - * Set to an array of strings and/or regexps to lock the module search - * to modules that match at least one entry. Modules not matching any - * entry will be marked as external. - */ - only?: Array; - - /** - * If true, inspect resolved files to check that they are ES2015 modules - * @default false - */ - modulesOnly?: boolean; - - /** - * Any additional options that should be passed through to node-resolve - */ - customResolveOptions?: ResolveOptions; -} - -export default function resolve(options?: Options): Plugin; diff --git a/types/rollup-plugin-node-resolve/package.json b/types/rollup-plugin-node-resolve/package.json deleted file mode 100644 index ee69ca3cd2..0000000000 --- a/types/rollup-plugin-node-resolve/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "private": true, - "dependencies": { - "rollup": "^0.63.4" - } -} diff --git a/types/rollup-plugin-node-resolve/rollup-plugin-node-resolve-tests.ts b/types/rollup-plugin-node-resolve/rollup-plugin-node-resolve-tests.ts deleted file mode 100644 index 7e86d56c1d..0000000000 --- a/types/rollup-plugin-node-resolve/rollup-plugin-node-resolve-tests.ts +++ /dev/null @@ -1,23 +0,0 @@ -import resolve from 'rollup-plugin-node-resolve'; - -// $ExpectType Plugin -resolve(); - -// $ExpectType Plugin -resolve({}); - -// $ExpectType Plugin -resolve({ - module: true, - jsnext: true, - main: true, - browser: true, - extensions: [ '.mjs', '.js', '.jsx', '.json' ], - preferBuiltins: false, - jail: '/my/jail/path', - only: [ 'some_module', /^@some_scope\/.*$/ ], - modulesOnly: true, - customResolveOptions: { - moduleDirectory: 'js_modules', - }, -}); diff --git a/types/rollup-plugin-node-resolve/tsconfig.json b/types/rollup-plugin-node-resolve/tsconfig.json deleted file mode 100644 index 23dcf2bb41..0000000000 --- a/types/rollup-plugin-node-resolve/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-node-resolve-tests.ts" - ] -} diff --git a/types/rollup-plugin-node-resolve/tslint.json b/types/rollup-plugin-node-resolve/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/rollup-plugin-node-resolve/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }