Skip to content

Commit

Permalink
prep index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Dec 4, 2023
1 parent 189ec7e commit 5571e65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/prep-for-deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5571e65

Please sign in to comment.