From 4848e6c86c2e2e1a9c4a40934598c3ed32b87068 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Sun, 2 Jun 2019 20:06:25 +0000 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=8C=89=20=20fixed=20big=20bundle=20bug?= =?UTF-8?q?=20=F0=9F=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.ts | 10 +++++++--- tsconfig.json | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/deploy.ts b/deploy.ts index 3cc5441..077a072 100644 --- a/deploy.ts +++ b/deploy.ts @@ -1,6 +1,8 @@ -import { publish } from "gh-pages" -import { exec } from "child_process" -import { random } from "random-emoji" +const { publish } = require("gh-pages") +const { exec } = require("child_process") +const { random } = require("random-emoji") + +// const { publish } = require("gh-pages") const args = process.argv.splice(2) const randomEmoji = () => random({ count: 1 })[0].character @@ -13,6 +15,7 @@ console.log("Deploying..."); const run = (command: string): Promise => { return new Promise((res, rej) => { console.log(`🏃 Running: '${command}'`) + //@ts-ignore exec(command, (err, stdout, stderr) => { if (err != null) rej(err) @@ -34,6 +37,7 @@ const run = (command: string): Promise => { await run("git push origin master") await new Promise((res, rej) => { console.log("🏃 Updating github pages") + //@ts-ignore publish("dist", (err) => { if (err) rej(err) diff --git a/tsconfig.json b/tsconfig.json index d8ed2f7..1b23f77 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,8 +6,8 @@ "types/*" ] }, - "module": "commonjs", - "target": "es5", + "module": "esnext", + "target": "esnext", "removeComments": true, "sourceMap": true, "lib": [