From 5571e65ca44bfac998030c70fec67ab53dd1b2f5 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Mon, 4 Dec 2023 11:14:46 -0800 Subject: [PATCH] prep index.js --- build/prep-for-deploy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/prep-for-deploy.js b/build/prep-for-deploy.js index 536550d..e27ecbe 100644 --- a/build/prep-for-deploy.js +++ b/build/prep-for-deploy.js @@ -12,11 +12,11 @@ fs.writeFileSync(ignoreFilename, newIgnore); const version = parseInt(JSON.parse(fs.readFileSync('package.json', {encoding: 'utf8'})).version); function transformJS(src) { - return src.replace(/'.*?'\s+\/*\s+muigui-include\s+*\//g, `dist/${version}.x/muigui.module.js`); + return src.replace(/'.*?';\s+\/\*\s+muigui-include\s+\*\//g, `'/dist/${version}.x/muigui.module.js';`); } [ - 'examples/js/index.js', + 'examples/js/index/index.js', ].forEach(filename => { const src = fs.readFileSync(filename, {encoding: 'utf8'}); const dst = transformJS(src);