@counterfact/generator 0.1.4 → 0.1.5
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/CHANGELOG.md +21 -0
- package/dist/code-generator.js +5 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @counterfact/generator
|
|
2
2
|
|
|
3
|
+
## 0.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1714e9a: Classify OpenAPI sources consistently and hot-reload local base documents and overlays without mistaking local `http`-prefixed paths for remote URLs.
|
|
8
|
+
- 1145bb3: Updated dependency `prettier` in `@counterfact/generator` to `3.9.9`.
|
|
9
|
+
- 6d4af72: Updated dependency `prettier` in `@counterfact/generator` to `3.9.10`.
|
|
10
|
+
- Updated dependencies [1714e9a]
|
|
11
|
+
- Updated dependencies [a2ee147]
|
|
12
|
+
- Updated dependencies [dfe2472]
|
|
13
|
+
- Updated dependencies [25215f4]
|
|
14
|
+
- Updated dependencies [befb686]
|
|
15
|
+
- Updated dependencies [2e0cadd]
|
|
16
|
+
- Updated dependencies [15b30fb]
|
|
17
|
+
- Updated dependencies [cfcedc9]
|
|
18
|
+
- Updated dependencies [e5105a0]
|
|
19
|
+
- Updated dependencies [2707325]
|
|
20
|
+
- Updated dependencies [66ab7eb]
|
|
21
|
+
- Updated dependencies [d175f35]
|
|
22
|
+
- @counterfact/openapi@0.1.5
|
|
23
|
+
|
|
3
24
|
## 0.1.4
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/code-generator.js
CHANGED
|
@@ -4,6 +4,7 @@ import nodePath from "node:path";
|
|
|
4
4
|
/* eslint-disable security/detect-non-literal-fs-filename -- generated files are written under the caller-provided destination tree. */
|
|
5
5
|
import { watch } from "chokidar";
|
|
6
6
|
import createDebug from "debug";
|
|
7
|
+
import { getLocalOpenApiSourcePaths } from "@counterfact/openapi";
|
|
7
8
|
import { ensureDirectoryExists } from "./ensure-directory-exists.js";
|
|
8
9
|
import { OperationCoder } from "./operation-coder.js";
|
|
9
10
|
import { assertNoNormalizedPathCollisions, normalizeOpenApiPath, } from "./openapi-path.js";
|
|
@@ -158,9 +159,10 @@ export class CodeGenerator extends EventTarget {
|
|
|
158
159
|
* Resolves once the watcher is ready.
|
|
159
160
|
*/
|
|
160
161
|
async watch() {
|
|
161
|
-
const watchablePaths =
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
const watchablePaths = getLocalOpenApiSourcePaths([
|
|
163
|
+
this.openapiPath,
|
|
164
|
+
...this.overlays,
|
|
165
|
+
]);
|
|
164
166
|
if (watchablePaths.length === 0) {
|
|
165
167
|
return;
|
|
166
168
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@counterfact/generator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Generate Counterfact route scaffolds and OpenAPI-derived TypeScript contracts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"test:packed-consumer": "node test/package/generator-consumer-smoke.mjs"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@counterfact/openapi": "0.1.
|
|
55
|
+
"@counterfact/openapi": "0.1.5",
|
|
56
56
|
"@counterfact/types": "0.1.0",
|
|
57
57
|
"chokidar": "5.0.0",
|
|
58
58
|
"debug": "4.4.3",
|
|
59
|
-
"prettier": "3.9.
|
|
59
|
+
"prettier": "3.9.10"
|
|
60
60
|
}
|
|
61
61
|
}
|