@reddoorla/maintenance 0.6.4 → 0.6.5
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/cli/bin.js +4 -0
- package/dist/cli/bin.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1416,6 +1416,7 @@ function findStringClose(source, openIdx) {
|
|
|
1416
1416
|
}
|
|
1417
1417
|
return -1;
|
|
1418
1418
|
}
|
|
1419
|
+
var MIGRATION_MARKER = "// @migration-task: $effect won't trigger UI updates on plain `let` bindings \u2014 refine mutated locals to $state or split into per-variable $derived.";
|
|
1419
1420
|
function transformBlocks(body) {
|
|
1420
1421
|
const out = [];
|
|
1421
1422
|
let last = 0;
|
|
@@ -1431,6 +1432,8 @@ function transformBlocks(body) {
|
|
|
1431
1432
|
out.push(body.slice(last, m.index));
|
|
1432
1433
|
out.push(leadingNewline);
|
|
1433
1434
|
const blockBody = body.slice(openBraceIdx + 1, closeBraceIdx);
|
|
1435
|
+
out.push(`${indent}${MIGRATION_MARKER}
|
|
1436
|
+
`);
|
|
1434
1437
|
out.push(`${indent}$effect(() => {${blockBody}});`);
|
|
1435
1438
|
last = closeBraceIdx + 1;
|
|
1436
1439
|
BLOCK_REACTIVE_HEAD.lastIndex = last;
|
|
@@ -1731,6 +1734,7 @@ async function convertToPnpm(site, opts = {}) {
|
|
|
1731
1734
|
await writePackageJson(pkgPath, next);
|
|
1732
1735
|
const pkgSha = await commit(site.path, "chore(pnpm): pin packageManager + rewrite npm scripts");
|
|
1733
1736
|
if (pkgSha) shas.push(pkgSha);
|
|
1737
|
+
await rm3(join13(site.path, "node_modules"), { recursive: true, force: true });
|
|
1734
1738
|
const installResult = await spawn2("pnpm", ["install"], {
|
|
1735
1739
|
cwd: site.path,
|
|
1736
1740
|
streaming: true
|