Version
Vben Admin V5
Describe the bug?
报错信息如下:
PS C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main> pnpm publint
$ vsh publint
Error reading JSON file: SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at readJSON (file:///C:/Users/Zmrbak/Desktop/vben/1/vue-vben-admin-main/internal/node-utils/dist/index.mjs:87:15)
at async readCache (file:///C:/Users/Zmrbak/Desktop/vben/1/vue-vben-admin-main/scripts/vsh/dist/index.mjs:349:10)
at async CAC.runPublint (file:///C:/Users/Zmrbak/Desktop/vben/1/vue-vben-admin-main/scripts/vsh/dist/index.mjs:357:16)
at async main (file:///C:/Users/Zmrbak/Desktop/vben/1/vue-vben-admin-main/scripts/vsh/dist/index.mjs:452:3)
20:33:09
C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main\packages@core\base\design\package.json 20:33:09
[20:33:09] The package appears to be consumed by bundlers but does not specify "sideEffects". Consider adding "sideEffects": false so bundlers can optimize tree-shaking if your package has no side effects. https://publint.dev/rules#use_side_effects
20:33:09
C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main\packages@core\base\icons\package.json 20:33:09
[20:33:09] The package appears to be consumed by bundlers but does not specify "sideEffects". Consider adding "sideEffects": false so bundlers can optimize tree-shaking if your package has no side effects. https://publint.dev/rules#use_side_effects
20:33:09
C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main\packages@core\base\typings\package.json 20:33:09
[20:33:09] The package appears to be consumed by bundlers but does not specify "sideEffects". Consider adding "sideEffects": false so bundlers can optimize tree-shaking if your package has no side effects. https://publint.dev/rules#use_side_effects
20:33:09
C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main\packages@core\preferences\package.json 20:33:09
pkg.publishConfig.exports["."].default is ./dist/index.mjs but the file does not exist. https://publint.dev/rules#file_does_not_exist 20:33:09
pkg.publishConfig.exports["."].types is ./dist/index.d.ts but the file does not exist. https://publint.dev/rules#file_does_not_exist 20:33:09
pkg.main is ./dist/index.mjs but the file does not exist. https://publint.dev/rules#file_does_not_exist 20:33:09
pkg.module is ./dist/index.mjs but the file does not exist. https://publint.dev/rules#file_does_not_exist 20:33:09
pkg.types is ./dist/index.d.ts but the file does not exist. https://publint.dev/rules#file_does_not_exist 20:33:09
20:33:09
C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main\playground\package.json 20:33:09
The package publishes internal tests or config files. You can use pkg.files to only publish certain files and save user bandwidth. https://publint.dev/rules#use_files 20:33:09
ERROR ✖ 9 problem (5 errors, 0 warnings, 4 suggestions) 20:33:09
[ELIFECYCLE] Command failed with exit code 1.
Reproduction
处理办法(不知是否正确,但是不报错了):
packages@core\base\design\package.json
packages@core\base\icons\package.json
packages@core\base\typings\package.json
packages@core\preferences\package.json
playground\package.json
System Info
Relevant log output
C:\Users\Zmrbak\Desktop\vben\vue-vben-admin-main>pnpm publint
$ vsh publint
✔ No problem
Validations
Version
Vben Admin V5
Describe the bug?
报错信息如下:
PS C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main> pnpm publint
$ vsh publint
Error reading JSON file: SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at readJSON (file:///C:/Users/Zmrbak/Desktop/vben/1/vue-vben-admin-main/internal/node-utils/dist/index.mjs:87:15)
at async readCache (file:///C:/Users/Zmrbak/Desktop/vben/1/vue-vben-admin-main/scripts/vsh/dist/index.mjs:349:10)
at async CAC.runPublint (file:///C:/Users/Zmrbak/Desktop/vben/1/vue-vben-admin-main/scripts/vsh/dist/index.mjs:357:16)
at async main (file:///C:/Users/Zmrbak/Desktop/vben/1/vue-vben-admin-main/scripts/vsh/dist/index.mjs:452:3)
20:33:09
C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main\packages@core\base\design\package.json 20:33:09
[20:33:09] The package appears to be consumed by bundlers but does not specify "sideEffects". Consider adding "sideEffects": false so bundlers can optimize tree-shaking if your package has no side effects. https://publint.dev/rules#use_side_effects
20:33:09
C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main\packages@core\base\icons\package.json 20:33:09
[20:33:09] The package appears to be consumed by bundlers but does not specify "sideEffects". Consider adding "sideEffects": false so bundlers can optimize tree-shaking if your package has no side effects. https://publint.dev/rules#use_side_effects
20:33:09
C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main\packages@core\base\typings\package.json 20:33:09
[20:33:09] The package appears to be consumed by bundlers but does not specify "sideEffects". Consider adding "sideEffects": false so bundlers can optimize tree-shaking if your package has no side effects. https://publint.dev/rules#use_side_effects
20:33:09
C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main\packages@core\preferences\package.json 20:33:09
pkg.publishConfig.exports["."].default is ./dist/index.mjs but the file does not exist. https://publint.dev/rules#file_does_not_exist 20:33:09
pkg.publishConfig.exports["."].types is ./dist/index.d.ts but the file does not exist. https://publint.dev/rules#file_does_not_exist 20:33:09
pkg.main is ./dist/index.mjs but the file does not exist. https://publint.dev/rules#file_does_not_exist 20:33:09
pkg.module is ./dist/index.mjs but the file does not exist. https://publint.dev/rules#file_does_not_exist 20:33:09
pkg.types is ./dist/index.d.ts but the file does not exist. https://publint.dev/rules#file_does_not_exist 20:33:09
20:33:09
C:\Users\Zmrbak\Desktop\vben\1\vue-vben-admin-main\playground\package.json 20:33:09
The package publishes internal tests or config files. You can use pkg.files to only publish certain files and save user bandwidth. https://publint.dev/rules#use_files 20:33:09
ERROR ✖ 9 problem (5 errors, 0 warnings, 4 suggestions) 20:33:09
[ELIFECYCLE] Command failed with exit code 1.
Reproduction
处理办法(不知是否正确,但是不报错了):
packages@core\base\design\package.json
packages@core\base\icons\package.json
packages@core\base\typings\package.json
packages@core\preferences\package.json
playground\package.json
System Info
Relevant log output
Validations