Skip to content

Commit

Permalink
Change the package name to include the @openwebwork scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
drgrice1 committed Oct 7, 2024
1 parent 30793df commit 1a5764f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
21 changes: 11 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pg-codemirror-editor",
"name": "@openwebwork/pg-codemirror-editor",
"version": "0.0.1",
"description": "PG CodeMirror Editor",
"author": "The WeBWorK Project",
Expand Down Expand Up @@ -27,6 +27,7 @@
"@codemirror/lang-html": "^6.4.9",
"@codemirror/lang-xml": "^6.1.0",
"@codemirror/theme-one-dark": "^6.1.2",
"@openwebwork/codemirror-lang-pg": "file:../codemirror-lang-pg-link",
"@replit/codemirror-emacs": "^6.1.0",
"@replit/codemirror-vim": "^6.2.1",
"cm6-theme-basic-dark": "^0.2.0",
Expand All @@ -39,7 +40,6 @@
"cm6-theme-solarized-light": "^0.2.0",
"codemirror": "^6.0.1",
"codemirror-lang-perl": "^0.1.3",
"codemirror-lang-pg": "file:../codemirror-lang-pg-link",
"thememirror": "^2.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/pg-codemirror-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class View {

private currentLanguage = 'pg';
private languages = new Map<string, () => Promise<Extension>>([
['pg', async () => (await import(/* webpackChunkName: 'pg' */ 'codemirror-lang-pg')).pg()],
['pg', async () => (await import(/* webpackChunkName: 'pg' */ '@openwebwork/codemirror-lang-pg')).pg()],
['perl', async () => (await import(/* webpackChunkName: 'perl' */ 'codemirror-lang-perl')).perl()],
['html', async () => (await import(/* webpackChunkName: 'html' */ '@codemirror/lang-html')).html()],
['xml', async () => (await import(/* webpackChunkName: 'xml' */ '@codemirror/lang-xml')).xml()]
Expand Down

0 comments on commit 1a5764f

Please sign in to comment.