From 0752385a434e86b808e773da6bd0b4484d80daf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Sat, 29 Dec 2018 19:27:32 +0100 Subject: [PATCH] Update devDep to rollup@1 --- package-lock.json | 23 ++++++++++++++++------- package.json | 2 +- test/test.js | 5 +++-- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 318e778..4dd1b48 100644 --- a/package-lock.json +++ b/package-lock.json @@ -803,9 +803,9 @@ "dev": true }, "@types/node": { - "version": "10.9.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.9.1.tgz", - "integrity": "sha512-f+qQR5lLCB8UPhtk8Xm8RQvbR4ycD7MOsdiuAEQCYpz44bBx2g7JL0+iYBcjl9J7d0KT1sX2g0VGNeHfw+GXpg==", + "version": "10.12.18", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.18.tgz", + "integrity": "sha512-fh+pAqt4xRzPfqA6eh3Z2y6fyZavRIumvjhaCL753+TVkGKGhpPeyrJG2JftD0T9q4GF00KjefsQ+PQNDdWQaQ==", "dev": true }, "acorn": { @@ -3929,13 +3929,22 @@ } }, "rollup": { - "version": "0.64.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.64.1.tgz", - "integrity": "sha512-+ThdVXrvonJdOTzyybMBipP0uz605Z8AnzWVY3rf+cSGnLO7uNkJBlN+9jXqWOomkvumXfm/esmBpA5d53qm7g==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.0.0.tgz", + "integrity": "sha512-LV6Qz+RkuDAfxr9YopU4k5o5P/QA7YNq9xi2Ug2IqOmhPt9sAm89vh3SkNtFok3bqZHX54eMJZ8F68HPejgqtw==", "dev": true, "requires": { "@types/estree": "0.0.39", - "@types/node": "*" + "@types/node": "*", + "acorn": "^6.0.4" + }, + "dependencies": { + "acorn": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.0.4.tgz", + "integrity": "sha512-VY4i5EKSKkofY2I+6QLTbTTN/UvEQPCo6eiwzzSaSWfpaDhOmStMCMod6wmuPciNq+XS0faCglFu2lHZpdHUtg==", + "dev": true + } } }, "rollup-plugin-buble": { diff --git a/package.json b/package.json index 6968288..91e13ef 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "lint-staged": "^7.2.2", "mocha": "^5.2.0", "prettier": "^1.14.2", - "rollup": "^0.64.1", + "rollup": "^1.0.0", "rollup-plugin-buble": "^0.19.2", "rollup-plugin-json": "^3.0.0", "source-map": "^0.6.1", diff --git a/test/test.js b/test/test.js index d2246e0..752e070 100644 --- a/test/test.js +++ b/test/test.js @@ -49,7 +49,8 @@ describe('rollup-plugin-babel', function() { ) .then(bundle => { return bundle.generate(Object.assign({ format: 'cjs' }, generateOptions)); - }); + }) + .then(({ output: [generated] }) => generated); } it('runs code through babel', () => { @@ -120,7 +121,7 @@ describe('rollup-plugin-babel', function() { plugins: [babelPlugin()], }) .then(bundle => bundle.generate({ output: { format: 'esm' } })) - .then(({ code }) => { + .then(({ output: [{ code }] }) => { assert.ok(/class Foo/.test(code)); assert.ok(/var Bar/.test(code)); assert.ok(!/class Bar/.test(code));