cf-envsync 0.3.16 → 0.3.17

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.js CHANGED
@@ -14215,7 +14215,12 @@ var init_validate = __esm(() => {
14215
14215
  environments = config.environments;
14216
14216
  appNames = undefined;
14217
14217
  }
14218
- const apps = resolveApps(config, appNames);
14218
+ const allApps = resolveApps(config, appNames);
14219
+ const apps = allApps.filter((app) => app.validate !== false);
14220
+ if (apps.length === 0) {
14221
+ consola.info("All resolved apps have validate: false. Nothing to validate.");
14222
+ return;
14223
+ }
14219
14224
  const examplePath = join7(config.projectRoot, ".env.example");
14220
14225
  if (!fileExists(examplePath)) {
14221
14226
  consola.error("No .env.example found at project root.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cf-envsync",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "Sync .env files to Cloudflare Workers secrets, .dev.vars, and more",
5
5
  "type": "module",
6
6
  "exports": {
@@ -44,6 +44,8 @@ export interface AppConfig {
44
44
  /** Output file(s) for `envsync dev`. Defaults to ".dev.vars".
45
45
  * Use an array to generate multiple files, e.g. [".dev.vars", ".env.local"] */
46
46
  devFile?: string | string[];
47
+ /** Whether to include this app in `envsync validate`. Defaults to true. */
48
+ validate?: boolean;
47
49
  }
48
50
 
49
51
  /** Resolved config after defaults and path resolution */