Skip to content

Commit

Permalink
comment in underscore package patch to pass build
Browse files Browse the repository at this point in the history
  • Loading branch information
sakazuki committed Oct 25, 2021
1 parent 6c000d9 commit 5ea2087
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function copyFiles() {
async function patchFiles() {
await fs.copy('patch/underscore-package.json', path.join(__dirname, "node_modules/nomnom/node_modules/underscore/package.json"));
// issue#49 https://github.com/sakazuki/node-red-desktop/issues/49
await fs.copy('patch/i18n.js', path.join(__dirname, "node_modules/@node-red/util/lib/i18n.js"));
// await fs.copy('patch/i18n.js', path.join(__dirname, "node_modules/@node-red/util/lib/i18n.js"));
return ['nomnom/*/underscore/package.json', '@node-red/util/lib/i18.js'];
}

Expand All @@ -46,8 +46,8 @@ async function main() {
const noopts = !(opts.setup || opts.build)
try {
if (noopts || opts.setup) {
// const patched = await patchFiles();
// console.log(`Patched ${patched}.`);
const patched = await patchFiles();
console.log(`Patched ${patched}.`);
const copied = await copyFiles();
console.log(`Copy ${copied} to dist/*`);
}
Expand Down

0 comments on commit 5ea2087

Please sign in to comment.