Skip to content

Commit

Permalink
Fixed rollup message errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zachsa committed Jun 1, 2021
1 parent 63842ee commit aa85390
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@
"prettier": "^2.3.0"
},
"dependencies": {
"rollup": "^2.50.3",
"@babel/cli": "^7.14.3",
"@babel/core": "^7.14.3",
"@babel/eslint-parser": "^7.14.3",
"@babel/eslint-plugin": "^7.13.16",
"@babel/preset-env": "^7.14.2",
"@rollup/plugin-json": "^4.1.0",
"@koa/router": "^10.0.0",
"@rollup/plugin-json": "^4.1.0",
"apollo-server-koa": "2.25",
"cookie": "^0.4.1",
"csv": "^5.5.0",
Expand All @@ -56,6 +55,7 @@
"passport-google-oauth": "^2.0.0",
"passport-oauth": "^1.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.50.3",
"sift": "^13.5.4",
"sql-formatter": "^4.0.2",
"wkt": "^0.1.1"
Expand Down
31 changes: 31 additions & 0 deletions src/api/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,37 @@ import json from '@rollup/plugin-json'

export default {
input: 'src/index.js',
external: [
'http',
'koa',
'koa-static',
'koa-mount',
'@koa/router',
'koa-compress',
'koa-bodyparser',
'koa-session',
'koa-passport',
'zlib',
'path',
'nanoid',
'base64url',
'apollo-server-koa',
'node-fetch',
'passport-oauth',
'dotenv',
'url',
'fs',
'mssql',
'graphql-tools',
'dataloader',
'sift',
'sql-formatter',
'graphql-type-json',
'graphql',
'wkt',
'csv',
'perf_hooks',
],
output: {
file: 'bin/index.cjs',
format: 'cjs',
Expand Down

0 comments on commit aa85390

Please sign in to comment.