Skip to content

Commit 496c364

Browse files
committed
fix: build issue
1 parent 3ae2c35 commit 496c364

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

packages/graphql-language-service-server/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@
3838
},
3939
"COMMENT": "please do not remove dependencies without thorough testing. many dependencies are not imported directly, as they are peer dependencies",
4040
"dependencies": {
41+
"@astrojs/compiler": "^2.8.0",
4142
"@babel/parser": "^7.23.6",
4243
"@babel/types": "^7.23.5",
4344
"@graphql-tools/code-file-loader": "8.0.3",
4445
"@vue/compiler-sfc": "^3.4.5",
45-
"astrojs-compiler-sync": "1.0.0",
46+
"astrojs-compiler-sync": "^1.0.0",
4647
"cosmiconfig-toml-loader": "^1.0.0",
4748
"dotenv": "10.0.0",
4849
"fast-glob": "^3.2.7",

packages/graphql-language-service-server/src/MessageProcessor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class MessageProcessor {
128128
private _isGraphQLConfigMissing: boolean | null = null;
129129
private _willShutdown = false;
130130
private _logger: Logger | NoopLogger;
131-
private _parser: (text: string, uri: string) => Promise<CachedContent[]>;
131+
private _parser: (text: string, uri: string) => CachedContent[];
132132
private _tmpDir: string;
133133
private _tmpDirBase: string;
134134
private _loadConfigOptions: LoadConfigOptions;
@@ -160,7 +160,7 @@ export class MessageProcessor {
160160
}
161161
this._connection = connection;
162162
this._logger = logger;
163-
this._parser = async (text, uri) => {
163+
this._parser = (text, uri) => {
164164
const p = parser ?? parseDocument;
165165
return p(text, uri, fileExtensions, graphqlFileExtensions, this._logger);
166166
};

packages/monaco-graphql/test/monaco-editor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('monaco-editor', () => {
1313
// expect(lines[0]).toBe('$ vite build');
1414
// expect(lines[1]).toMatch(' building for production...');
1515
// expect(lines[2]).toBe('transforming...');
16-
expect(lines[3]).toMatch('✓ 841 modules transformed.');
16+
expect(lines[3]).toMatch('✓ 843 modules transformed.');
1717
// expect(lines[4]).toBe('rendering chunks...');
1818
// expect(lines[5]).toBe('computing gzip size...');
1919
// expect(lines[6]).toMatch('dist/index.html');

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6948,7 +6948,7 @@ astral-regex@^2.0.0:
69486948
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31"
69496949
integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==
69506950

6951-
6951+
astrojs-compiler-sync@^1.0.0:
69526952
version "1.0.0"
69536953
resolved "https://registry.yarnpkg.com/astrojs-compiler-sync/-/astrojs-compiler-sync-1.0.0.tgz#9991bd4cd09b60f41687e86b137171012722dbf3"
69546954
integrity sha512-IM6FxpMoBxkGGdKppkFHNQIC9Wge7jspG2MIJff8DOhG41USNJLxJfxRm7wnkTKWlYK5Y1YFFNYr2vUUKkI8sw==

0 commit comments

Comments
 (0)