neon 8.11.0 → 8.11.1

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.
@@ -209,8 +209,8 @@ const seedFromBranch = async (props) => {
209
209
  };
210
210
  };
211
211
  /** The install command to print, prefixed with a `cd` when the project is not the cwd. */
212
- const installCommandFrom = (dir, pm, missing) => {
213
- const command = formatInstallCommand(pm, [...missing]);
212
+ const installCommandFrom = (dir, pm, missing, options) => {
213
+ const command = formatInstallCommand(pm, [...missing], options);
214
214
  const rel = relative(process.cwd(), dir);
215
215
  if (rel === "") return command;
216
216
  const target = rel.length <= dir.length ? rel : dir;
@@ -130,7 +130,7 @@ const scaffoldFromTemplate = async (options) => {
130
130
  if (envExample.contents !== void 0) writeFileSync(envExample.path, envExample.contents);
131
131
  const { dependencies } = template;
132
132
  const pm = resolvePackageManager(projectRoot);
133
- const installHint = (packages) => installCommandFrom(projectRoot, pm, packages);
133
+ const installHint = (packages, exact = false) => installCommandFrom(projectRoot, pm, packages, { exact });
134
134
  const configPackages = registration?.created ? missingDependencies(projectRoot) : [];
135
135
  const packages = [...configPackages, ...dependencies];
136
136
  let install = options.install === true;
@@ -143,8 +143,8 @@ const scaffoldFromTemplate = async (options) => {
143
143
  });
144
144
  let installed = false;
145
145
  if (install && dependencies.length > 0) {
146
- installed = await (options.run ?? runCommand)(pm, installArgs(pm, dependencies), projectRoot);
147
- if (!installed) log.warning("Could not install %s. Run by hand: `%s`", dependencies.join(", "), installHint(dependencies));
146
+ installed = await (options.run ?? runCommand)(pm, installArgs(pm, dependencies, { exact: true }), projectRoot);
147
+ if (!installed) log.warning("Could not install %s. Run by hand: `%s`", dependencies.join(", "), installHint(dependencies, true));
148
148
  }
149
149
  const cli = getCliName();
150
150
  const functions = plan.functions.map((fn) => ({
@@ -161,8 +161,8 @@ const scaffoldFromTemplate = async (options) => {
161
161
  next.push(installHint(missingConfig));
162
162
  }
163
163
  if (dependencies.length > 0 && !installed) {
164
- nextSteps.push(`Install the template's dependencies: \`${installHint(dependencies)}\``);
165
- next.push(installHint(dependencies));
164
+ nextSteps.push(`Install the template's dependencies: \`${installHint(dependencies, true)}\``);
165
+ next.push(installHint(dependencies, true));
166
166
  }
167
167
  const environment = template.environment.map(({ name }) => name);
168
168
  const variables = template.environment.map((variable) => `${variable.name} (${variable.description})`).join(", ");
@@ -189,6 +189,7 @@ const recommendedCliUpgradeCommand = (modulePath) => {
189
189
  const installArgs = (pm, packages, options) => packages?.length ? [
190
190
  pm === "npm" ? "install" : "add",
191
191
  ...options?.dev ? ["-D"] : [],
192
+ ...options?.exact ? ["-E"] : [],
192
193
  ...packages
193
194
  ] : ["install"];
194
195
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon",
3
- "version": "8.11.0",
3
+ "version": "8.11.1",
4
4
  "description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -72,8 +72,8 @@
72
72
  "yoctocolors": "^2.1.2",
73
73
  "@neon/config-runtime": "1.10.2",
74
74
  "@neon/realtime": "0.1.2",
75
- "@neon/config": "1.9.3",
76
- "@neon/sdk": "7.4.0"
75
+ "@neon/sdk": "7.4.0",
76
+ "@neon/config": "1.9.3"
77
77
  },
78
78
  "optionalDependencies": {
79
79
  "@napi-rs/keyring": "1.3.0",
@@ -109,11 +109,11 @@
109
109
  "tsx": "4.22.3",
110
110
  "typescript": "^5.9.0",
111
111
  "vitest": "^3.0.9",
112
- "@neon-internals/env-core": "0.0.34",
113
112
  "@neon-internals/cli-core": "0.0.0",
114
- "@neon/env": "1.6.4",
113
+ "@neon-internals/env-core": "0.0.34",
114
+ "@neon/e2e-harness": "0.0.0",
115
115
  "@neon/functions": "0.11.0",
116
- "@neon/e2e-harness": "0.0.0"
116
+ "@neon/env": "1.6.4"
117
117
  },
118
118
  "publishConfig": {
119
119
  "access": "public",