Skip to content

Commit

Permalink
chose(deps): update GraphQLCompiler dependencies (apollographql/apoll…
Browse files Browse the repository at this point in the history
  • Loading branch information
calvincestari authored and gh-action-runner committed Dec 7, 2023
1 parent b76b885 commit 4cc288c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Sources/GraphQLCompiler/ApolloCodegenFrontendBundle.swift

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions Sources/GraphQLCompiler/JavaScript/auto_rollup.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/usr/bin/env bash
set -e

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
output_file="$SCRIPT_DIR/../ApolloCodegenFrontendBundle.swift"
$( cd "$SCRIPT_DIR" && rollup -c )
cd "$SCRIPT_DIR" && npm run build
minJS=$(cat "$SCRIPT_DIR/dist/ApolloCodegenFrontend.bundle.js")
printf "%s%s%s" "let ApolloCodegenFrontendBundle: String = #\"" "$minJS" "\"#" > $output_file
printf "%s%s%s" "let ApolloCodegenFrontendBundle: String = #\"" "$minJS" "\"#" > "$output_file"
exit 0
16 changes: 8 additions & 8 deletions Sources/GraphQLCompiler/JavaScript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@
"license": "MIT",
"author": "Apollo GraphQL <[email protected]>",
"scripts": {
"build": "rollup --config",
"build": "rollup --config --bundleConfigAsCjs",
"test": "jest"
},
"engines": {
"npm": ">=7"
},
"dependencies": {
"graphql": "17.0.0-alpha.3",
"graphql": "17.0.0-alpha.2",
"tslib": "^2.3.0"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-replace": "5.0.5",
"@rollup/plugin-typescript": "11.1.5",
"@types/common-tags": "1.8.4",
"@types/jest": "26.0.24",
"@types/jest": "29.5.10",
"common-tags": "1.8.2",
"jest": "26.6.3",
"rollup": "2.79.1",
"rollup-plugin-terser": "7.0.2",
"ts-jest": "26.5.6",
"typescript": "4.9.5"
"jest": "29.7.0",
"rollup": "4.6.1",
"@rollup/plugin-terser": "0.4.4",
"ts-jest": "29.1.1",
"typescript": "5.3.2"
}
}
3 changes: 2 additions & 1 deletion Sources/GraphQLCompiler/JavaScript/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import typescript from "@rollup/plugin-typescript";
import { nodeResolve } from "@rollup/plugin-node-resolve";
import replace from "@rollup/plugin-replace";
import { terser } from "rollup-plugin-terser";
import terser from "@rollup/plugin-terser";

/** @type {import('rollup').RollupOptions} */
const options = {
Expand All @@ -21,6 +21,7 @@ const options = {
dedupe: ["graphql"],
}),
replace({
preventAssignment: true,
"process.env.NODE_ENV": JSON.stringify("production"),
}),
terser({
Expand Down

0 comments on commit 4cc288c

Please sign in to comment.