Skip to content

Commit 99521df

Browse files
authored
Merge pull request #4 from prometheus-community/improve_dev_linking_with_indexation
Improve dev linking with indexation
2 parents 36fb8f7 + af15cdd commit 99521df

File tree

8 files changed

+10
-60
lines changed

8 files changed

+10
-60
lines changed

CHANGELOG.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ Any contribution or suggestion would be really appreciated. Feel free to use the
3636
## Development
3737
### Run example with local version
3838
```shell script
39+
npm install
3940
npm run build
4041
npm link
4142
cd examples/<example-folder>
42-
npm link monaco-languages-promql
43+
npm install
44+
npm link monaco-promql
4345
npm start
4446
```
4547

docs/angular_integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import { FormsModule } from '@angular/forms';
3636
import { BrowserModule } from '@angular/platform-browser';
3737
import { MonacoEditorModule } from 'ngx-monaco-editor';
3838

39-
import { promLanguageDefinition } from 'monaco-promql/promql/promql.contribution';
39+
import { promLanguageDefinition } from 'monaco-promql';
4040
import { NgxMonacoEditorConfig } from 'ngx-monaco-editor';
4141
import { AppComponent } from './app.component';
4242

docs/react_integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Here is an example of simple component.
2424

2525
```javascript
2626
import MonacoEditor from 'react-monaco-editor';
27-
import {promLanguageDefinition} from 'monaco-promql/promql/promql.contribution';
27+
import {promLanguageDefinition} from 'monaco-promql';
2828

2929
function App() {
3030
function editorWillMount(monaco) {

examples/angular-promql/src/app/app.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import {NgModule} from '@angular/core';
2626
import {AppRoutingModule} from './app-routing.module';
2727
import {AppComponent} from './app.component';
2828

29-
import {promLanguageDefinition} from 'monaco-promql/promql/promql.contribution';
29+
import {promLanguageDefinition} from 'monaco-promql';
3030
import {MonacoEditorModule, NgxMonacoEditorConfig} from 'ngx-monaco-editor';
31-
import {FormsModule} from "@angular/forms";
31+
import {FormsModule} from '@angular/forms';
3232

3333

3434
export function onMonacoLoad(): void {

examples/react-promql/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import React from 'react';
2424
import MonacoEditor from 'react-monaco-editor';
25-
import {promLanguageDefinition} from 'monaco-promql/promql/promql.contribution';
25+
import {promLanguageDefinition} from 'monaco-promql';
2626

2727

2828
function App() {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

2323
'use strict';
2424

25-
import './promql/promql.contribution.ts';
25+
export * from './promql/promql.contribution';

0 commit comments

Comments
 (0)