🌉 fixed big bundle bug 🏂
This commit is contained in:
parent
9e4ad56295
commit
4848e6c86c
10
deploy.ts
10
deploy.ts
|
@ -1,6 +1,8 @@
|
||||||
import { publish } from "gh-pages"
|
const { publish } = require("gh-pages")
|
||||||
import { exec } from "child_process"
|
const { exec } = require("child_process")
|
||||||
import { random } from "random-emoji"
|
const { random } = require("random-emoji")
|
||||||
|
|
||||||
|
// const { publish } = require("gh-pages")
|
||||||
|
|
||||||
const args = process.argv.splice(2)
|
const args = process.argv.splice(2)
|
||||||
const randomEmoji = () => random({ count: 1 })[0].character
|
const randomEmoji = () => random({ count: 1 })[0].character
|
||||||
|
@ -13,6 +15,7 @@ console.log("Deploying...");
|
||||||
const run = (command: string): Promise<string> => {
|
const run = (command: string): Promise<string> => {
|
||||||
return new Promise((res, rej) => {
|
return new Promise((res, rej) => {
|
||||||
console.log(`🏃 Running: '${command}'`)
|
console.log(`🏃 Running: '${command}'`)
|
||||||
|
//@ts-ignore
|
||||||
exec(command, (err, stdout, stderr) => {
|
exec(command, (err, stdout, stderr) => {
|
||||||
if (err != null)
|
if (err != null)
|
||||||
rej(err)
|
rej(err)
|
||||||
|
@ -34,6 +37,7 @@ const run = (command: string): Promise<string> => {
|
||||||
await run("git push origin master")
|
await run("git push origin master")
|
||||||
await new Promise((res, rej) => {
|
await new Promise((res, rej) => {
|
||||||
console.log("🏃 Updating github pages")
|
console.log("🏃 Updating github pages")
|
||||||
|
//@ts-ignore
|
||||||
publish("dist", (err) => {
|
publish("dist", (err) => {
|
||||||
if (err)
|
if (err)
|
||||||
rej(err)
|
rej(err)
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
"types/*"
|
"types/*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"module": "commonjs",
|
"module": "esnext",
|
||||||
"target": "es5",
|
"target": "esnext",
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"lib": [
|
"lib": [
|
||||||
|
|
Loading…
Reference in a new issue