diff --git a/cli/bin/actions/modify.js b/cli/bin/actions/modify.js index ee847a1a6b2f..19d780ed963c 100644 --- a/cli/bin/actions/modify.js +++ b/cli/bin/actions/modify.js @@ -64,6 +64,7 @@ class Compiler { this.cwd = cwd; } async watch() { + const hasI18n = existsSync(resolve(this.cwd, `${service}.json`)); this.compiler = webpack({ mode: "none", resolveLoader: { @@ -93,11 +94,14 @@ class Compiler { from: resolve(this.cwd, "metadata.json"), to: "metadata.json", }, - { - from: resolve(this.cwd, `${service}.json`), - to: `${service}.json`, - noErrorOnMissing: true, - }, + ...(hasI18n + ? [ + { + from: resolve(this.cwd, `${service}.json`), + to: `${service}.json`, + }, + ] + : []), ], }), new webpack.WatchIgnorePlugin({ @@ -191,7 +195,8 @@ class Compiler { } const compiler = new Compiler(presencePath); watch(presencePath, { depth: 0, persistent: true, ignoreInitial: true }).on("all", async (event, file) => { - if (["add", "unlink"].includes(event) && basename(file) === "iframe.ts") + if (["add", "unlink"].includes(event) && + ["iframe.ts", `${service}.json`].includes(basename(file))) return await compiler.restart(); if (basename(file) === "package.json") { if (["add", "change"].includes(event) && @@ -236,7 +241,7 @@ async function sendPresenceToExtension(path) { if (extname(f) === ".json") return { file: f, - contents: JSON.parse(readFileSync(`${path}/${f}`).toString()), + contents: JSON.parse(readFileSync(`${path}/${f}`).toString() || "{}"), }; else if (extname(f) === ".js") return { @@ -248,4 +253,4 @@ async function sendPresenceToExtension(path) { })), })); } -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kaWZ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FjdGlvbnMvbW9kaWZ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBd0IsTUFBTSxPQUFPLENBQUM7QUFFN0MsT0FBTyxFQUFZLFVBQVUsRUFBRSxZQUFZLEVBQUUsV0FBVyxFQUFFLE1BQU0sSUFBSSx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0tBQ1A7SUFDRCxNQUFNLEVBQUUsSUFBSSxDQUNYLElBQUksQ0FBQyxTQUFTLENBQUM7UUFDZCxJQUFJLEVBQUUsZUFBZTtRQUNyQixLQUFLLEVBQUUsTUFBTSxPQUFPLENBQUMsR0FBRyxDQUN2QixXQUFXLENBQUMsSUFBSSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFO1lBQ3pCLElBQUksT0FBTyxDQUFDLENBQUMsQ0FBQyxLQUFLLE9BQU87Z0JBQ3pCLE9BQU87b0JBQ04sSUFBSSxFQUFFLENBQUM7b0JBQ1AsUUFBUSxFQUFFLElBQUksQ0FBQyxLQUFLLENBQ25CLFlBQVksQ0FBQyxHQUFHLElBQUksSUFBSSxDQUFDLEVBQUUsQ0FBQyxDQUFDLFFBQVEsRUFBRSxJQUFJLElBQUksQ0FDL0M7aUJBQ0QsQ0FBQztpQkFDRSxJQUFJLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxLQUFLO2dCQUM1QixPQUFPO29CQUNOLElBQUksRUFBRSxDQUFDO29CQUNQLFFBQVEsRUFBRSxZQUFZLENBQUMsR0FBRyxJQUFJLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQyxRQUFRLEVBQUU7aUJBQ2pELENBQUM7O2dCQUNFLE9BQU87UUFDYixDQUFDLENBQUMsQ0FDRjtLQUNELENBQUMsQ0FDRixDQUFDO0FBQ0gsQ0FBQyJ9 \ No newline at end of file diff --git a/cli/src/actions/modify.ts b/cli/src/actions/modify.ts index 4ee9272309a1..6f8f6b5a144a 100644 --- a/cli/src/actions/modify.ts +++ b/cli/src/actions/modify.ts @@ -89,6 +89,7 @@ class Compiler { constructor(private cwd: string) {} async watch() { + const hasI18n = existsSync(resolve(this.cwd, `${service}.json`)); this.compiler = webpack({ mode: "none", resolveLoader: { @@ -117,11 +118,14 @@ class Compiler { from: resolve(this.cwd, "metadata.json"), to: "metadata.json", }, - { - from: resolve(this.cwd, `${service}.json`), - to: `${service}.json`, - noErrorOnMissing: true, - }, + ...(hasI18n + ? [ + { + from: resolve(this.cwd, `${service}.json`), + to: `${service}.json`, + }, + ] + : []), ], }), new webpack.WatchIgnorePlugin({ @@ -244,7 +248,10 @@ const compiler = new Compiler(presencePath); watch(presencePath, { depth: 0, persistent: true, ignoreInitial: true }).on( "all", async (event, file) => { - if (["add", "unlink"].includes(event) && basename(file) === "iframe.ts") + if ( + ["add", "unlink"].includes(event) && + ["iframe.ts", `${service}.json`].includes(basename(file)) + ) return await compiler.restart(); if (basename(file) === "package.json") { @@ -298,7 +305,9 @@ async function sendPresenceToExtension(path: PathLike) { if (extname(f) === ".json") return { file: f, - contents: JSON.parse(readFileSync(`${path}/${f}`).toString()), + contents: JSON.parse( + readFileSync(`${path}/${f}`).toString() || "{}" + ), }; else if (extname(f) === ".js") return {