naive-ui/scripts/pre-build-site/pre-build-site.sh
07akioni a6be9d262c refactor: remove side-effects related script
Vite currently ignore side effects inside the project.
2021-02-17 23:38:34 +08:00

8 lines
150 B
Bash
Executable File

npm run build:package
npm pack
UI_PACKAGE_NAME=$(ls | grep naive-ui)
tar -xzvf $UI_PACKAGE_NAME
mv package node_modules/naive-ui
rm $UI_PACKAGE_NAME