create-pulsekit 0.0.2 → 0.0.3
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.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75,7 +75,7 @@ var PACKAGES = [
|
|
|
75
75
|
"@pulsekit/core",
|
|
76
76
|
"@pulsekit/next",
|
|
77
77
|
"@pulsekit/react",
|
|
78
|
-
"@supabase/supabase-js"
|
|
78
|
+
"@supabase/supabase-js@latest"
|
|
79
79
|
];
|
|
80
80
|
async function installPackages(pm) {
|
|
81
81
|
console.log(" Installing packages...\n");
|
|
@@ -218,7 +218,7 @@ async function injectPulseTracker() {
|
|
|
218
218
|
const indent = content.slice(lineStart, bodyCloseIndex).match(/^\s*/)?.[0] ?? " ";
|
|
219
219
|
const trackerJsx = `${indent} <PulseTracker excludePaths={["/admin/analytics"]} />
|
|
220
220
|
`;
|
|
221
|
-
content = content.slice(0,
|
|
221
|
+
content = content.slice(0, lineStart) + trackerJsx + content.slice(lineStart);
|
|
222
222
|
import_node_fs3.default.writeFileSync(foundPath, content, "utf8");
|
|
223
223
|
console.log(
|
|
224
224
|
` Modified: ${import_node_path3.default.relative(process.cwd(), foundPath)}
|