Skip to content

Commit

Permalink
📦 Update Dependencies, Switch to @pika/pack, Update Scripts
Browse files Browse the repository at this point in the history
Switched over to @pika/pack for builds/releases.

Updated all dependencies to latest versions. Upgrading Joi required updating import statement across all files to the new scoped package.

Joi 15 handles unsafe integers a bit differently. Updated tests and relevant files.
  • Loading branch information
Drake Costa authored and Drake Costa committed May 2, 2019
1 parent e73f4d3 commit 325d603
Show file tree
Hide file tree
Showing 39 changed files with 4,281 additions and 6,174 deletions.
11 changes: 9 additions & 2 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
module.exports = {
presets: [[require(`@babel/preset-env`), { targets: { node: `8.10` }, useBuiltIns: `usage` }]],
env: {
test: {
sourceMaps: `inline`,
presets: [
[require(`@babel/preset-env`), { targets: { node: `8.10` }, modules: `commonjs`, useBuiltIns: `usage` }]
[
require(`@babel/preset-env`),
{
targets: { node: `8.10` },
modules: `commonjs`,
useBuiltIns: `usage`,
corejs: 3,
}
]
]
}
}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jspm_packages
.webpack
.netlify
/.coverage
/pkg
/dist
/build
/typings
Expand Down
22 changes: 20 additions & 2 deletions example/.babelrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
module.exports = {
presets: [[require(`@babel/preset-env`), { targets: { node: `8.10` }, useBuiltIns: `usage` }]],
presets: [
[
require(`@babel/preset-env`),
{
targets: { node: `8.10` },
modules: `commonjs`,
useBuiltIns: `usage`,
corejs: 3,
}
]
],
env: {
test: {
sourceMaps: `inline`,
presets: [
[require(`@babel/preset-env`), { targets: { node: `8.10` }, modules: `commonjs`, useBuiltIns: `usage` }]
[
require(`@babel/preset-env`),
{
targets: { node: `8.10` },
modules: `commonjs`,
useBuiltIns: `usage`,
corejs: 3,
}
]
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion example/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ApolloServer } from "apollo-server"
import { makeExecutableSchema } from "graphql-tools"
import CustomScalars from "@saeris/graphql-scalars"
import CustomScalars from "../pkg"
import { types } from "./types"
import { resolvers } from "./resolvers"
import { defaultQuery } from "./defaultQuery"
Expand Down
34 changes: 0 additions & 34 deletions example/package.json

This file was deleted.

Loading

0 comments on commit 325d603

Please sign in to comment.