@sdk-it/content-mapper 0.48.2 → 0.49.1

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 (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -51,6 +51,8 @@ if (rendered.kind === 'failed') {
51
51
  npx tsc --runExternalCode
52
52
  ```
53
53
 
54
+ `tsc --build` takes `--runExternalCode` too, as Nx's inferred `typecheck` target runs it. A `composite` project must list the document in `include` (for example `"src/**/*.openapi"`), or TypeScript reports TS6307 for the import. The build then also emits a declaration for the document (`<name>.d.openapi.ts`).
55
+
54
56
  In the editor, the TypeScript 7.1 language server runs content mappers when its initialization options set `runExternalCode`.
55
57
 
56
58
  The mapper takes no options. The names come from the file name before its first `.`: `store.openapi.yaml` exports `store`, `createStore`, `StoreClient`, `StoreSettings` and `StoreEndpoints`, the names `generate` gives an SDK named `store`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdk-it/content-mapper",
3
- "version": "0.48.2",
3
+ "version": "0.49.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,8 +40,8 @@
40
40
  }
41
41
  },
42
42
  "dependencies": {
43
- "@sdk-it/spec": "0.48.2",
44
- "@sdk-it/typescript": "0.48.2",
43
+ "@sdk-it/spec": "0.49.1",
44
+ "@sdk-it/typescript": "0.49.1",
45
45
  "ts-content-mapper": "^0.1.1",
46
46
  "yaml": "^2.9.1"
47
47
  },