From f5530ef0804dff5ebd0dd4222565eb5b9dbc4c90 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Tue, 25 Jun 2024 10:31:15 +0200 Subject: [PATCH] ensure that monaco.bundle.js exists - fixes #63 --- monaco/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monaco/package.json b/monaco/package.json index 25d3f15..1aa1709 100644 --- a/monaco/package.json +++ b/monaco/package.json @@ -4,9 +4,10 @@ "description": "Yjs ❤ Monaco", "main": "index.js", "scripts": { + "ensureBundle": "[ -f ./dist/monaco.bundle.js ] || npm run dist", "watch": "webpack -w --stats errors-only", "dist": "webpack --mode=production", - "start": "webpack serve --open monaco.html" + "start": "npm run ensureBundle && webpack serve --open monaco.html" }, "author": "Kevin Jahns ", "license": "UNLICENSE",