Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,670 changes: 1,515 additions & 155 deletions package-lock.json

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,20 @@
"@types/estree": "0.0.39",
"@types/jest": "^24.0.13",
"@types/micromatch": "^3.1.0",
"@types/node": "^12.0.2",
"@types/node": "^12.0.3",
"husky": "^2.3.0",
"jest": "^24.8.0",
"lint-staged": "^8.1.7",
"micromatch": "^4.0.2",
"prettier": "^1.17.1",
"rollup": "^1.12.1",
"rollup": "^1.12.4",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-node-resolve": "^5.0.0",
"rollup-plugin-typescript": "^1.0.1",
"shx": "^0.3.2",
"ts-jest": "^24.0.2",
"tslint": "^5.16.0",
"typescript": "^3.4.5",
"typescript": "^3.5.1",
"typescript-eslint-parser": "^22.0.0"
},
"scripts": {
Expand All @@ -38,8 +41,7 @@
"prepare": "npm run build"
},
"dependencies": {
"estree-walker": "^0.6.0",
"micromatch": "^3.1.10"
"estree-walker": "^0.6.1"
},
"repository": "rollup/rollup-pluginutils",
"keywords": [
Expand Down
10 changes: 8 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import pkg from './package.json';
import typescript from 'rollup-plugin-typescript';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';

export default {
input: 'src/index.ts',
plugins: [ typescript() ],
external: [ 'path', 'estree-walker', 'micromatch', 'tosource' ],
plugins: [
resolve(),
commonjs({ include: 'node_modules/**' }),
typescript({ include: '**/*.{ts,js}' })
],
external: ['estree-walker', 'path', 'util'],

output: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/createFilter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as mm from 'micromatch';
import mm from 'micromatch';
import { resolve, sep } from 'path';
import { CreateFilter } from './pluginutils';
import ensureArray from './utils/ensureArray';
Expand Down
2 changes: 1 addition & 1 deletion test/addExtension.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addExtension } from '../src/index';
import { addExtension } from '..';

describe('addExtension', function() {
it('adds .js to an ID without an extension', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/attachScopes.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { attachScopes } from '../src/index';
import { attachScopes } from '..';

describe('attachScopes', function() {
it('attaches a scope to the top level', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/createFilter.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'path';
import { createFilter } from '../src/index';
import { createFilter } from '..';

describe('createFilter', function() {
it('includes by default', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/dataToEsm.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dataToEsm } from '../src/index';
import { dataToEsm } from '..';

describe('dataToEsm', function() {
it('outputs treeshakeable data', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/extractAssignedNames.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { extractAssignedNames } from '../src/index';
import { extractAssignedNames } from '..';

describe('extractAssignedNames', function() {
it('extracts an Identifier', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/makeLegalIdentifier.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeLegalIdentifier } from '../src/index';
import { makeLegalIdentifier } from '..';

describe('makeLegalIdentifier', function() {
it('camel-cases names', function() {
Expand Down
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"compilerOptions": {
/* Basic Options */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"target": "es2015", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */
"lib": ["es6"], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
Expand Down Expand Up @@ -57,4 +57,4 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
}
}
}