Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit dcbcae1

Browse files
authored
Update micromatch dependency (#60)
* Update micromatch dependency * Include bundled micromatch * Test actually distributed code * Improve config
1 parent 5735c7d commit dcbcae1

11 files changed

+1541
-173
lines changed

package-lock.json

Lines changed: 1515 additions & 155 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,20 @@
1515
"@types/estree": "0.0.39",
1616
"@types/jest": "^24.0.13",
1717
"@types/micromatch": "^3.1.0",
18-
"@types/node": "^12.0.2",
18+
"@types/node": "^12.0.3",
1919
"husky": "^2.3.0",
2020
"jest": "^24.8.0",
2121
"lint-staged": "^8.1.7",
22+
"micromatch": "^4.0.2",
2223
"prettier": "^1.17.1",
23-
"rollup": "^1.12.1",
24+
"rollup": "^1.12.4",
25+
"rollup-plugin-commonjs": "^10.0.0",
26+
"rollup-plugin-node-resolve": "^5.0.0",
2427
"rollup-plugin-typescript": "^1.0.1",
2528
"shx": "^0.3.2",
2629
"ts-jest": "^24.0.2",
2730
"tslint": "^5.16.0",
28-
"typescript": "^3.4.5",
31+
"typescript": "^3.5.1",
2932
"typescript-eslint-parser": "^22.0.0"
3033
},
3134
"scripts": {
@@ -38,8 +41,7 @@
3841
"prepare": "npm run build"
3942
},
4043
"dependencies": {
41-
"estree-walker": "^0.6.0",
42-
"micromatch": "^3.1.10"
44+
"estree-walker": "^0.6.1"
4345
},
4446
"repository": "rollup/rollup-pluginutils",
4547
"keywords": [

rollup.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
import pkg from './package.json';
22
import typescript from 'rollup-plugin-typescript';
3+
import resolve from 'rollup-plugin-node-resolve';
4+
import commonjs from 'rollup-plugin-commonjs';
35

46
export default {
57
input: 'src/index.ts',
6-
plugins: [ typescript() ],
7-
external: [ 'path', 'estree-walker', 'micromatch', 'tosource' ],
8+
plugins: [
9+
resolve(),
10+
commonjs({ include: 'node_modules/**' }),
11+
typescript({ include: '**/*.{ts,js}' })
12+
],
13+
external: ['estree-walker', 'path', 'util'],
814

915
output: [
1016
{

src/createFilter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as mm from 'micromatch';
1+
import mm from 'micromatch';
22
import { resolve, sep } from 'path';
33
import { CreateFilter } from './pluginutils';
44
import ensureArray from './utils/ensureArray';

test/addExtension.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { addExtension } from '../src/index';
1+
import { addExtension } from '..';
22

33
describe('addExtension', function() {
44
it('adds .js to an ID without an extension', function() {

test/attachScopes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { attachScopes } from '../src/index';
1+
import { attachScopes } from '..';
22

33
describe('attachScopes', function() {
44
it('attaches a scope to the top level', function() {

test/createFilter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as path from 'path';
2-
import { createFilter } from '../src/index';
2+
import { createFilter } from '..';
33

44
describe('createFilter', function() {
55
it('includes by default', function() {

test/dataToEsm.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { dataToEsm } from '../src/index';
1+
import { dataToEsm } from '..';
22

33
describe('dataToEsm', function() {
44
it('outputs treeshakeable data', function() {

test/extractAssignedNames.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { extractAssignedNames } from '../src/index';
1+
import { extractAssignedNames } from '..';
22

33
describe('extractAssignedNames', function() {
44
it('extracts an Identifier', function() {

test/makeLegalIdentifier.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { makeLegalIdentifier } from '../src/index';
1+
import { makeLegalIdentifier } from '..';
22

33
describe('makeLegalIdentifier', function() {
44
it('camel-cases names', function() {

0 commit comments

Comments
 (0)