@openapi-typescript-infra/service 4.8.3 → 4.8.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [4.8.4](https://github.com/openapi-typescript-infra/service/compare/v4.8.3...v4.8.4) (2023-11-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **make:** don't remove dir if we didn't make it ([ae06a6b](https://github.com/openapi-typescript-infra/service/commit/ae06a6bb7c64d5a922fc9baaf9f491fe214cb86e))
7
+
1
8
  ## [4.8.3](https://github.com/openapi-typescript-infra/service/compare/v4.8.2...v4.8.3) (2023-11-17)
2
9
 
3
10
 
package/Makefile CHANGED
@@ -45,12 +45,17 @@ bundlespec:
45
45
 
46
46
  src/generated/service/index.ts: $(shell find api -type f)
47
47
  echo "Building service interface"
48
- $(eval BUNDLE_OUTPUT := $(shell mktemp -d))
48
+ ifndef BUNDLE_OUTPUT
49
+ $(eval BUNDLE_OUTPUT := $(shell mktemp -d))
50
+ $(eval GENERATED_DIR := true)
51
+ endif
49
52
  $(MAKE) bundlespec SERVICE_NAME=$(SERVICE_NAME) BUNDLE_OUTPUT=$(BUNDLE_OUTPUT)
50
53
  yarn dlx openapi-typescript-express $(BUNDLE_OUTPUT)/openapi-spec.json \
51
54
  --output ./src/generated/service/index.ts
52
55
  yarn prettier ./src/generated/service/index.ts --write
53
- rm -rf $(TMP)
56
+ ifdef GENERATED_DIR
57
+ rm -rf $(BUNDLE_OUTPUT)
58
+ endif
54
59
 
55
60
  # Config schema generation
56
61
  CONFIG_TYPE_SRC ?= src/types/config.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openapi-typescript-infra/service",
3
- "version": "4.8.3",
3
+ "version": "4.8.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": {