From c681cccd442d97355054b4c49908a19b3a04027d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Fri, 18 Sep 2020 14:11:30 +0800 Subject: [PATCH] 1.2.0 --- CHANGELOG.md | 4 ++++ build_system.js | 2 ++ index.js | 1 + package.json | 2 +- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de974df..940f478 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # 更新日志 +## [1.2.0] 2020-09-18 +- 增加cjs, mjs支持 +- build之前先stop + ## [1.1.1] 2019-01-05 - 增加php支持 diff --git a/build_system.js b/build_system.js index 666e166..7d347f0 100644 --- a/build_system.js +++ b/build_system.js @@ -24,6 +24,8 @@ const EXTS = { '.dart': 'dart', '.go': 'go run', '.js': 'node', + '.cjs': 'node', + '.mjs': 'node', '.json': 'npm start', '.py': 'python -u', '.php': 'php', diff --git a/index.js b/index.js index 0180c97..25ee750 100644 --- a/index.js +++ b/index.js @@ -26,6 +26,7 @@ function activate(ctx) { }) const build = vsc.commands.registerCommand('BuildSystem.build', _ => { + BuildSystem.stop() BuildSystem.build() }) diff --git a/package.json b/package.json index ebf8b30..0401b19 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "build-system", "displayName": "sublime build system", "description": "🔥 类似sublime的Build System功能, 方便快速调试一些代码片断或想法。", - "version": "1.1.1", + "version": "1.2.0", "publisher": "yutent", "author": "Yutent [@yutent]", "icon": "logo.png",