diff --git a/packages/semi-json-viewer-core/package.json b/packages/semi-json-viewer-core/package.json index 7bd7a92a81..23021ff87c 100644 --- a/packages/semi-json-viewer-core/package.json +++ b/packages/semi-json-viewer-core/package.json @@ -6,7 +6,8 @@ "module": "lib/index.js", "typings": "src/index.ts", "scripts": { - "build:lib": "node ./script/compileLib.js" + "build:lib": "node ./script/compileLib.js", + "prepublishOnly": "npm run build:lib" }, "files": [ "dist/*",