From cffa66267a2c31fb13cdcf41e2c68dd549c9cc07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 5 Aug 2019 21:14:45 +0800 Subject: =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=97=B6=E4=B8=8D=E8=A6=81=E6=9B=B4?= =?UTF-8?q?=E6=96=B0npm=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 --- server/publish.lua | 5 +---- server/test/build_package.lua | 3 --- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/package.json b/package.json index 5fbe5d47..03419b28 100644 --- a/package.json +++ b/package.json @@ -309,8 +309,5 @@ "type": "git", "url": "https://github.com/sumneko/lua-language-server" }, - "scripts": { - "vscode:prepublish": "cd client && npm run update-vscode && cd .." - }, "version": "0.11.4" } \ No newline at end of file diff --git a/server/publish.lua b/server/publish.lua index bc3588dd..208aa309 100644 --- a/server/publish.lua +++ b/server/publish.lua @@ -136,6 +136,7 @@ removeFiles(out)(true) print('开始复制文件...') local count = copyFiles(EXTENSION , out) { ['client'] = { + ['node_modules'] = true, ['out'] = true, ['package-lock.json'] = true, ['package.json'] = true, @@ -162,10 +163,6 @@ local count = copyFiles(EXTENSION , out) { } print(('复制了[%d]个文件'):format(count)) - -print('更新NodeModules...') -updateNodeModules(out, 'cd client && npm install && cd ..') - print('开始测试...') runTest(out / 'server') diff --git a/server/test/build_package.lua b/server/test/build_package.lua index e8162db7..a54917f2 100644 --- a/server/test/build_package.lua +++ b/server/test/build_package.lua @@ -131,9 +131,6 @@ local package = { path = "syntaxes/lua.tmLanguage.json" } } - }, - scripts = { - ["vscode:prepublish"] = "cd client && npm run update-vscode && cd .." }, __metadata = { id = "3a15b5a7-be12-47e3-8445-88ee3eabc8b2", -- cgit v1.2.3