hot-updater 0.5.6 → 0.5.8

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/dist/index.cjs CHANGED
@@ -21860,8 +21860,7 @@ Instead, \`yield\` should either be called with a value, or not be called at all
21860
21860
  message(`Installing ${dependenciesToInstall.join(", ")}...`);
21861
21861
  await execa(packageManager, [
21862
21862
  "yarn" === packageManager ? "add" : "install",
21863
- ...dependenciesToInstall.map(ensurePackageVersion),
21864
- "yarn" === packageManager ? "--dev" : "--save-dev"
21863
+ ...dependenciesToInstall.map(ensurePackageVersion)
21865
21864
  ]);
21866
21865
  return `Installed ${dependenciesToInstall.join(", ")}`;
21867
21866
  }
@@ -22116,27 +22115,22 @@ export default HotUpdater.wrap({
22116
22115
  }
22117
22116
  };
22118
22117
  const pushDB = async (supabasePath)=>{
22119
- await prompts_namespaceObject.tasks([
22120
- {
22121
- title: "Supabase db push",
22122
- task: async ()=>{
22123
- try {
22124
- const dbPush = await execa("npx", [
22125
- "supabase",
22126
- "db",
22127
- "push"
22128
- ], {
22129
- cwd: supabasePath
22130
- });
22131
- return dbPush.stdout;
22132
- } catch (err) {
22133
- if (err instanceof ExecaError && err.stderr) prompts_namespaceObject.log.error(err.stderr);
22134
- else console.error(err);
22135
- process.exit(1);
22136
- }
22137
- }
22138
- }
22139
- ]);
22118
+ try {
22119
+ const dbPush = await execa("npx", [
22120
+ "supabase",
22121
+ "db",
22122
+ "push"
22123
+ ], {
22124
+ cwd: supabasePath,
22125
+ stdio: "inherit"
22126
+ });
22127
+ prompts_namespaceObject.log.success("DB pushed ✔");
22128
+ return dbPush.stdout;
22129
+ } catch (err) {
22130
+ if (err instanceof ExecaError && err.stderr) prompts_namespaceObject.log.error(err.stderr);
22131
+ else console.error(err);
22132
+ process.exit(1);
22133
+ }
22140
22134
  };
22141
22135
  const deployEdgeFunction = async (supabasePath, projectId)=>{
22142
22136
  await prompts_namespaceObject.tasks([
@@ -22204,7 +22198,8 @@ export default HotUpdater.wrap({
22204
22198
  HOT_UPDATER_SUPABASE_BUCKET_NAME: bucketId,
22205
22199
  HOT_UPDATER_SUPABASE_URL: `https://${project.id}.supabase.co`
22206
22200
  });
22207
- prompts_namespaceObject.log.success("Generated hot-updater.config.ts with Supabase settings.");
22201
+ prompts_namespaceObject.log.success("Generated '.env' file with Supabase settings.");
22202
+ prompts_namespaceObject.log.success("Generated 'hot-updater.config.ts' file with Supabase settings.");
22208
22203
  prompts_namespaceObject.note(transformTemplate(SOURCE_TEMPLATE, {
22209
22204
  source: `https://${project.id}.supabase.co/functions/v1/update-server`
22210
22205
  }));
@@ -22241,10 +22236,10 @@ export default HotUpdater.wrap({
22241
22236
  options: [
22242
22237
  {
22243
22238
  value: {
22244
- dependencies: [
22239
+ dependencies: [],
22240
+ devDependencies: [
22245
22241
  "@hot-updater/metro"
22246
- ],
22247
- devDependencies: []
22242
+ ]
22248
22243
  },
22249
22244
  label: "Metro"
22250
22245
  }
package/dist/index.js CHANGED
@@ -21757,8 +21757,7 @@ const ensureInstallPackages = async (buildPluginPackages)=>{
21757
21757
  message(`Installing ${dependenciesToInstall.join(", ")}...`);
21758
21758
  await execa(packageManager, [
21759
21759
  "yarn" === packageManager ? "add" : "install",
21760
- ...dependenciesToInstall.map(ensurePackageVersion),
21761
- "yarn" === packageManager ? "--dev" : "--save-dev"
21760
+ ...dependenciesToInstall.map(ensurePackageVersion)
21762
21761
  ]);
21763
21762
  return `Installed ${dependenciesToInstall.join(", ")}`;
21764
21763
  }
@@ -22013,27 +22012,22 @@ const linkSupabase = async (supabasePath, projectId)=>{
22013
22012
  }
22014
22013
  };
22015
22014
  const pushDB = async (supabasePath)=>{
22016
- await __WEBPACK_EXTERNAL_MODULE__clack_prompts__.tasks([
22017
- {
22018
- title: "Supabase db push",
22019
- task: async ()=>{
22020
- try {
22021
- const dbPush = await execa("npx", [
22022
- "supabase",
22023
- "db",
22024
- "push"
22025
- ], {
22026
- cwd: supabasePath
22027
- });
22028
- return dbPush.stdout;
22029
- } catch (err) {
22030
- if (err instanceof ExecaError && err.stderr) __WEBPACK_EXTERNAL_MODULE__clack_prompts__.log.error(err.stderr);
22031
- else console.error(err);
22032
- process.exit(1);
22033
- }
22034
- }
22035
- }
22036
- ]);
22015
+ try {
22016
+ const dbPush = await execa("npx", [
22017
+ "supabase",
22018
+ "db",
22019
+ "push"
22020
+ ], {
22021
+ cwd: supabasePath,
22022
+ stdio: "inherit"
22023
+ });
22024
+ __WEBPACK_EXTERNAL_MODULE__clack_prompts__.log.success("DB pushed ✔");
22025
+ return dbPush.stdout;
22026
+ } catch (err) {
22027
+ if (err instanceof ExecaError && err.stderr) __WEBPACK_EXTERNAL_MODULE__clack_prompts__.log.error(err.stderr);
22028
+ else console.error(err);
22029
+ process.exit(1);
22030
+ }
22037
22031
  };
22038
22032
  const deployEdgeFunction = async (supabasePath, projectId)=>{
22039
22033
  await __WEBPACK_EXTERNAL_MODULE__clack_prompts__.tasks([
@@ -22101,7 +22095,8 @@ const initSupabase = async ()=>{
22101
22095
  HOT_UPDATER_SUPABASE_BUCKET_NAME: bucketId,
22102
22096
  HOT_UPDATER_SUPABASE_URL: `https://${project.id}.supabase.co`
22103
22097
  });
22104
- __WEBPACK_EXTERNAL_MODULE__clack_prompts__.log.success("Generated hot-updater.config.ts with Supabase settings.");
22098
+ __WEBPACK_EXTERNAL_MODULE__clack_prompts__.log.success("Generated '.env' file with Supabase settings.");
22099
+ __WEBPACK_EXTERNAL_MODULE__clack_prompts__.log.success("Generated 'hot-updater.config.ts' file with Supabase settings.");
22105
22100
  __WEBPACK_EXTERNAL_MODULE__clack_prompts__.note(transformTemplate(SOURCE_TEMPLATE, {
22106
22101
  source: `https://${project.id}.supabase.co/functions/v1/update-server`
22107
22102
  }));
@@ -22138,10 +22133,10 @@ const init_init = async ()=>{
22138
22133
  options: [
22139
22134
  {
22140
22135
  value: {
22141
- dependencies: [
22136
+ dependencies: [],
22137
+ devDependencies: [
22142
22138
  "@hot-updater/metro"
22143
- ],
22144
- devDependencies: []
22139
+ ]
22145
22140
  },
22146
22141
  label: "Metro"
22147
22142
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hot-updater",
3
3
  "type": "module",
4
- "version": "0.5.6",
4
+ "version": "0.5.8",
5
5
  "bin": {
6
6
  "hot-updater": "./dist/index.js"
7
7
  },
@@ -39,9 +39,9 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@clack/prompts": "^0.9.0",
42
- "@hot-updater/console": "0.5.6",
43
- "@hot-updater/core": "0.5.6",
44
- "@hot-updater/plugin-core": "0.5.6",
42
+ "@hot-updater/console": "0.5.8",
43
+ "@hot-updater/core": "0.5.8",
44
+ "@hot-updater/plugin-core": "0.5.8",
45
45
  "commander": "^11.1.0",
46
46
  "cosmiconfig": "^9.0.0",
47
47
  "cosmiconfig-typescript-loader": "^5.0.0"