supabee 0.3.2 → 0.3.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/README.md +410 -330
- package/dist/commands/cutoff.d.ts +5 -0
- package/dist/commands/cutoff.js +49 -0
- package/dist/commands/cutoff.js.map +1 -0
- package/dist/commands/db-reset.d.ts +1 -0
- package/dist/commands/db-reset.js +101 -182
- package/dist/commands/db-reset.js.map +1 -1
- package/dist/commands/init.js +9 -4
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/migration.d.ts +16 -0
- package/dist/commands/migration.js +234 -0
- package/dist/commands/migration.js.map +1 -0
- package/dist/commands/sync.d.ts +1 -0
- package/dist/commands/sync.js +50 -2
- package/dist/commands/sync.js.map +1 -1
- package/dist/index.js +111 -90
- package/dist/index.js.map +1 -1
- package/dist/lib/constants.d.ts +3 -0
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/migration-classifier.d.ts +22 -0
- package/dist/lib/migration-classifier.js +240 -0
- package/dist/lib/migration-classifier.js.map +1 -0
- package/dist/lib/post-seed-cutoff.d.ts +24 -0
- package/dist/lib/post-seed-cutoff.js +195 -0
- package/dist/lib/post-seed-cutoff.js.map +1 -0
- package/dist/lib/subprocess.js +7 -7
- package/package.json +54 -53
- package/supabee.config.example.json +34 -29
package/package.json
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "supabee",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "CLI tools for local Supabase schema/data workflows",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": "Kai Ho Chak",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/kaihochak/supabee.git"
|
|
10
|
-
},
|
|
11
|
-
"homepage": "https://github.com/kaihochak/supabee",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/kaihochak/supabee/issues"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"supabase",
|
|
17
|
-
"database",
|
|
18
|
-
"schema",
|
|
19
|
-
"sql",
|
|
20
|
-
"cli",
|
|
21
|
-
"devtools",
|
|
22
|
-
"local"
|
|
23
|
-
],
|
|
24
|
-
"type": "module",
|
|
25
|
-
"bin": {
|
|
26
|
-
"supabee": "dist/index.js",
|
|
27
|
-
"supabase-splitter": "dist/index.js"
|
|
28
|
-
},
|
|
29
|
-
"files": [
|
|
30
|
-
"dist",
|
|
31
|
-
"supabase-splitter.config.example.json",
|
|
32
|
-
"supabee.config.example.json",
|
|
33
|
-
"README.md",
|
|
34
|
-
"LICENSE"
|
|
35
|
-
],
|
|
36
|
-
"engines": {
|
|
37
|
-
"node": ">=20.11.0"
|
|
38
|
-
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"build": "tsc -p tsconfig.json",
|
|
41
|
-
"prepack": "npm run build",
|
|
42
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
43
|
-
"test": "npm run build && node dist/index.js --help",
|
|
44
|
-
"pack:check": "npm run build && npm_config_cache=.npm-cache npm pack --dry-run"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"commander": "^12.1.0"
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@types/node": "^22.19.15",
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "supabee",
|
|
3
|
+
"version": "0.3.3",
|
|
4
|
+
"description": "CLI tools for local Supabase schema/data workflows",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Kai Ho Chak",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/kaihochak/supabee.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/kaihochak/supabee",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/kaihochak/supabee/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"supabase",
|
|
17
|
+
"database",
|
|
18
|
+
"schema",
|
|
19
|
+
"sql",
|
|
20
|
+
"cli",
|
|
21
|
+
"devtools",
|
|
22
|
+
"local"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"bin": {
|
|
26
|
+
"supabee": "dist/index.js",
|
|
27
|
+
"supabase-splitter": "dist/index.js"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist",
|
|
31
|
+
"supabase-splitter.config.example.json",
|
|
32
|
+
"supabee.config.example.json",
|
|
33
|
+
"README.md",
|
|
34
|
+
"LICENSE"
|
|
35
|
+
],
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=20.11.0"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsc -p tsconfig.json",
|
|
41
|
+
"prepack": "npm run build",
|
|
42
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
43
|
+
"test": "npm run build && node dist/index.js --help",
|
|
44
|
+
"pack:check": "npm run build && cross-env npm_config_cache=.npm-cache npm pack --dry-run"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"commander": "^12.1.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "^22.19.15",
|
|
51
|
+
"cross-env": "^7.0.3",
|
|
52
|
+
"typescript": "^5.9.3"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"postSeedCutoff": "",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"reconstructed": "supabase/schemas/reconstructed-schemas.sql",
|
|
7
|
-
"backup": false,
|
|
8
|
-
"keepFiles": []
|
|
9
|
-
},
|
|
10
|
-
"data": {
|
|
11
|
-
"input": "supabase/seeds/prod-data.sql",
|
|
12
|
-
"output": "supabase/seeds/split",
|
|
13
|
-
"reconstructed": "supabase/seeds/reconstructed-data.sql",
|
|
14
|
-
"backup": false,
|
|
15
|
-
"maxLinesPerFile": 2000,
|
|
16
|
-
"maxStatementsPerFile": 20,
|
|
17
|
-
"maxRowsPerInsert": 200,
|
|
18
|
-
"tableRules": {},
|
|
19
|
-
"keepFiles": [
|
|
20
|
-
"800_refresh_materialized_view.sql"
|
|
21
|
-
],
|
|
22
|
-
"ignoreInReconstruct": [
|
|
23
|
-
"800_refresh_materialized_view.sql"
|
|
24
|
-
]
|
|
3
|
+
"postSeedCutoffByEnv": {
|
|
4
|
+
"staging": "",
|
|
5
|
+
"production": ""
|
|
25
6
|
},
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
7
|
+
"dataMigrationMarker": "supabee:data-migration",
|
|
8
|
+
"schema": {
|
|
9
|
+
"input": "supabase/schemas/prod-schemas.sql",
|
|
10
|
+
"output": "supabase/schemas/split",
|
|
11
|
+
"reconstructed": "supabase/schemas/reconstructed-schemas.sql",
|
|
12
|
+
"backup": false,
|
|
13
|
+
"keepFiles": []
|
|
14
|
+
},
|
|
15
|
+
"data": {
|
|
16
|
+
"input": "supabase/seeds/prod-data.sql",
|
|
17
|
+
"output": "supabase/seeds/split",
|
|
18
|
+
"reconstructed": "supabase/seeds/reconstructed-data.sql",
|
|
19
|
+
"backup": false,
|
|
20
|
+
"maxLinesPerFile": 2000,
|
|
21
|
+
"maxStatementsPerFile": 20,
|
|
22
|
+
"maxRowsPerInsert": 200,
|
|
23
|
+
"tableRules": {},
|
|
24
|
+
"keepFiles": [
|
|
25
|
+
"800_refresh_materialized_view.sql"
|
|
26
|
+
],
|
|
27
|
+
"ignoreInReconstruct": [
|
|
28
|
+
"800_refresh_materialized_view.sql"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"init": {
|
|
32
|
+
"seedSqlPaths": [
|
|
33
|
+
"./seeds/split/*.sql",
|
|
34
|
+
"./seeds/institutions/seeding_sql/*/*.seed.sql"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|