@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/cli/bin.js
CHANGED
|
@@ -1690,6 +1690,7 @@ function findStringClose(source, openIdx) {
|
|
|
1690
1690
|
}
|
|
1691
1691
|
return -1;
|
|
1692
1692
|
}
|
|
1693
|
+
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.";
|
|
1693
1694
|
function transformBlocks(body) {
|
|
1694
1695
|
const out = [];
|
|
1695
1696
|
let last = 0;
|
|
@@ -1705,6 +1706,8 @@ function transformBlocks(body) {
|
|
|
1705
1706
|
out.push(body.slice(last, m.index));
|
|
1706
1707
|
out.push(leadingNewline);
|
|
1707
1708
|
const blockBody = body.slice(openBraceIdx + 1, closeBraceIdx);
|
|
1709
|
+
out.push(`${indent}${MIGRATION_MARKER}
|
|
1710
|
+
`);
|
|
1708
1711
|
out.push(`${indent}$effect(() => {${blockBody}});`);
|
|
1709
1712
|
last = closeBraceIdx + 1;
|
|
1710
1713
|
BLOCK_REACTIVE_HEAD.lastIndex = last;
|
|
@@ -2006,6 +2009,7 @@ async function convertToPnpm(site, opts = {}) {
|
|
|
2006
2009
|
await writePackageJson(pkgPath, next);
|
|
2007
2010
|
const pkgSha = await commit(site.path, "chore(pnpm): pin packageManager + rewrite npm scripts");
|
|
2008
2011
|
if (pkgSha) shas.push(pkgSha);
|
|
2012
|
+
await rm3(join14(site.path, "node_modules"), { recursive: true, force: true });
|
|
2009
2013
|
const installResult = await spawn2("pnpm", ["install"], {
|
|
2010
2014
|
cwd: site.path,
|
|
2011
2015
|
streaming: true
|