feat(rollup-plugin-node-resolve): remove types since package now includes them

This commit is contained in:
Hugo Alliaume
2019-04-09 21:45:11 +02:00
parent fae25f894d
commit 1ea53bf579
6 changed files with 6 additions and 135 deletions

View File

@@ -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",

View File

@@ -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 <https://github.com/eoin-obrien>
// 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<string | RegExp>;
/**
* 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;

View File

@@ -1,6 +0,0 @@
{
"private": true,
"dependencies": {
"rollup": "^0.63.4"
}
}

View File

@@ -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',
},
});

View File

@@ -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"
]
}

View File

@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }