Skip to content
This repository was archived by the owner on Nov 6, 2018. It is now read-only.

Commit 8debdf9

Browse files
committed
refactor: make main module (import 'sourcegraph') export ext API
Previously, extensions needed to `import 'sourcegraph/module/extension'`. Now they can just `import 'sourcegraph'`. BREAKING CHANGE: Extensions must change imports from `import 'sourcegraph/module/extension'` to `import 'sourcegraph'`.
1 parent 1e890c2 commit 8debdf9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"main": "lib/index.js",
1515
"module": "module/index.js",
16+
"types": "lib/index.d.ts",
1617
"files": [
1718
"lib",
1819
"module"

src/extension/index.ts

-3
This file was deleted.

src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export { activateExtension } from './extension/extension'
2+
export { SourcegraphExtensionAPI } from './extension/api'
3+
export * from './protocol'

0 commit comments

Comments
 (0)