From 6660e7e7e9d4688487ea43a7b4ed379a7fe088c4 Mon Sep 17 00:00:00 2001 From: dvirtz Date: Fri, 16 Oct 2020 01:44:38 +0300 Subject: [PATCH] fix rollup warnings --- packages/reveal-test/dist/reveal-test.cjs | 4 +--- packages/reveal-test/rollup.config.js | 3 +-- packages/reveal-test/src/reveal-test.js | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/reveal-test/dist/reveal-test.cjs b/packages/reveal-test/dist/reveal-test.cjs index bab9f4c..2a30668 100644 --- a/packages/reveal-test/dist/reveal-test.cjs +++ b/packages/reveal-test/dist/reveal-test.cjs @@ -5,8 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true }); var compilerExplorerDirectives = require('compiler-explorer-directives'); var MarkdownIt = require('markdown-it'); var fs = require('fs'); -var promises = require('fs/promises'); -require('assert'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } @@ -29,7 +27,7 @@ const parseMarkdownImpl = (path, markdown, config) => { }; const parseMarkdown = async (path, config = {}) => { - const markdown = await promises.readFile(path, 'utf-8'); + const markdown = await fs.promises.readFile(path, 'utf-8'); return parseMarkdownImpl(path, markdown, config); }; diff --git a/packages/reveal-test/rollup.config.js b/packages/reveal-test/rollup.config.js index 38b12dc..76d328f 100644 --- a/packages/reveal-test/rollup.config.js +++ b/packages/reveal-test/rollup.config.js @@ -16,7 +16,6 @@ export default { external: [ 'compiler-explorer-directives', 'markdown-it', - 'fs', - 'fs/promises' + 'fs' ] }; diff --git a/packages/reveal-test/src/reveal-test.js b/packages/reveal-test/src/reveal-test.js index d776a15..8fcc82c 100644 --- a/packages/reveal-test/src/reveal-test.js +++ b/packages/reveal-test/src/reveal-test.js @@ -3,7 +3,6 @@ import { parseCode, compile as origCompile, CompileError } from 'compiler-explorer-directives'; import MarkdownIt from 'markdown-it'; import { readFileSync, promises } from 'fs'; -import assert from 'assert'; const parseMarkdownImpl = (path, markdown, config) => { const md = new MarkdownIt();