From 365a06dad5195df5194fb184ca96d80f387bebf2 Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Mon, 14 Oct 2019 13:38:40 -0400 Subject: [PATCH] Add regenerator-runtime in attempt to fix babel build --- package-lock.json | 18 ++++++++++++++++++ package.json | 4 +++- src/index.js | 8 ++++---- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3c7b379..42f1216 100644 --- a/package-lock.json +++ b/package-lock.json @@ -732,6 +732,24 @@ "regexpu-core": "^4.6.0" } }, + "@babel/polyfill": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/@babel/polyfill/-/polyfill-7.6.0.tgz", + "integrity": "sha512-q5BZJI0n/B10VaQQvln1IlDK3BTBJFbADx7tv+oXDPIDZuTo37H5Adb9jhlXm/fEN4Y7/64qD9mnrJJG7rmaTw==", + "dev": true, + "requires": { + "core-js": "^2.6.5", + "regenerator-runtime": "^0.13.2" + }, + "dependencies": { + "core-js": { + "version": "2.6.10", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.10.tgz", + "integrity": "sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA==", + "dev": true + } + } + }, "@babel/preset-env": { "version": "7.6.3", "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.6.3.tgz", diff --git a/package.json b/package.json index bdd68cc..fb632f0 100644 --- a/package.json +++ b/package.json @@ -15,9 +15,11 @@ "@babel/cli": "^7.6.4", "@babel/core": "^7.6.4", "@babel/node": "^7.6.3", + "@babel/polyfill": "^7.6.0", "@babel/preset-env": "^7.6.3", "dotenv": "^8.1.0", - "nodemon": "^1.19.3" + "nodemon": "^1.19.3", + "regenerator-runtime": "^0.13.3" }, "dependencies": { "@octokit/request": "^5.2.1", diff --git a/src/index.js b/src/index.js index 236652e..9f92831 100644 --- a/src/index.js +++ b/src/index.js @@ -1,14 +1,14 @@ +import { request } from '@octokit/request' +import express from 'express' +import 'regenerator-runtime' + const env = process.env.NODE_ENV || 'development' if (env === 'development') { require('dotenv').config() } -import { request } from '@octokit/request' - const PORT = process.env.PORT || 1234 -import express from 'express' - const app = express() app.get('/', async (req, res) => {