@optique/discover 1.2.0-dev.2277 → 1.2.0-dev.2281

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/README.md CHANGED
@@ -116,14 +116,6 @@ If you do not want to maintain the static module map by hand, generate one:
116
116
  optique-discover ./commands --output ./commands.generated.ts --extension .ts
117
117
  ~~~~
118
118
 
119
- The generated module starts with a fixed header containing lint, formatter,
120
- TypeScript check suppression, and generated-file marker comments for tools
121
- that support file-level comments. Biome suppressions appear first because
122
- Biome expects file-level suppressions at the beginning of the file. Command
123
- module exports are still validated at runtime by `commandsFromModules()`.
124
- Prettier and Oxfmt users should exclude the generated module through formatter
125
- configuration, such as *.prettierignore* or Oxfmt ignore paths.
126
-
127
119
  Then import the generated module from your CLI entry point:
128
120
 
129
121
  ~~~~ typescript
package/dist/cli.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  const require_chunk = require('./chunk-CUT6urMc.cjs');
3
3
  require('./command-C-NgG0KJ.cjs');
4
4
  require('./src-C3_a7SFM.cjs');
5
- const require_generator = require('./generator-CyGtPDkA.cjs');
5
+ const require_generator = require('./generator-CkGpilfc.cjs');
6
6
  const require_main_check = require('./main-check-CwunSNpK.cjs');
7
7
  const __optique_core_constructs = require_chunk.__toESM(require("@optique/core/constructs"));
8
8
  const __optique_core_message = require_chunk.__toESM(require("@optique/core/message"));
@@ -15,7 +15,7 @@ const node_process = require_chunk.__toESM(require("node:process"));
15
15
 
16
16
  //#region deno.json
17
17
  var name = "@optique/discover";
18
- var version = "1.2.0-dev.2277+f4844f9b";
18
+ var version = "1.2.0-dev.2281+9d37b9cc";
19
19
  var license = "MIT";
20
20
  var exports$1 = {
21
21
  ".": "./src/index.ts",
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import "./command-9sgrJtwh.js";
3
3
  import "./src-wHLRsXWK.js";
4
- import { watchCommandsModule, writeCommandsModule } from "./generator-DDSCS6PX.js";
4
+ import { watchCommandsModule, writeCommandsModule } from "./generator-B8UY7n7b.js";
5
5
  import { isMainModuleUrl } from "./main-check-mMnKfUZs.js";
6
6
  import { object } from "@optique/core/constructs";
7
7
  import { message } from "@optique/core/message";
@@ -14,7 +14,7 @@ import process from "node:process";
14
14
 
15
15
  //#region deno.json
16
16
  var name = "@optique/discover";
17
- var version = "1.2.0-dev.2277+f4844f9b";
17
+ var version = "1.2.0-dev.2281+9d37b9cc";
18
18
  var license = "MIT";
19
19
  var exports = {
20
20
  ".": "./src/index.ts",
@@ -4,15 +4,6 @@ import { dirname, posix, relative, resolve } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
 
6
6
  //#region src/generator.ts
7
- const generatedHeader = [
8
- "// biome-ignore-all lint: generated file",
9
- "// biome-ignore-all format: generated file",
10
- "// Generated by optique-discover. Do not edit.",
11
- "/* eslint-disable */",
12
- "// @ts-nocheck",
13
- "// deno-lint-ignore-file",
14
- "// deno-fmt-ignore-file"
15
- ].join("\n") + "\n\n";
16
7
  /**
17
8
  * Generates a TypeScript module that exports command entries.
18
9
  *
@@ -97,7 +88,7 @@ async function collectGeneratedCommandFiles(options, collectOptions = {}) {
97
88
  }
98
89
  function generateCommandsModuleFromFiles(options, files) {
99
90
  if (files.length < 1) return {
100
- code: `${generatedHeader}import type { ModuleCommand } from "@optique/discover";\n\nexport default [] satisfies readonly ModuleCommand[];\n`,
91
+ code: "import type { ModuleCommand } from \"@optique/discover\";\n\nexport default [] satisfies readonly ModuleCommand[];\n",
101
92
  files
102
93
  };
103
94
  const imports = files.map(formatCommandModuleImport).join("\n");
@@ -108,7 +99,7 @@ function generateCommandsModuleFromFiles(options, files) {
108
99
  ...options.entryFileName === void 0 ? [] : [` entryFileName: ${JSON.stringify(options.entryFileName)},`]
109
100
  ].join("\n");
110
101
  return {
111
- code: `${generatedHeader}import { commandsFromModules } from "@optique/discover";\n${imports}\n\nexport default commandsFromModules(\n {\n${entries}\n },\n {\n${optionEntries}\n },\n);\n`,
102
+ code: `import { commandsFromModules } from "@optique/discover";\n${imports}\n\nexport default commandsFromModules(\n {\n${entries}\n },\n {\n${optionEntries}\n },\n);\n`,
112
103
  files
113
104
  };
114
105
  }
@@ -5,15 +5,6 @@ const node_path = require_chunk.__toESM(require("node:path"));
5
5
  const node_url = require_chunk.__toESM(require("node:url"));
6
6
 
7
7
  //#region src/generator.ts
8
- const generatedHeader = [
9
- "// biome-ignore-all lint: generated file",
10
- "// biome-ignore-all format: generated file",
11
- "// Generated by optique-discover. Do not edit.",
12
- "/* eslint-disable */",
13
- "// @ts-nocheck",
14
- "// deno-lint-ignore-file",
15
- "// deno-fmt-ignore-file"
16
- ].join("\n") + "\n\n";
17
8
  /**
18
9
  * Generates a TypeScript module that exports command entries.
19
10
  *
@@ -98,7 +89,7 @@ async function collectGeneratedCommandFiles(options, collectOptions = {}) {
98
89
  }
99
90
  function generateCommandsModuleFromFiles(options, files) {
100
91
  if (files.length < 1) return {
101
- code: `${generatedHeader}import type { ModuleCommand } from "@optique/discover";\n\nexport default [] satisfies readonly ModuleCommand[];\n`,
92
+ code: "import type { ModuleCommand } from \"@optique/discover\";\n\nexport default [] satisfies readonly ModuleCommand[];\n",
102
93
  files
103
94
  };
104
95
  const imports = files.map(formatCommandModuleImport).join("\n");
@@ -109,7 +100,7 @@ function generateCommandsModuleFromFiles(options, files) {
109
100
  ...options.entryFileName === void 0 ? [] : [` entryFileName: ${JSON.stringify(options.entryFileName)},`]
110
101
  ].join("\n");
111
102
  return {
112
- code: `${generatedHeader}import { commandsFromModules } from "@optique/discover";\n${imports}\n\nexport default commandsFromModules(\n {\n${entries}\n },\n {\n${optionEntries}\n },\n);\n`,
103
+ code: `import { commandsFromModules } from "@optique/discover";\n${imports}\n\nexport default commandsFromModules(\n {\n${entries}\n },\n {\n${optionEntries}\n },\n);\n`,
113
104
  files
114
105
  };
115
106
  }
@@ -1,6 +1,6 @@
1
1
  require('./command-C-NgG0KJ.cjs');
2
2
  require('./src-C3_a7SFM.cjs');
3
- const require_generator = require('./generator-CyGtPDkA.cjs');
3
+ const require_generator = require('./generator-CkGpilfc.cjs');
4
4
 
5
5
  exports.generateCommandsModule = require_generator.generateCommandsModule;
6
6
  exports.watchCommandsModule = require_generator.watchCommandsModule;
package/dist/generator.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./command-9sgrJtwh.js";
2
2
  import "./src-wHLRsXWK.js";
3
- import { generateCommandsModule, watchCommandsModule, writeCommandsModule } from "./generator-DDSCS6PX.js";
3
+ import { generateCommandsModule, watchCommandsModule, writeCommandsModule } from "./generator-B8UY7n7b.js";
4
4
 
5
5
  export { generateCommandsModule, watchCommandsModule, writeCommandsModule };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/discover",
3
- "version": "1.2.0-dev.2277",
3
+ "version": "1.2.0-dev.2281",
4
4
  "description": "Runtime-aware command discovery for Optique CLI programs",
5
5
  "keywords": [
6
6
  "CLI",
@@ -83,8 +83,8 @@
83
83
  "optique-discover": "./dist/cli.js"
84
84
  },
85
85
  "dependencies": {
86
- "@optique/core": "1.2.0-dev.2277+f4844f9b",
87
- "@optique/run": "1.2.0-dev.2277+f4844f9b"
86
+ "@optique/core": "1.2.0-dev.2281+9d37b9cc",
87
+ "@optique/run": "1.2.0-dev.2281+9d37b9cc"
88
88
  },
89
89
  "devDependencies": {
90
90
  "@types/node": "^24.0.0",