@openapi-typescript-infra/service 2.6.3 → 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.
- package/CHANGELOG.md +7 -0
- package/Makefile +6 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
8
|
## [2.6.3](https://github.com/openapi-typescript-infra/service/compare/v2.6.2...v2.6.3) (2023-09-16)
|
|
2
9
|
|
|
3
10
|
|
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
|
|
42
|
-
|
|
43
|
-
yarn dlx openapi-typescript-express $(
|
|
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.
|
|
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": {
|