diff --git a/package-lock.json b/package-lock.json index 710eb3a..2b212fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,17 +1,18 @@ { - "name": "pg-codemirror-editor", + "name": "@openwebwork/pg-codemirror-editor", "version": "0.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "pg-codemirror-editor", + "name": "@openwebwork/pg-codemirror-editor", "version": "0.0.1", "license": "MIT", "dependencies": { "@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", @@ -24,7 +25,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": { @@ -74,7 +74,8 @@ } }, "../codemirror-lang-pg": { - "version": "0.1.2", + "name": "@openwebwork/codemirror-lang-pg", + "version": "0.0.1", "extraneous": true, "license": "MIT", "dependencies": { @@ -101,8 +102,8 @@ } }, "../codemirror-lang-pg-link": { - "name": "codemirror-lang-pg", - "version": "0.1.2", + "name": "@openwebwork/codemirror-lang-pg", + "version": "0.0.1", "license": "MIT", "dependencies": { "@codemirror/language": "^6.10.2", @@ -799,6 +800,10 @@ "node": ">= 8" } }, + "node_modules/@openwebwork/codemirror-lang-pg": { + "resolved": "../codemirror-lang-pg-link", + "link": true + }, "node_modules/@replit/codemirror-emacs": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/@replit/codemirror-emacs/-/codemirror-emacs-6.1.0.tgz", @@ -2177,10 +2182,6 @@ "@lezer/lr": "^1.4.2" } }, - "node_modules/codemirror-lang-pg": { - "resolved": "../codemirror-lang-pg-link", - "link": true - }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", diff --git a/package.json b/package.json index 619b29e..ead2d78 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", @@ -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": { diff --git a/src/pg-codemirror-editor.ts b/src/pg-codemirror-editor.ts index e877d17..b04191a 100644 --- a/src/pg-codemirror-editor.ts +++ b/src/pg-codemirror-editor.ts @@ -134,7 +134,7 @@ export class View { private currentLanguage = 'pg'; private languages = new Map Promise>([ - ['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()]