@wise/dynamic-flow-types 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.
package/build/index.d.ts CHANGED
@@ -12,5 +12,4 @@ export * from './spec/Schema';
12
12
  export * from './spec/Step';
13
13
  export * from './spec/ValidationAsync';
14
14
  export * from './spec/Search';
15
- export { stepSchema, actionResponseBodySchema, errorResponseBodySchema, searchResponseBodySchema, } from './zod/schemas';
16
15
  export type { FileUploadSchema, CameraDirection } from './spec/FileUploadSchema';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -8,25 +8,26 @@
8
8
  "fullname": "transferwise/dynamic-flow",
9
9
  "url": "git+https://github.com/transferwise/dynamic-flow.git"
10
10
  },
11
+ "main": "./build/main.min.js",
11
12
  "types": "./build/index.d.ts",
12
13
  "files": [
13
14
  "build"
14
15
  ],
15
16
  "devDependencies": {
16
17
  "@formatjs/cli": "^6.2.7",
18
+ "esbuild": "0.20.0",
19
+ "npm-run-all": "4.1.5",
17
20
  "ts-to-zod": "3.2.0",
18
21
  "typescript": "4.9.5"
19
22
  },
20
23
  "peerDependencies": {},
21
- "dependencies": {
22
- "zod": "3.22.4"
23
- },
24
+ "dependencies": {},
24
25
  "scripts": {
25
26
  "dev": "pnpm tsc --noEmit --watch",
26
27
  "test": "pnpm tsc --noEmit",
27
- "build": "rm -rf build && pnpm tsc --emitDeclarationOnly",
28
+ "build": "rm -rf build && npm-run-all build:*",
29
+ "build:types": "pnpm tsc --emitDeclarationOnly",
28
30
  "types": "pnpm tsc --noEmit",
29
- "lint": "eslint 'src/**/*.{js,ts}' --quiet",
30
- "build:zod": "./src/zod/build_zod.sh"
31
+ "lint": "eslint 'src/**/*.{js,ts}' --quiet"
31
32
  }
32
33
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * Unfortunately we need this because ts-to-zod can't generate a valid
3
- * schema for our exported version of this type. So, we add this manually
4
- * during the schema generation because it is equivalent, but can be converted
5
- * by ts-to-zod. (We can't use this type anywhere else because we get infinitely
6
- * nesting types.)
7
- */
8
- export type JsonElement = string | number | boolean | null | {
9
- [x: string]: JsonElement;
10
- } | JsonElement[];