pagezero 1.0.0-rc.1 → 1.1.0
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/package.json +1 -1
- package/src/commands/init.ts +0 -1
- package/src/commands/upgrade.ts +7 -3
package/package.json
CHANGED
package/src/commands/init.ts
CHANGED
|
@@ -29,7 +29,6 @@ export async function init() {
|
|
|
29
29
|
// Configure wrangler.json
|
|
30
30
|
await spinner(`configuring wrangler.json`, async () => {
|
|
31
31
|
await $`bun run setup:wrangler`.quiet().cwd(projectName)
|
|
32
|
-
await $`bun run check:fix`.quiet().cwd(projectName)
|
|
33
32
|
})
|
|
34
33
|
|
|
35
34
|
// Initialize git repository
|
package/src/commands/upgrade.ts
CHANGED
|
@@ -9,7 +9,11 @@ export async function upgrade() {
|
|
|
9
9
|
console.log(
|
|
10
10
|
chalk.yellow(
|
|
11
11
|
boxen(
|
|
12
|
-
"
|
|
12
|
+
"Upgrade syncs your project with the latest PageZERO stack.\n\n" +
|
|
13
|
+
"• Existing stack files will be overwritten\n" +
|
|
14
|
+
"• Files removed from the stack will be deleted from your project\n" +
|
|
15
|
+
"• node_modules and .git are left untouched\n\n" +
|
|
16
|
+
"Review the result with git diff before committing.",
|
|
13
17
|
{ padding: 1, title: "WARNING", titleAlignment: "center" },
|
|
14
18
|
),
|
|
15
19
|
),
|
|
@@ -47,8 +51,8 @@ export async function upgrade() {
|
|
|
47
51
|
$`git clone --depth 1 https://github.com/pagezero-dev/pagezero.git pagezero-latest`.quiet(),
|
|
48
52
|
)
|
|
49
53
|
|
|
50
|
-
await spinner(`
|
|
51
|
-
$`rsync -a --exclude=".git" ./pagezero-latest/ ./`.quiet(),
|
|
54
|
+
await spinner(`syncing PageZERO stack with project directory`, () =>
|
|
55
|
+
$`rsync -a --delete --exclude=".git" --exclude="node_modules" --exclude="pagezero-latest" ./pagezero-latest/ ./`.quiet(),
|
|
52
56
|
)
|
|
53
57
|
|
|
54
58
|
await spinner(`cleaning up`, () => $`rm -rf pagezero-latest`.quiet())
|