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 CHANGED
@@ -46,5 +46,5 @@
46
46
  "log-symbols": "7.0.1",
47
47
  "ora": "9.0.0"
48
48
  },
49
- "version": "1.0.0-rc.1"
49
+ "version": "1.1.0"
50
50
  }
@@ -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
@@ -9,7 +9,11 @@ export async function upgrade() {
9
9
  console.log(
10
10
  chalk.yellow(
11
11
  boxen(
12
- "Ugrade command is primitive. It will overwrite your existing \nproject files with the latest version of the PageZERO stack. \nAfterwards please review the changes through a git diff.",
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(`copying PageZERO stack to project directory`, () =>
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())