@hoverlover/cc-dev-team 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +6 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -200,6 +200,12 @@ async function update() {
|
|
|
200
200
|
|
|
201
201
|
const shouldUpdate = await promptYesNo(' Update now?');
|
|
202
202
|
if (shouldUpdate) {
|
|
203
|
+
// Reset any local changes (e.g. package-lock.json from npm install)
|
|
204
|
+
// before pulling — this is an installed copy, not a dev workspace
|
|
205
|
+
execSync('git reset --hard HEAD', {
|
|
206
|
+
cwd: INSTALL_DIR,
|
|
207
|
+
stdio: 'pipe'
|
|
208
|
+
});
|
|
203
209
|
execSync('git pull origin main', {
|
|
204
210
|
cwd: INSTALL_DIR,
|
|
205
211
|
stdio: 'inherit'
|