supatool 0.1.2 → 0.1.22

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
@@ -29,10 +29,28 @@ supatool crud
29
29
 
30
30
  3. Subcommands
31
31
 
32
+ For more extensible, execute with subcommands:
33
+
34
+ - Show help text for all commands
35
+ supatool help
36
+
37
+ - Destination input and output folder
38
+ supatool -i path/to/type -o path/to/export
39
+
40
+ - For detailed usage,
32
41
  See: [src/bin/helptext.ts](./src/bin/helptext.ts) (for development)
33
42
  or [dist/bin/helptext.js](./dist/bin/helptext.js) (for npm package)
34
43
 
35
- For details on how to specify input/output folders, please refer to this as well.
44
+ ## Note: Supabase Client Requirement
45
+
46
+ The generated CRUD code assumes that a Supabase client is defined in `../client.ts`.
47
+ Example:
48
+
49
+ ```ts
50
+ // src/integrations/supabase/client.ts
51
+ import { createClient } from '@supabase/supabase-js'
52
+ export const supabase = createClient('YOUR_SUPABASE_URL', 'YOUR_SUPABASE_ANON_KEY')
53
+ ```
36
54
 
37
55
  ## VSCode/Cursor: Run Supabase CLI and supatool together
38
56
 
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const commander_1 = require("commander");
7
7
  const index_1 = require("../index");
8
8
  const helptext_js_1 = require("./helptext.js"); // Import help text from external file
9
+ const package_json_1 = require("../../package.json");
9
10
  const program = new commander_1.Command();
10
11
  program
11
12
  .name('supatool')
12
13
  .description('Supatool CLI')
13
- .version('0.1.0');
14
+ .version(package_json_1.version);
14
15
  // crud subcommand
15
16
  program
16
17
  .command('crud')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supatool",
3
- "version": "0.1.2",
3
+ "version": "0.1.22",
4
4
  "description": "A CLI tool that automatically generates TypeScript CRUD code from Supabase type definitions.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",