diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-08-05 21:14:45 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-08-05 21:14:45 +0800 |
commit | cffa66267a2c31fb13cdcf41e2c68dd549c9cc07 (patch) | |
tree | e8a3bcb7328f32c02a364aba27424ac087116e17 | |
parent | a55c0e9c0b47fa02863c4847fdfeaf507fbce16d (diff) | |
download | lua-language-server-cffa66267a2c31fb13cdcf41e2c68dd549c9cc07.zip |
发布时不要更新npm了
-rw-r--r-- | package.json | 3 | ||||
-rw-r--r-- | server/publish.lua | 5 | ||||
-rw-r--r-- | server/test/build_package.lua | 3 |
3 files changed, 1 insertions, 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 @@ -132,9 +132,6 @@ local package = { } } }, - scripts = { - ["vscode:prepublish"] = "cd client && npm run update-vscode && cd .." - }, __metadata = { id = "3a15b5a7-be12-47e3-8445-88ee3eabc8b2", publisherDisplayName = "sumneko", |