Skip to content

Commit

Permalink
Merge pull request #68 from cucumber/fix-standalone
Browse files Browse the repository at this point in the history
Fix standalone startup (hopefully)
  • Loading branch information
aslakhellesoy authored Oct 10, 2022
2 parents 48f00c6 + 0aabbd7 commit b5927d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/cucumber-language-server.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
/* eslint-disable @typescript-eslint/no-var-requires */
require('source-map-support').install()
const { startWasmServer } = require('../dist/cjs/src/wasm/startWasmServer')
startWasmServer(`${__dirname}/../node_modules/@cucumber/language-service/dist`)
const { NodeFiles } = require('../dist/cjs/src/node/NodeFiles')
const url = require('url')
const wasmBaseUrl = url.pathToFileURL(
`${__dirname}/../node_modules/@cucumber/language-service/dist`
)
startWasmServer(wasmBaseUrl.href, (rootUri) => new NodeFiles(rootUri))

0 comments on commit b5927d3

Please sign in to comment.