diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-18 11:47:03 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-18 11:47:03 +0800 |
commit | 2e62090bcad19caae0caa427be42dc461c545654 (patch) | |
tree | ce3e8a6ad55b09f779cd82eeeb7f20835f56015d /server/publish.lua | |
parent | 3bccfaedaefdccce70a5336da44625a1f0fd19aa (diff) | |
download | lua-language-server-2e62090bcad19caae0caa427be42dc461c545654.zip |
整理代码
Diffstat (limited to 'server/publish.lua')
-rw-r--r-- | server/publish.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/publish.lua b/server/publish.lua index 6bcb71c0..355b80f4 100644 --- a/server/publish.lua +++ b/server/publish.lua @@ -12,7 +12,7 @@ local json = require 'json' local function loadPackage() local buf = io.load(EXTENSION / 'package.json') local package = json.decode(buf) - return package.version, package.scripts.postinstall + return package.version end local function updateNodeModules(out, postinstall) @@ -109,7 +109,7 @@ local function removeFiles(out) end end -local version, postinstall = loadPackage() +local version = loadPackage() print('版本号为:' .. version) local out = createDirectory(version) |