From df69c7fcbf650077807b9881912c9f863a66817e Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Tue, 26 Nov 2019 19:29:06 -0500 Subject: [PATCH] chore: esm build for lsp service for extensions --- packages/graphql-language-service/package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/graphql-language-service/package.json b/packages/graphql-language-service/package.json index 4a4b90da202..e7cb410c0af 100644 --- a/packages/graphql-language-service/package.json +++ b/packages/graphql-language-service/package.json @@ -17,7 +17,8 @@ "license": "MIT", "files": [ "bin", - "dist" + "dist", + "esm" ], "keywords": [ "graphql", @@ -25,8 +26,9 @@ ], "scripts": { "test": "node ../../resources/runTests.js", - "build": "yarn run build-js && yarn run build-flow", + "build": "yarn run build-js && yarn build-esm && yarn run build-flow", "build-js": "node ../../resources/buildJs.js", + "build-esm": "ESM=true babel src --root-mode upward --ignore __tests__ --out-dir esm", "build-flow": "node ../../resources/buildFlow.js", "prepublish": "node ../../resources/prepublish.js" },