@openapi-typescript-infra/service 2.6.2 → 2.6.4

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/Makefile +6 -3
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [2.6.4](https://github.com/openapi-typescript-infra/service/compare/v2.6.3...v2.6.4) (2023-09-17)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **make:** allow bundling of spec to deterministic path ([16ff04e](https://github.com/openapi-typescript-infra/service/commit/16ff04ee7c55868cf65f0b686ca99db416b78eff))
7
+
8
+ ## [2.6.3](https://github.com/openapi-typescript-infra/service/compare/v2.6.2...v2.6.3) (2023-09-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **openapi:** use latest cli ([2cf2fa2](https://github.com/openapi-typescript-infra/service/commit/2cf2fa222b56ac607c1d9eed0313d6efcd1cf738))
14
+
1
15
  ## [2.6.2](https://github.com/openapi-typescript-infra/service/compare/v2.6.1...v2.6.2) (2023-09-16)
2
16
 
3
17
 
package/Makefile CHANGED
@@ -36,11 +36,14 @@ $(word 1, $(build_files)): $(src_files)
36
36
 
37
37
  service: src/generated/service/index.ts
38
38
 
39
+ bundlespec:
40
+ npx --yes @redocly/cli@latest bundle ./api/${SERVICE_NAME}.yaml -o $(BUNDLE_OUTPUT)/spec.json
41
+
39
42
  src/generated/service/index.ts: $(shell find api -type f)
40
43
  echo "Building service interface"
41
- $(eval TMP := $(shell mktemp -d))
42
- yarn dlx @redocly/openapi-cli@latest bundle ./api/${SERVICE_NAME}.yaml -o $(TMP)/api.yaml
43
- yarn dlx openapi-typescript-express $(TMP)/api.yaml \
44
+ $(eval BUNDLE_OUTPUT := $(shell mktemp -d))
45
+ $(MAKE) bundlespec SERVICE_NAME=$(SERVICE_NAME) BUNDLE_OUTPUT=$(BUNDLE_OUTPUT)
46
+ yarn dlx openapi-typescript-express $(BUNDLE_OUTPUT)/spec.json \
44
47
  --output ./src/generated/service/index.ts
45
48
  ./node_modules/.bin/prettier ./src/generated/service/index.ts --write
46
49
  rm -rf $(TMP)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openapi-typescript-infra/service",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "description": "An opinionated framework for building configuration driven services - web, api, or ob. Uses OpenAPI, pino logging, express, confit, Typescript and vitest.",
5
5
  "main": "build/index.js",
6
6
  "scripts": {