From b4259c3b24069f6db78368d0163d9df5c6416215 Mon Sep 17 00:00:00 2001 From: rajsite Date: Fri, 26 Apr 2024 00:04:51 -0500 Subject: [PATCH] Move split wrapper to npm script --- make-it/EmMakefile | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/make-it/EmMakefile b/make-it/EmMakefile index b60b4d27d..5e73c3c1e 100644 --- a/make-it/EmMakefile +++ b/make-it/EmMakefile @@ -182,7 +182,7 @@ $(OBJS): @$(MKDIR) -p $(OBJS) $(PREJS) $(POSTJS): $(CORESOURCEDIR)/vireo.wrapper.js - node splitVireoWrapper.js $(CORESOURCEDIR)/vireo.wrapper.js $(PREJS) $(POSTJS) + npm run split-wrapper -- $(CORESOURCEDIR)/vireo.wrapper.js $(PREJS) $(POSTJS) vjs: $(DIST)/vireo.js $(DIST)/vireo.min.js diff --git a/package.json b/package.json index ad3bb9431..dd1ba1ebc 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,8 @@ "lint-markdown-style": "markdownlint {./*.md,./docs/*.md}", "prehttpbin": "python -V && pip -V && virtualenv --version && tox --version", "httpbin": "tox", - "httpbin-start": "start cmd /c npm run httpbin" + "httpbin-start": "start cmd /c npm run httpbin", + "split-wrapper": "cd make-it && node splitVireoWrapper.js" }, "repository": { "type": "git",