From ce1680b7fe89751f8a08f211cecd943dd9829feb Mon Sep 17 00:00:00 2001 From: javenleung <914301050@qq.com> Date: Tue, 30 May 2023 20:18:01 +0800 Subject: [PATCH] fix: rsd config template mjs --- package.json | 2 +- src/commands/create.js | 2 +- templates/{rsd.config.js => rsd.config.mjs} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename templates/{rsd.config.js => rsd.config.mjs} (100%) diff --git a/package.json b/package.json index 73a029e..db6c1e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-source-debugger", - "version": "1.1.2", + "version": "1.1.3", "description": "A tool for quickly setting up the environment of debugging React source code.", "main": "src/index.js", "type": "module", diff --git a/src/commands/create.js b/src/commands/create.js index 02eefb1..80c839d 100644 --- a/src/commands/create.js +++ b/src/commands/create.js @@ -11,7 +11,7 @@ export default function create(projectName) { throw new Error(`Already has a directory or file named ${projectName}`); } shell.mkdir('-p', projectName); - shell.cp(path.join(projectRoot, './templates/rsd.config.js'), dir); + shell.cp(path.join(projectRoot, './templates/rsd.config.mjs'), dir); } catch (e) { hint.error(e); process.exit(1); diff --git a/templates/rsd.config.js b/templates/rsd.config.mjs similarity index 100% rename from templates/rsd.config.js rename to templates/rsd.config.mjs