unify typescript version and rollup plugins (#921)

This commit is contained in:
yz-yu
2022-06-25 21:08:06 +08:00
committed by GitHub
parent d35110521a
commit af8ed5513c
10 changed files with 17 additions and 47 deletions

View File

@@ -4,10 +4,10 @@ import * as http from 'http';
import * as url from 'url';
import * as puppeteer from 'puppeteer';
import * as rollup from 'rollup';
import * as typescript from '@rollup/plugin-typescript';
import * as typescript from 'rollup-plugin-typescript2';
import * as assert from 'assert';
const _typescript = (typescript as unknown) as typeof typescript.default;
const _typescript = (typescript as unknown) as () => rollup.Plugin;
const htmlFolder = path.join(__dirname, 'html');
const htmls = fs.readdirSync(htmlFolder).map((filePath) => {