Skip to content

Commit 35e6065

Browse files
authored
Fix wasm publish (#3003)
1 parent 3914ec2 commit 35e6065

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

internals-js/src/wasm.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ import {aggregateError} from "./error";
1717
import {ErrorLocation, SourceDirective} from "../wasm/node";
1818
import {ASTNode, ConstValueNode, SchemaExtensionNode, StringValueNode} from "graphql";
1919

20-
const {validate_connect_directives} =
21-
require('../wasm/node') as typeof import('../wasm/node');
22-
2320
/**
2421
* @throws AggregateGraphQLError
2522
*/
@@ -49,6 +46,8 @@ function hasConnectDirectives(schema: Schema): boolean {
4946
function validateConnectDirectives(ast: DocumentNode): GraphQLError[] {
5047
// TODO: pass the _original_ source, not the one with added federation stuff (otherwise positions will be wrong)
5148
// TODO: unless, of course, there's already infrastructure up above which does translation somehow
49+
const {validate_connect_directives} =
50+
require('../wasm/node') as typeof import('../wasm/node');
5251
const source = print(ast)
5352
return validate_connect_directives(source).map(
5453
raw => new GraphQLError(raw.message, {

internals-js/wasm/build.sh

-9
This file was deleted.

internals-js/wasm/node/.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# We don't want to check in build artifacts (thus the .gitignore), but we _do_ need NPM to publish those files
2+
# .npmignore overrides .gitignore

0 commit comments

Comments
 (0)