Skip to content

Commit 6e0fb7c

Browse files
authored
Merge pull request #4863 from rmosolgo/update-glob
update glob
2 parents 1c4b1dc + b79cdc7 commit 6e0fb7c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

javascript_client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"prepublishOnly": "tsc"
3939
},
4040
"dependencies": {
41-
"glob": "^7.1.4",
41+
"glob": "^10.0.0",
4242
"minimist": "^1.2.0"
4343
},
4444
"peerDependencies": {

javascript_client/src/__tests__/__snapshots__/syncTest.ts.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javascript_client/src/sync/generateClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import glob from "glob"
1+
import { globSync } from "glob"
22
import prepareRelay from "./prepareRelay"
33
import prepareIsolatedFiles from './prepareIsolatedFiles'
44
import prepareProject from "./prepareProject"
@@ -66,7 +66,7 @@ function gatherOperations(options: GenerateClientCodeOptions) {
6666

6767
var operations: ClientOperation[] = []
6868

69-
var filenames: string[] = glob.sync(graphqlGlob, {})
69+
var filenames: string[] = globSync(graphqlGlob, {}).sort()
7070
if (verbose) {
7171
console.log("[Sync] glob: ", graphqlGlob)
7272
console.log("[Sync] " + filenames.length + " files:")

javascript_client/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"compilerOptions": {
55
/* Basic Options */
66
// "incremental": true, /* Enable incremental compilation */
7-
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
7+
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
88
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
99
// "lib": [], /* Specify library files to be included in the compilation. */
1010
// "allowJs": true, /* Allow javascript files to be compiled. */

0 commit comments

Comments
 (0)