@deot/dev-updater 2.9.1 → 2.9.2
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/dist/index.cjs +5 -2
- package/dist/index.js +5 -2
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -131,7 +131,7 @@ class Update {
|
|
|
131
131
|
});
|
|
132
132
|
return packageFolderNames;
|
|
133
133
|
}
|
|
134
|
-
async updateLock() {
|
|
134
|
+
async updateLock(message) {
|
|
135
135
|
if (this.commandOptions.dryRun) {
|
|
136
136
|
devShared.Logger.log(chalk.yellow(`Skipping pnpm-lock.yaml Update`));
|
|
137
137
|
} else {
|
|
@@ -140,6 +140,9 @@ class Update {
|
|
|
140
140
|
const { cwd } = locals;
|
|
141
141
|
await fs.remove(`${cwd}/node_modules`);
|
|
142
142
|
await devShared.Shell.spawn("npx", ["pnpm", "install", "--no-frozen-lockfile"]);
|
|
143
|
+
if (message.includes("puppeteer")) {
|
|
144
|
+
await devShared.Shell.spawn("node", ["node_modules/puppeteer/install.mjs"]);
|
|
145
|
+
}
|
|
143
146
|
}
|
|
144
147
|
}
|
|
145
148
|
async commit(message) {
|
|
@@ -215,7 +218,7 @@ ${message}`);
|
|
|
215
218
|
const { workspace } = locals;
|
|
216
219
|
message = `${workspace ? "chore" : "void"}: ${message}`;
|
|
217
220
|
}
|
|
218
|
-
await this.updateLock();
|
|
221
|
+
await this.updateLock(message);
|
|
219
222
|
await this.test();
|
|
220
223
|
await this.commit(message);
|
|
221
224
|
await this.push();
|
package/dist/index.js
CHANGED
|
@@ -108,7 +108,7 @@ class Update {
|
|
|
108
108
|
});
|
|
109
109
|
return packageFolderNames;
|
|
110
110
|
}
|
|
111
|
-
async updateLock() {
|
|
111
|
+
async updateLock(message) {
|
|
112
112
|
if (this.commandOptions.dryRun) {
|
|
113
113
|
Logger.log(chalk.yellow(`Skipping pnpm-lock.yaml Update`));
|
|
114
114
|
} else {
|
|
@@ -117,6 +117,9 @@ class Update {
|
|
|
117
117
|
const { cwd } = locals;
|
|
118
118
|
await fs.remove(`${cwd}/node_modules`);
|
|
119
119
|
await Shell.spawn("npx", ["pnpm", "install", "--no-frozen-lockfile"]);
|
|
120
|
+
if (message.includes("puppeteer")) {
|
|
121
|
+
await Shell.spawn("node", ["node_modules/puppeteer/install.mjs"]);
|
|
122
|
+
}
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
125
|
async commit(message) {
|
|
@@ -192,7 +195,7 @@ ${message}`);
|
|
|
192
195
|
const { workspace } = locals;
|
|
193
196
|
message = `${workspace ? "chore" : "void"}: ${message}`;
|
|
194
197
|
}
|
|
195
|
-
await this.updateLock();
|
|
198
|
+
await this.updateLock(message);
|
|
196
199
|
await this.test();
|
|
197
200
|
await this.commit(message);
|
|
198
201
|
await this.push();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/dev-updater",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@deot/dev-shared": "^2.9.
|
|
23
|
-
"chalk": "^5.
|
|
24
|
-
"fs-extra": "^11.3.
|
|
25
|
-
"ora": "^
|
|
26
|
-
"semver": "^7.7.
|
|
22
|
+
"@deot/dev-shared": "^2.9.2",
|
|
23
|
+
"chalk": "^5.6.2",
|
|
24
|
+
"fs-extra": "^11.3.2",
|
|
25
|
+
"ora": "^9.0.0",
|
|
26
|
+
"semver": "^7.7.3"
|
|
27
27
|
}
|
|
28
28
|
}
|