From 2c3c2d0d80d4bf485c9b12f87c49ca8a554afed7 Mon Sep 17 00:00:00 2001 From: Puru Vijay <47742487+PuruVJ@users.noreply.github.com> Date: Fri, 12 May 2023 22:46:26 +0530 Subject: [PATCH] fix(repl): Minor fixes (#478) * Update deps * Update deps, rename capitalicase * Add changeset --- .changeset/fresh-countries-hear.md | 5 + packages/repl/package.json | 49 ++-- .../repl/src/lib/Input/ModuleEditor.svelte | 5 +- packages/repl/src/lib/Repl.svelte | 14 +- packages/repl/src/lib/types.d.ts | 2 +- .../lib/workers/bundler/plugins/commonjs.js | 13 +- .../src/lib/workers/bundler/plugins/glsl.js | 4 +- .../src/lib/workers/bundler/plugins/json.js | 4 +- .../lib/workers/bundler/plugins/replace.js | 26 +- pnpm-lock.yaml | 222 ++++++++---------- 10 files changed, 173 insertions(+), 171 deletions(-) create mode 100644 .changeset/fresh-countries-hear.md diff --git a/.changeset/fresh-countries-hear.md b/.changeset/fresh-countries-hear.md new file mode 100644 index 00000000..82966372 --- /dev/null +++ b/.changeset/fresh-countries-hear.md @@ -0,0 +1,5 @@ +--- +'@sveltejs/repl': patch +--- + +Minor fixes diff --git a/packages/repl/package.json b/packages/repl/package.json index f205ae60..84754376 100644 --- a/packages/repl/package.json +++ b/packages/repl/package.json @@ -1,16 +1,13 @@ { "name": "@sveltejs/repl", "version": "0.5.0-next.2", - "scripts": { - "dev": "vite dev", - "build": "vite build && npm run package", - "preview": "vite preview", - "package": "svelte-kit sync && svelte-package && publint", - "watch": "svelte-package --watch", - "prepublishOnly": "npm run package", - "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", - "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch" + "license": "MIT", + "publishConfig": { + "access": "public" }, + "svelte": "./dist/index.js", + "types": "./dist/index.d.ts", + "type": "module", "exports": { "./package.json": "./package.json", ".": { @@ -29,26 +26,35 @@ "files": [ "dist" ], + "scripts": { + "dev": "vite dev", + "build": "vite build && npm run package", + "preview": "vite preview", + "package": "svelte-kit sync && svelte-package && publint", + "watch": "svelte-package --watch", + "prepublishOnly": "npm run package", + "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch" + }, "peerDependencies": { "svelte": "^3.54.0" }, "devDependencies": { "@fontsource/fira-mono": "^4.5.10", - "@playwright/test": "^1.33.0", "@sveltejs/adapter-auto": "^2.0.1", - "@sveltejs/kit": "^1.15.10", + "@sveltejs/kit": "^1.16.3", "@sveltejs/package": "^2.0.2", "@types/marked": "^4.3.0", "publint": "^0.1.11", - "svelte": "^3.58.0", - "svelte-check": "^3.2.0", + "svelte": "^3.59.1", + "svelte-check": "^3.3.2", "tslib": "^2.5.0", "typescript": "^5.0.4", - "vite": "^4.3.4" + "vite": "^4.3.5" }, "dependencies": { - "@codemirror/autocomplete": "^6.6.0", - "@codemirror/commands": "^6.2.3", + "@codemirror/autocomplete": "^6.7.0", + "@codemirror/commands": "^6.2.4", "@codemirror/lang-css": "^6.2.0", "@codemirror/lang-javascript": "^6.1.7", "@codemirror/lang-json": "^6.0.1", @@ -56,23 +62,20 @@ "@codemirror/language": "^6.6.0", "@codemirror/lint": "^6.2.1", "@codemirror/state": "^6.2.0", - "@codemirror/view": "^6.10.1", + "@codemirror/view": "^6.11.1", "@jridgewell/sourcemap-codec": "^1.4.15", "@lezer/highlight": "^1.1.4", "@neocodemirror/svelte": "0.0.8", "@replit/codemirror-lang-svelte": "^6.0.0", "@rich_harris/svelte-split-pane": "^1.1.0", - "@rollup/browser": "^3.21.3", + "@rollup/browser": "^3.21.6", "@sveltejs/site-kit": "5.0.4", "acorn": "^8.8.2", "codemirror": "^6.0.1", "esm-env": "^1.0.0", "estree-walker": "^3.0.3", - "marked": "^5.0.0", + "marked": "^5.0.2", "resolve.exports": "^2.0.2", "svelte-json-tree": "^1.0.0" - }, - "svelte": "./dist/index.js", - "types": "./dist/index.d.ts", - "type": "module" + } } diff --git a/packages/repl/src/lib/Input/ModuleEditor.svelte b/packages/repl/src/lib/Input/ModuleEditor.svelte index 3f3e077c..6431561c 100644 --- a/packages/repl/src/lib/Input/ModuleEditor.svelte +++ b/packages/repl/src/lib/Input/ModuleEditor.svelte @@ -30,7 +30,7 @@ } } - $: diagnostics = + $: diagnostics = /** @type {import('@codemirror/lint').Diagnostics[]} */ ( $selected && error_file === get_full_filename($selected) ? [ ...(error @@ -50,7 +50,8 @@ message: warning.message })) ] - : []; + : [] + );