refactor: devcontainer
This commit is contained in:
13
.devcontainer/lifecycle-scripts.d/02-updateContentCommand.d/00-pnpm-install
Executable file
13
.devcontainer/lifecycle-scripts.d/02-updateContentCommand.d/00-pnpm-install
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash -eu
|
||||
# 容器内容更新时的消息和依赖安装
|
||||
|
||||
echo '↘️ 容器内容已更新!'
|
||||
|
||||
# 安装依赖
|
||||
if command -v pnpm >/dev/null 2>&1; then
|
||||
# 跳过: The modules directory at "/workspaces/h-devcontainers/node_modules" will be removed and reinstalled from scratch. Proceed? (Y/n) ·
|
||||
time pnpm install --config.confirmModulesPurge=false
|
||||
else
|
||||
echo '❌错误: pnpm 未安装'
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user