Skip to content

Commit

Permalink
fix: build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed May 26, 2024
1 parent 3ae2c35 commit 496c364
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/graphql-language-service-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
},
"COMMENT": "please do not remove dependencies without thorough testing. many dependencies are not imported directly, as they are peer dependencies",
"dependencies": {
"@astrojs/compiler": "^2.8.0",
"@babel/parser": "^7.23.6",
"@babel/types": "^7.23.5",
"@graphql-tools/code-file-loader": "8.0.3",
"@vue/compiler-sfc": "^3.4.5",
"astrojs-compiler-sync": "1.0.0",
"astrojs-compiler-sync": "^1.0.0",
"cosmiconfig-toml-loader": "^1.0.0",
"dotenv": "10.0.0",
"fast-glob": "^3.2.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class MessageProcessor {
private _isGraphQLConfigMissing: boolean | null = null;
private _willShutdown = false;
private _logger: Logger | NoopLogger;
private _parser: (text: string, uri: string) => Promise<CachedContent[]>;
private _parser: (text: string, uri: string) => CachedContent[];
private _tmpDir: string;
private _tmpDirBase: string;
private _loadConfigOptions: LoadConfigOptions;
Expand Down Expand Up @@ -160,7 +160,7 @@ export class MessageProcessor {
}
this._connection = connection;
this._logger = logger;
this._parser = async (text, uri) => {
this._parser = (text, uri) => {
const p = parser ?? parseDocument;
return p(text, uri, fileExtensions, graphqlFileExtensions, this._logger);
};
Expand Down
2 changes: 1 addition & 1 deletion packages/monaco-graphql/test/monaco-editor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('monaco-editor', () => {
// expect(lines[0]).toBe('$ vite build');
// expect(lines[1]).toMatch(' building for production...');
// expect(lines[2]).toBe('transforming...');
expect(lines[3]).toMatch('✓ 841 modules transformed.');
expect(lines[3]).toMatch('✓ 843 modules transformed.');
// expect(lines[4]).toBe('rendering chunks...');
// expect(lines[5]).toBe('computing gzip size...');
// expect(lines[6]).toMatch('dist/index.html');
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6948,7 +6948,7 @@ astral-regex@^2.0.0:
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31"
integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==

[email protected]:
astrojs-compiler-sync@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/astrojs-compiler-sync/-/astrojs-compiler-sync-1.0.0.tgz#9991bd4cd09b60f41687e86b137171012722dbf3"
integrity sha512-IM6FxpMoBxkGGdKppkFHNQIC9Wge7jspG2MIJff8DOhG41USNJLxJfxRm7wnkTKWlYK5Y1YFFNYr2vUUKkI8sw==
Expand Down

0 comments on commit 496c364

Please sign in to comment.