configenvy 0.1.6 → 0.1.7

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
@@ -32,8 +32,8 @@ function createProgram(dependencies = defaultDependencies) {
32
32
  program.command("doctor").argument("[path]", "project directory", ".").option("--format <format>", "output format: text, json, or sarif", "text").option("--strict", "treat documentation warnings as errors").action(async (projectPath, options) => {
33
33
  await runDoctor(projectPath, options, dependencies);
34
34
  });
35
- program.command("check").argument("[path]", "project directory", ".").option("--ci", "fail on warnings and errors").option("--format <format>", "output format: text, json, or sarif", "text").action(async (projectPath, options) => {
36
- await runDoctor(projectPath, { ...options, strict: Boolean(options.ci), ci: Boolean(options.ci) }, dependencies);
35
+ program.command("check").argument("[path]", "project directory", ".").option("--ci", "fail on warnings and errors").option("--format <format>", "output format: text, json, or sarif", "text").option("--strict", "treat documentation warnings as errors").action(async (projectPath, options) => {
36
+ await runDoctor(projectPath, { ...options, strict: Boolean(options.strict || options.ci), ci: Boolean(options.ci) }, dependencies);
37
37
  });
38
38
  program.command("table").argument("[path]", "project directory", ".").option("--out <file>", "write markdown table to a file").option("--update <file>", "replace a marked configenvy table block in a markdown file").option("--force", "append a configenvy table block when --update target has no marked block").option("--dry-run", "print the updated markdown instead of writing it").action(async (projectPath, options) => {
39
39
  const rootDir = dependencies.resolvePath(projectPath);
@@ -64,6 +64,10 @@ var starterConfig = {
64
64
  docs: ["README.md", "docs"]
65
65
  };
66
66
  var presetConfigs = {
67
+ astro: {
68
+ optional: ["PUBLIC_SITE_URL"],
69
+ ignore: ["BASE_URL", "DEV", "MODE", "PROD", "SSR"]
70
+ },
67
71
  docker: {
68
72
  optional: ["COMPOSE_PROJECT_NAME"],
69
73
  ignore: ["HOSTNAME"]
@@ -72,6 +76,12 @@ var presetConfigs = {
72
76
  optional: ["NEXT_PUBLIC_APP_URL"],
73
77
  ignore: ["NEXT_RUNTIME"]
74
78
  },
79
+ nuxt: {
80
+ optional: ["NUXT_PUBLIC_API_BASE"]
81
+ },
82
+ sveltekit: {
83
+ optional: ["PUBLIC_BASE_URL"]
84
+ },
75
85
  vercel: {
76
86
  ignore: ["VERCEL", "VERCEL_ENV", "VERCEL_URL", "VERCEL_BRANCH_URL", "VERCEL_PROJECT_PRODUCTION_URL", "VERCEL_REGION"]
77
87
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "configenvy",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Find missing, unused, undocumented, and risky environment variables before setup breaks.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -35,7 +35,7 @@
35
35
  "build": "tsup src/index.ts --format esm --dts --clean"
36
36
  },
37
37
  "dependencies": {
38
- "@configenvy/core": "0.1.6",
38
+ "@configenvy/core": "0.1.7",
39
39
  "commander": "^12.1.0"
40
40
  },
41
41
  "keywords": [
package/src/index.ts CHANGED
@@ -77,8 +77,9 @@ export function createProgram(dependencies: CliDependencies = defaultDependencie
77
77
  .argument("[path]", "project directory", ".")
78
78
  .option("--ci", "fail on warnings and errors")
79
79
  .option("--format <format>", "output format: text, json, or sarif", "text")
80
+ .option("--strict", "treat documentation warnings as errors")
80
81
  .action(async (projectPath: string, options: DoctorOptions) => {
81
- await runDoctor(projectPath, { ...options, strict: Boolean(options.ci), ci: Boolean(options.ci) }, dependencies);
82
+ await runDoctor(projectPath, { ...options, strict: Boolean(options.strict || options.ci), ci: Boolean(options.ci) }, dependencies);
82
83
  });
83
84
 
84
85
  program
@@ -142,6 +143,10 @@ const starterConfig: StarterConfig = {
142
143
  type PresetName = keyof typeof presetConfigs;
143
144
 
144
145
  const presetConfigs = {
146
+ astro: {
147
+ optional: ["PUBLIC_SITE_URL"],
148
+ ignore: ["BASE_URL", "DEV", "MODE", "PROD", "SSR"]
149
+ },
145
150
  docker: {
146
151
  optional: ["COMPOSE_PROJECT_NAME"],
147
152
  ignore: ["HOSTNAME"]
@@ -150,6 +155,12 @@ const presetConfigs = {
150
155
  optional: ["NEXT_PUBLIC_APP_URL"],
151
156
  ignore: ["NEXT_RUNTIME"]
152
157
  },
158
+ nuxt: {
159
+ optional: ["NUXT_PUBLIC_API_BASE"]
160
+ },
161
+ sveltekit: {
162
+ optional: ["PUBLIC_BASE_URL"]
163
+ },
153
164
  vercel: {
154
165
  ignore: ["VERCEL", "VERCEL_ENV", "VERCEL_URL", "VERCEL_BRANCH_URL", "VERCEL_PROJECT_PRODUCTION_URL", "VERCEL_REGION"]
155
166
  },