rhythia-api 18.0.0 → 30.0.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
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "rhythia-api",
3
- "version": "18.0.0",
3
+ "version": "30.0.0",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
- "update": "tsx scripts/update.ts && npm publish",
6
+ "update": "bun scripts/update.ts",
7
7
  "sync": "npx supabase gen types typescript --project-id \"pfkajngbllcbdzoylrvp\" --schema public > types/supabase.ts"
8
8
  },
9
9
  "license": "MIT",
10
10
  "dependencies": {
11
11
  "@supabase/supabase-js": "^2.45.1",
12
+ "@types/bun": "^1.1.6",
12
13
  "@types/node": "^22.2.0",
14
+ "bun": "^1.1.22",
13
15
  "supabase": "^1.188.4",
14
16
  "tsx": "^4.17.0"
15
17
  }
package/scripts/update.ts CHANGED
@@ -1,5 +1,5 @@
1
+ import { $ } from "bun";
1
2
  import { readFileSync, writeFileSync } from "fs";
2
-
3
3
  const packageJson = JSON.parse(readFileSync("./package.json", "utf-8"));
4
4
 
5
5
  const versions = packageJson.version.split(".");
@@ -8,3 +8,8 @@ versions[0] = Number(versions[0]) + 1;
8
8
  packageJson.version = versions.join(".");
9
9
 
10
10
  writeFileSync("./package.json", JSON.stringify(packageJson, null, 2));
11
+
12
+ const conf = readFileSync("./.cred", "utf-8");
13
+ await $`npm logout`.nothrow();
14
+ await $`npm set ${conf.split("$").join("")}`;
15
+ await $`npm publish`;