@flowershow/publish 1.1.0 → 1.1.2

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/README.md CHANGED
@@ -1,8 +1,6 @@
1
- # FlowerShow CLI (Beta 🚧)
1
+ # Flowershow Publish
2
2
 
3
- A CLI tool for publishing Markdown files and folders directly to FlowerShow with OAuth authentication.
4
-
5
- > **Note:** This package was previously named `flowershow` (and `flowershow-publish`). If you're migrating from the old package, see the [Migration Guide](MIGRATION.md).
3
+ The CLI tool for publishing Markdown files with Flowershow.
6
4
 
7
5
  ## Installation
8
6
 
@@ -59,7 +57,7 @@ publish sync ./my-note.md
59
57
 
60
58
  #### `publish auth login`
61
59
 
62
- Authenticate with FlowerShow via browser OAuth flow.
60
+ Authenticate with Flowershow via browser OAuth flow.
63
61
 
64
62
  ```bash
65
63
  publish auth login
@@ -87,7 +85,7 @@ See [Authentication Documentation](docs/authentication.md) for detailed informat
87
85
 
88
86
  #### `publish <path> [morePaths...] [options]`
89
87
 
90
- Publish files or folders to FlowerShow.
88
+ Publish files or folders to Flowershow.
91
89
 
92
90
  **Options:**
93
91
 
@@ -120,7 +118,7 @@ publish ./my-notes --name my-custom-site --overwrite
120
118
 
121
119
  1. Files are discovered and filtered (ignores `.git`, `node_modules`, etc.; also supports `.gitignore` and will ignore paths listed there)
122
120
  2. Project name is derived from the first file name or the folder name
123
- 3. Site is created via the FlowerShow API
121
+ 3. Site is created via the Flowershow API
124
122
  4. Presigned URLs are obtained for secure file uploads
125
123
  5. Files are uploaded directly to Cloudflare R2 storage
126
124
  6. CLI waits for markdown files to be processed
@@ -211,7 +209,7 @@ Delete a site and all its files.
211
209
  publish delete my-notes
212
210
  ```
213
211
 
214
- Removes the site and all its files via the FlowerShow API.
212
+ Removes the site and all its files via the Flowershow API.
215
213
 
216
214
  ## File Filtering
217
215
 
package/dist/cli.js CHANGED
@@ -12,7 +12,7 @@ import packageJson from "./package.json" with { type: "json" };
12
12
  const program = new Command();
13
13
  program
14
14
  .name("publish")
15
- .description("CLI tool for publishing to FlowerShow")
15
+ .description("CLI tool for publishing to Flowershow")
16
16
  .version(packageJson.version);
17
17
  program
18
18
  .argument("[path]", "File or folder to publish")
@@ -24,7 +24,7 @@ program
24
24
  program.help();
25
25
  return;
26
26
  }
27
- console.log(chalk.bold("\nšŸ’ FlowerShow CLI - Publish\n"));
27
+ console.log(chalk.bold("\nšŸ’ Flowershow CLI - Publish\n"));
28
28
  const paths = [path, ...morePaths];
29
29
  await publishCommand(paths, options.overwrite || false, options.name);
30
30
  });
@@ -36,23 +36,23 @@ const auth = program
36
36
  });
37
37
  auth
38
38
  .command("login")
39
- .description("Authenticate with FlowerShow via browser")
39
+ .description("Authenticate with Flowershow via browser")
40
40
  .action(async () => {
41
- console.log(chalk.bold("\nšŸ’ FlowerShow CLI - Authentication\n"));
41
+ console.log(chalk.bold("\nšŸ’ Flowershow CLI - Authentication\n"));
42
42
  await authLoginCommand();
43
43
  });
44
44
  auth
45
45
  .command("logout")
46
46
  .description("Remove stored authentication token")
47
47
  .action(async () => {
48
- console.log(chalk.bold("\nšŸ’ FlowerShow CLI - Logout\n"));
48
+ console.log(chalk.bold("\nšŸ’ Flowershow CLI - Logout\n"));
49
49
  await authLogoutCommand();
50
50
  });
51
51
  auth
52
52
  .command("status")
53
53
  .description("Check authentication status")
54
54
  .action(async () => {
55
- console.log(chalk.bold("\nšŸ’ FlowerShow CLI - Auth Status\n"));
55
+ console.log(chalk.bold("\nšŸ’ Flowershow CLI - Auth Status\n"));
56
56
  await authStatusCommand();
57
57
  });
58
58
  program
@@ -62,21 +62,21 @@ program
62
62
  .option("--dry-run", "Show what would be synced without making changes")
63
63
  .option("--verbose", "Show detailed list of all files in each category")
64
64
  .action(async (path, options) => {
65
- console.log(chalk.bold("\nšŸ’ FlowerShow CLI - Sync\n"));
65
+ console.log(chalk.bold("\nšŸ’ Flowershow CLI - Sync\n"));
66
66
  await syncCommand(path, options);
67
67
  });
68
68
  program
69
69
  .command("list")
70
70
  .description("List all published sites")
71
71
  .action(async () => {
72
- console.log(chalk.bold("\nšŸ’ FlowerShow CLI - List Sites\n"));
72
+ console.log(chalk.bold("\nšŸ’ Flowershow CLI - List Sites\n"));
73
73
  await listCommand();
74
74
  });
75
75
  program
76
76
  .command("delete <project-name>")
77
77
  .description("Delete a published site")
78
78
  .action(async (projectName) => {
79
- console.log(chalk.bold("\nšŸ’ FlowerShow CLI - Delete Site\n"));
79
+ console.log(chalk.bold("\nšŸ’ Flowershow CLI - Delete Site\n"));
80
80
  await deleteCommand(projectName);
81
81
  });
82
82
  if (process.argv.length === 2) {
@@ -11,9 +11,9 @@ async function handleOutdatedClient(response) {
11
11
  if (data.error === "client_outdated") {
12
12
  const lines = [
13
13
  "",
14
- chalk.red.bold(` ! Your FlowerShow CLI is outdated (v${data.currentVersion}) `),
14
+ chalk.red.bold(` ! Your Flowershow CLI is outdated (v${data.currentVersion}) `),
15
15
  "",
16
- ` This version no longer works with the FlowerShow API.`,
16
+ ` This version no longer works with the Flowershow API.`,
17
17
  ` Please upgrade to v${data.minimumVersion} or newer.`,
18
18
  "",
19
19
  chalk.cyan(` → npm install -g @flowershow/publish`),
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flowershow/publish",
3
- "version": "1.1.0",
4
- "description": "CLI tool for publishing to FlowerShow",
3
+ "version": "1.1.2",
4
+ "description": "CLI tool for publishing to Flowershow",
5
5
  "type": "module",
6
6
  "main": "./dist/cli.js",
7
7
  "bin": {
@@ -41,7 +41,7 @@
41
41
  "posthog-node": "^5.24.15"
42
42
  },
43
43
  "engines": {
44
- "node": ">=18.0.0"
44
+ "node": "^20.20.0 || >=22.22.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "tsx": "^4.21.0"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flowershow/publish",
3
- "version": "1.1.0",
4
- "description": "CLI tool for publishing to FlowerShow",
3
+ "version": "1.1.2",
4
+ "description": "CLI tool for publishing to Flowershow",
5
5
  "type": "module",
6
6
  "main": "./dist/cli.js",
7
7
  "bin": {
@@ -35,7 +35,7 @@
35
35
  "posthog-node": "^5.24.15"
36
36
  },
37
37
  "engines": {
38
- "node": ">=18.0.0"
38
+ "node": "^20.20.0 || >=22.22.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "tsx": "^4.21.0"